latestOpenAPI 3.1.02026-08-1051108155.9 KB
6e6f8dad92bf
Order
Returns a filtered array of order fills
get/v1/order/fill
Query parameters
order'asc' | 'desc'
Direction to paginate through objects
limitinteger
Limit the number of objects to return
cursorstring
Pointer to the current object in pagination dataset
subaccountIdstring uuid required
Id of the subaccount to filter fills by
productIdsstring[]
Array of product ids to filter for
createdAfterinteger
Filter by order fills created before timestamp exclusive (ms since Unix epoch)
createdBeforeinteger
Filter by order fills created before timestamp inclusive (ms since Unix epoch)
side0 | 1
Side of the maker as either BUY (0) or SELL (1)
orderBy'productId' | 'filled' | 'price' | 'createdAt'
Example:productId
Order by field
includeSelfTradesboolean
Explicitly include self trades (excluded by default)
expandSelfTradesboolean
When true and includeSelfTrades is also true, returns both maker and taker perspectives for self-trades as separate rows.
Response
Example response
{
"data": [
{
"clientOrderId": "b1234567-89ab-cdef-0123-456789abcdef",
"createdAt": 1712019600000,
"feeUsd": "3.049563",
"filled": "2.420",
"id": "b1234567-89ab-cdef-0123-456789abcdef",
"isMaker": true,
"orderId": "b1234567-89ab-cdef-0123-456789abcdef",
"price": "4200.5",
"productId": "9c6bf870-a8ce-4de3-820b-542fd5c049ba",
"reduceOnly": true,
"subaccountId": "aa301f94-f5b7-4e54-8b16-01052fccb2f9"
}
],
"hasNext": true
}