Get Historical Trades
Get a list of trades based on specified filters.
- requires bearer token in authorization header
- On a single query request you can retrieve data over a 7 day window, with the data available for the last 90 days
- supports pagination
- filtering on createdAtDatetime, createdAtTimestamp requires additional keywords, see filtering support
Ratelimited: True
Request
- Base URLhttps://api.exchange.bullish.com/trading-api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
market symbol. E.g. BTCUSDC
unique order ID
unique trade ID
Unique numeric (i64) identifier generated on the client side expressed as a string value
unique numeric (i64) identifier generated on the client side, only orderId or clientOrderId can be used
unique trading account ID
Id of the trading account
ISO 8601 with millisecond as string
start timestamp of period, ISO 8601 with millisecond as string
ISO 8601 with millisecond as string
end timestamp of period, ISO 8601 with millisecond as string
unique numeric (i64) identifier generated on Bullish side expressed as a string value
unique Bullish otc trade id
unique numeric (i64) identifier generated on the client side expressed as a string value
unique client otc trade id
Response
OK
Example response
[
{
"tradeId": "100020000000000060",
"orderId": "297735387747975680",
"clientOrderId": "299834741023572480",
"symbol": "BTCUSDC",
"price": "1.00000000",
"quantity": "1.00000000",
"quoteAmount": "1.00000000",
"baseFee": "1.00000000",
"quoteFee": "1.00000000",
"side": "BUY",
"isTaker": true,
"tradeRebateAmount": "1.00000000",
"tradeRebateAssetSymbol": "USDC",
"otcMatchId": "15",
"otcTradeId": "200000000000000098",
"clientOtcTradeId": "20050900225",
"createdAtDatetime": "2025-05-20T01:01:01.000Z",
"createdAtTimestamp": "1621490985000"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.