Improved
Nested "legs" on the order schema now accept an empty array
August 26th, 2026
Broker API
The nested legs field on the order leg schema is now described as either null or an empty array, so generated clients can model it without recursion. Behavior is unchanged: order legs are never nested beyond one level and the API continues to return null.
legson an order leg is constrained to zero items.- The field description notes that an empty array is accepted for generated-client compatibility.
Affected Endpoints
POST /v1/trading/accounts/{account_id}/ordersGET /v1/trading/accounts/{account_id}/ordersDELETE /v1/trading/accounts/{account_id}/ordersGET /v1/trading/accounts/{account_id}/orders/{order_id}PATCH /v1/trading/accounts/{account_id}/orders/{order_id}GET /v1/trading/accounts/{account_id}/orders:by_client_order_idDELETE /v1/trading/accounts/{account_id}/positionsDELETE /v1/trading/accounts/{account_id}/positions/{symbol_or_asset_id}GET /v2/events/trades