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
| Parameter | Type | Required | Description |
|---|---|---|---|
| productType | string | Yes | Product type. Only FUSD is supported |
| symbol | string | No | Trading pair symbol (e.g., BTCUSDT) |
| traderUid | string | No | Filter by trader user ID |
| startTime | string | No | Start time in milliseconds |
| endTime | string | No | End time in milliseconds |
| limit | string | No | Number of results per request. Default: 20, Max: 100 |
| idLessThan | string | No | Filter results with ID less than this value |
| idGreaterThan | string | No | Filter 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
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code |
| msg | string | Response message |
| requestTime | number | Request timestamp in milliseconds |
| data | object | Response data |
| > trackingList | array | List of historical orders |
| >> trackingNo | string | Tracking number |
| >> traderUid | string | Trader's user ID |
| >> openOrderId | string | Open order ID |
| >> closeOrderId | string | Close order ID |
| >> productType | string | Product type |
| >> symbol | string | Trading pair symbol |
| >> posSide | string | Position side (long/short) |
| >> openLeverage | string | Leverage used for opening |
| >> openPriceAvg | string | Average open price |
| >> closePriceAvg | string | Average close price |
| >> openTime | string | Open time in milliseconds |
| >> closeTime | string | Close time in milliseconds |
| >> openSize | string | Open position size |
| >> closeSize | string | Close position size |
| >> openFee | string | Open fee |
| >> closeFee | string | Close fee |
| >> profitRate | string | Profit rate percentage |
| >> netProfit | string | Net profit amount |
| >> achievedPL | string | Achieved profit/loss |
| > endId | string | Last 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
| Code | Message |
|---|---|
| 45001 | Parameter productType cannot be empty |
| 45001 | Invalid productType |
| 45001 | Parameter trackingNo cannot be empty |
| 45001 | One of stopSurplusPrice and stopLossPrice must be passed |
| 45002 | User not found |
| 45004 | Position not found |
| 45007 | Invalid take profit price |
| 45008 | Invalid stop loss price |
| 50000 | System error |