Skip to main content

Get History Orders

Get historical orders including filled and canceled orders with pagination support.

HTTP Request

GET /api/v1/spot/trade/history-orders

Request Parameters

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

Request Example

curl -X GET "https://open-api.bydoxe.com/api/v1/spot/trade/history-orders?symbol=BTCUSDT&limit=100" \
-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 historical orders
> symbolstringTrading pair symbol
> orderIdstringOrder ID
> pricestringOrder price
> sizestringOrder size
> orderTypestringOrder type: "limit" or "market"
> sidestringOrder side: "buy" or "sell"
> statusstringOrder status: "filled", "canceled", "rejected"
> priceAvgstringAverage filled price
> baseVolumestringFilled volume in base currency
> quoteVolumestringFilled volume in quote currency
> cTimestringCreation time in milliseconds
> uTimestringLast update time in milliseconds

Response Example

Success Response

{
"code": "00000",
"msg": "success",
"requestTime": 1732000000000,
"data": [
{
"symbol": "BTCUSDT",
"orderId": "123456789",
"price": "91000.00",
"size": "0.001",
"orderType": "limit",
"side": "buy",
"status": "filled",
"priceAvg": "91000.00",
"baseVolume": "0.001",
"quoteVolume": "91.00",
"cTime": "1763459280833",
"uTime": "1763459280900"
},
{
"symbol": "ETHUSDT",
"orderId": "123456788",
"price": "3500.00",
"size": "0.1",
"orderType": "limit",
"side": "sell",
"status": "canceled",
"priceAvg": "0",
"baseVolume": "0",
"quoteVolume": "0",
"cTime": "1763459180833",
"uTime": "1763459200000"
}
]
}

Error Codes

CodeMessage
40002Unauthorized
40034symbol does not exist
43000Invalid symbol format: symbol
50000System error