Get Account Ledgers - Trade_hf
GET
/api/v1/hf/accounts/ledgers:::info[Description]
This API endpoint returns all transfer (in and out) records in high-frequency trading accounts and supports multi-coin queries. The query results are sorted in descending order by createdAt and ID.
:::
:::tip[Tips]
If lastId is configured, the information obtained < lastId. Otherwise, it will revert to the latest information.
You can only obtain data from within a 3 * 24 hour time range (i.e., from 3 * 24 hours ago up to now). If you specify a time range that exceeds this limit, the system will default to data from within 3 * 24 hours.
:::
context
If the bizType is TRADE_EXCHANGE, the context field will include additional transaction information (order ID, transaction ID, and trading pair).
Request
Currency (you can choose more than one currency). You can specify a max. of 10 currencies in one go. If not specified, all currencies will be queried by default.
direction: in, out
Transaction type
The ID of the last set of data from the previous data batch. By default, the latest information is given.
Default100, Max200
Start time (milliseconds)
End time (milliseconds)
Request samples
Responses
Unique ID
currency
Change in funds balance
Transaction, Deposit or withdrawal fee
Total balance of funds after change
Master account type TRADE_HF
Trnasaction type, such as TRANSFER, TRADE_EXCHANGE, etc.
Direction of transfer (out or in)
Created time
Core transaction parameter
{
"code": "200000",
"data": [
{
"id": "254062248624417",
"currency": "USDT",
"amount": "1.59760080",
"fee": "0.00159920",
"tax": "0",
"balance": "26.73759503",
"accountType": "TRADE_HF",
"bizType": "TRADE_EXCHANGE",
"direction": "in",
"createdAt": "1728443957539",
"context": "{\"symbol\":\"KCS-USDT\",\"orderId\":\"6705f6350dc7210007d6a36d\",\"tradeId\":\"10046097631627265\"}"
}
]
}