Skip to main content

Get CFD Order History

Get CFD Order History

Description​

This endpoint is used to query historical orders on a CFD account.

HTTP Request​

  • GET /api/v3/cfd/trade/history-order
  • Rate limit: 10/sec/UID
  • Permission: UTA trade (read-only)
Request
curl "https://api.bitget.com/api/v3/cfd/trade/history-order?symbol=XAUUSD&limit=10" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json"

Request Parameters​

ParametersTypeRequiredDescriptionComments
symbolStringYesTrading pair name
subUidStringNoSub-account UID
Used to query a sub-account's historical orders
startTimeStringNoStart time
A Unix millisecond timestamp
The query span per request must not exceed 30 days
The maximum lookback period is 90 days
endTimeStringNoEnd time
A Unix millisecond timestamp
The query span per request must not exceed 30 days
The maximum lookback period is 90 days
limitStringNoNumber of entries per page
Default: 10, range [1, 50]
For the first page, the number of entries returned may be greater than the specified limit
pageNoStringNoPage number
cursorStringNoCursor
Not required for the first page
Required from the second page onward: pass the orderId of the last record from the previous page's response
Response
{
"code": "00000",
"msg": "success",
"requestTime": 1740000000000,
"data": {
"list": [
{
"symbol": "XAUUSD",
"orderType": "limit",
"side": "buy",
"price": "2620.00",
"qty": "1",
"cumExecQty": "1",
"takeProfit": "2650.00",
"stopLoss": "2600.00",
"status": "filled",
"trxId": "111111111111111111",
"orderId": "111111111111111112"
}
]
}
}

Response Parameters​

ParametersTypeDescriptionComments
listList\<Object>List
> symbolStringTrading pair name
> orderTypeStringOrder type
limit: Limit order
market: Market order
> sideStringTrade side
buy: Buy
sell: Sell
> priceStringOrder price
> qtyStringOrder quantity
> cumExecQtyStringCumulative filled quantity
> takeProfitStringTake-profit price
> stopLossStringStop-loss price
> statusStringOrder status
partially_filled: Partially filled
filled: Fully filled
cancelled: Canceled
> trxIdStringRequest ID
> orderIdStringOrder ID

How was your Reading Experience with us?

★
★
★
★
â˜