Improved
Trading API description upgraded to OpenAPI 3.1
about 15 hours ago
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
legson theOrderLegschema now accept onlynull(order legs cannot themselves contain legs), affecting the order and position endpoints.
Affected Endpoints
GET /v2/ordersGET /v2/orders/{order_id}GET /v2/orders:by_client_order_idPOST /v2/ordersPATCH /v2/orders/{order_id}DELETE /v2/positionsDELETE /v2/positions/{symbol_or_asset_id}