We have made some important API changes that may impact your ability to query historical transaction data for USD trading pairs, including trades and orders, that were executed before our system upgrade on February 5, 2023 at 9 p.m. PST / midnight EST.
- To query transaction information for historical trades and orders, involving USD trading pairs, executed before the planned system upgrade, use the USD4 symbol. For example: "BTCUSD4".
- To query transaction information for trades and orders, involving USD trading pairs, executed after the planned system upgrade, continue using the USD symbol. For example: “BTCUSD”.
For more information, please refer to our API changelog.
API Troubleshooting (For Advanced API Traders)
- Sample code for querying BTCUSD orders using GET /api/v3/order:
{
“orderId”: 4324329084,
“symbol”: “BTCUSD”,
“timestamp”: 1675938211813,
“recvWindow”: 5000
}
- Sample code for querying BTCUSD4 orders using GET /api/v3/order:
{
“orderId”: 4324329084,
“symbol”: “BTCUSD4”,
“timestamp”: 1675938211813,
“recvWindow”: 5000
}
- To determine whether you are correctly querying historical transaction data for USD trading pairs, use the following parameters to retrieve the first trade or order you made using a USD trading pair: &fromId=0 &limit=1
- Sample code for querying transaction history for BTC/USD using GET /api/v3/myTrades with parameters &fromId=0 &limit=1:
{
"timestamp": 1675938211813,
"symbol": "BTCUSD",
"fromId": 0,
"limit":1,
"recvWindow": 5000
}