Trading
Get Trades for Order
GET
Get list of trades for a specific order, oldest first.
An unknown order ID, or an order without trades, returns 200 with an empty trade_history.
Requires any valid API key. This endpoint is rate-limited per account holder.
bearerAuthheader
AuthorizationBearer <token>API key created in the One Trading UI, sent as Authorization: Bearer <token>. Each endpoint lists the key permission it needs.
order_id*stringThe order ID to get trades for
Format
uuidOK
application/json- response
trade_history*array<>curl -X GET 'https://api.onetrading.com/fast/v1/account/orders/e9765da8-1861-4cc8-1af3-6f89b079941a/trades'Example Response
{ "trade_history": [ { "fee": { "fee_amount": "0.29", "fee_currency": "EUR" }, "trade": { "account_id": "726288e6-a463-4f88-9068-024ae8f97a34", "order_id": "ff119f4e-7918-4bec-8816-75d5b57865d1", "trade_id": "a7b6f4f8-0278-40a1-a435-7d02f93bafd0", "time": "2024-11-14T10:26:57.241Z", "time_nanos": "2024-11-14T10:26:57.241123456Z", "instrument_code": "SOL_EUR", "side": "SELL", "matched_as": "MAKER", "time_in_force": "GOOD_TILL_CANCELLED", "order_type": "API", "price": "145", "amount": "1", "filled_amount": "1", "sequence": "58894265752" } } ]}