Skip to main content

Get History Orders

Get the list of historical (closed) copy trading orders for the follower.

HTTP Request

GET /api/v1/copy/mix-follower/query-history-orders

Request Parameters

ParameterTypeRequiredDescription
productTypestringYesProduct type. Only FUSD is supported
symbolstringNoTrading pair symbol (e.g., BTCUSDT)
traderUidstringNoFilter by trader user ID
startTimestringNoStart time in milliseconds
endTimestringNoEnd time in milliseconds
limitstringNoNumber of results per request. Default: 20, Max: 100
idLessThanstringNoFilter results with ID less than this value
idGreaterThanstringNoFilter results with ID greater than this value

Request Example

curl -X GET "https://open-api.bydoxe.com/api/v1/copy/mix-follower/query-history-orders?productType=FUSD&symbol=BTCUSDT&traderUid=100001&limit=20" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000" \
-H "Content-Type: application/json"

Response Parameters

ParameterTypeDescription
codestringResponse code
msgstringResponse message
requestTimenumberRequest timestamp in milliseconds
dataobjectResponse data
> trackingListarrayList of historical orders
>> trackingNostringTracking number
>> traderUidstringTrader's user ID
>> openOrderIdstringOpen order ID
>> closeOrderIdstringClose order ID
>> productTypestringProduct type
>> symbolstringTrading pair symbol
>> posSidestringPosition side (long/short)
>> openLeveragestringLeverage used for opening
>> openPriceAvgstringAverage open price
>> closePriceAvgstringAverage close price
>> openTimestringOpen time in milliseconds
>> closeTimestringClose time in milliseconds
>> openSizestringOpen position size
>> closeSizestringClose position size
>> openFeestringOpen fee
>> closeFeestringClose fee
>> profitRatestringProfit rate percentage
>> netProfitstringNet profit amount
>> achievedPLstringAchieved profit/loss
> endIdstringLast ID for pagination

Response Example

{
"code": "00000",
"msg": "success",
"requestTime": 1763459280000,
"data": {
"trackingList": [
{
"trackingNo": "123456789",
"traderUid": "100001",
"openOrderId": "123456789",
"closeOrderId": "123456789",
"productType": "FUSD",
"symbol": "BTCUSDT",
"posSide": "long",
"openLeverage": "10",
"openPriceAvg": "40000.00",
"closePriceAvg": "40500.00",
"openTime": "1763372880000",
"closeTime": "1763459280000",
"openSize": "0.5",
"closeSize": "0.5",
"openFee": "2.00",
"closeFee": "2.50",
"profitRate": "12.50",
"netProfit": "245.50000000",
"achievedPL": "250.00000000"
}
],
"endId": "123456789"
}
}

Error Codes

CodeMessage
45001Parameter productType cannot be empty
45001Invalid productType
45001Parameter trackingNo cannot be empty
45001One of stopSurplusPrice and stopLossPrice must be passed
45002User not found
45004Position not found
45007Invalid take profit price
45008Invalid stop loss price
50000System error