Improved

Trading API description upgraded to OpenAPI 3.1

Trading API

The Trading API description now targets OpenAPI 3.1. Nullable fields are expressed with JSON Schema null types, preserving the same accepted and returned values with no behavioral change.

  • Nested legs on the OrderLeg schema now accept only null (order legs cannot themselves contain legs), affecting the order and position endpoints.

Affected Endpoints

  • GET /v2/orders
  • GET /v2/orders/{order_id}
  • GET /v2/orders:by_client_order_id
  • POST /v2/orders
  • PATCH /v2/orders/{order_id}
  • DELETE /v2/positions
  • DELETE /v2/positions/{symbol_or_asset_id}