Skip to main content

Get Trade Fills

Get your trade execution history (fills) with optional filters for symbol, order, and time range.

HTTP Request

GET /api/v1/spot/trade/fills

Request Parameters

ParameterTypeRequiredDescription
symbolstringNoTrading pair symbol (e.g., BTCUSDT)
orderIdstringNoSpecific order ID to query fills for
startTimestringNoStart time in milliseconds (Unix timestamp)
endTimestringNoEnd time in milliseconds (Unix timestamp)
limitstringNoNumber of records to return
idLessThanstringNoGet fills with ID less than this value

Request Example

curl -X GET "https://open-api.bydoxe.com/api/v1/spot/trade/fills?symbol=BTCUSDT&limit=50" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000"

Response Parameters

ParameterTypeDescription
codestringResponse code
msgstringResponse message
requestTimenumberRequest timestamp in milliseconds
dataarrayArray of trade fills
> symbolstringTrading pair symbol
> tradeIdstringTrade ID
> orderIdstringOrder ID
> orderTypestringOrder type: "limit" or "market"
> sidestringOrder side: "buy" or "sell"
> priceAvgstringAverage execution price
> sizestringExecuted size in base currency
> amountstringExecuted amount in quote currency
> tradeScopestringTrade role: "taker" or "maker"
> cTimestringCreation time in milliseconds
> uTimestringLast update time in milliseconds

Response Example

Success Response

{
"code": "00000",
"msg": "success",
"requestTime": 1732000000000,
"data": [
{
"symbol": "BTCUSDT",
"tradeId": "987654321",
"orderId": "123456789",
"orderType": "limit",
"side": "buy",
"priceAvg": "91000.00",
"size": "0.001",
"amount": "91.00",
"tradeScope": "taker",
"cTime": "1763459280833",
"uTime": "1763459280900"
}
]
}

Error Codes

CodeMessage
40001Symbol is required
40002Unauthorized
40034symbol does not exist
43000Invalid symbol format: symbol
50000System error