Position Trades
Returns an array of trade records for the specified position, newest first by default (see order). An unknown position ID returns an empty trade_history.
MAKER trades represent single fill events at a single price level, whereas TAKER trades may include multiple fill events executed while sweeping through the order book. As a result, the price shown on TAKER trades may represent a volume-weighted average fill price across executed fills.
Authentication: Bearer token; any valid API key (no specific scope required). This endpoint is rate-limited.
cursor is an opaque string. Pass the value from the previous response unchanged; it is null (or absent) on the last page.
Unknown query parameters are rejected with 400 UNEXPECTED_PARAMETERS.
bearerAuthAuthorizationBearer <token>API key created in the One Trading UI, sent as Authorization: Bearer <token>. Each endpoint lists the key permission it needs.
position_id*stringThe position ID to fetch trades for (numeric string).
limit?stringSets the maximum number of results per page, 1 to 100 (default 50).
order?stringThe order in which to return records by timestamp: ASC or DESC (case-insensitive). Defaults to DESC.
"DESC""ASC""DESC"cursor?stringOpaque pointer to the next page, taken unchanged from the cursor of the previous response.
OK
application/json- response
trade_history*array<>cursor*|Opaque cursor. If more records are available, pass it unchanged into the next request to fetch the following batch of trades; null on the last page.
curl -X GET 'https://api.onetrading.com/fast/v1/account/futures/positions/2111199765938682/trades?limit=3&order=ASC'{ "trade_history": [ { "fee": { "fee_amount": "0", "fee_currency": "USD", "fee_amount_position": "0" }, "trade": { "account_id": "aaaba8bd-3195-4f72-87ff-98720a940f23", "position_id": "2111199765938682", "order_id": "c5991660-d05a-4d96-1b8f-bbc1a9ff787e", "trade_id": "655b635f-e515-57bb-bc03-269d80b77a38", "time": "2026-02-13T10:27:14.886985638Z", "instrument_code": "BTC_USD_P", "side": "SELL", "matched_as": "TAKER", "price": "66769.78", "amount": "1", "filled_amount": "1", "filled_amount_position": "0.009", "open_position_amount": "-0.991", "sequence": "98359452946", "order_type": "UI" } }, { "fee": { "fee_amount": "0", "fee_currency": "USD", "fee_amount_position": "0" }, "trade": { "account_id": "aaaba8bd-3195-4f72-87ff-98720a940f23", "position_id": "2111199765938682", "order_id": "c433d41a-38c9-45f4-06f2-d314ca2f6991", "trade_id": "7edf24a8-c72e-57ae-8594-c4a5e54c8f98", "time": "2026-01-28T13:40:57.902580242Z", "instrument_code": "BTC_USD_P", "side": "SELL", "matched_as": "TAKER", "price": "90146.87", "amount": "0.001", "filled_amount": "0.001", "filled_amount_position": "0.001", "open_position_amount": "0.009", "sequence": "97075273971", "order_type": "UI" } }, { "fee": { "fee_amount": "0", "fee_currency": "USD", "fee_amount_position": "0" }, "trade": { "account_id": "aaaba8bd-3195-4f72-87ff-98720a940f23", "position_id": "2111199765938682", "order_id": "1a9d62c5-72bb-490f-2035-4377663366ad", "trade_id": "f90fac7c-9f8e-5d3d-a40e-7f6c91299e58", "time": "2026-01-28T08:19:25.380629346Z", "instrument_code": "BTC_USD_P", "side": "BUY", "matched_as": "TAKER", "price": "89075.95", "amount": "0.01", "filled_amount": "0.01", "filled_amount_position": "0.01", "open_position_amount": "0.01", "sequence": "97011492091", "order_type": "UI" } } ], "cursor": null}