账户
获取账本
账户上的每一笔资金变动,从新到旧:成交和手续费、充值和提现、Earn、子账户间划转以及杠杆盈亏。
curl --request GET \
--url "https://reirex.com/api/v1/account/ledger?currency=EUR" \
--header "GX-API-KEY: $GX_API_KEY" \
--header "GX-API-TIMESTAMP: $TIMESTAMP" \
--header "GX-API-SIGN: $SIGNATURE"200 OKapplication/json
{
"entries": [
{
"entryId": "48213",
"kind": "trade_fee",
"book": "fiat",
"currency": "EUR",
"amount": "-0.70",
"balance": "12480.55",
"method": null,
"reference": "01JA8K3Q7W2N5X4Y6Z8B0C1D2E",
"createdAt": "2026-10-14T16:14:15.412Z"
},
{
"entryId": "48212",
"kind": "buy",
"book": "spot",
"currency": "BTC",
"amount": "0.01000000",
"balance": "0.43150000",
"method": null,
"reference": "01JA8K3Q7W2N5X4Y6Z8B0C1D2E",
"createdAt": "2026-10-14T16:14:15.412Z"
},
{
"entryId": "48211",
"kind": "buy",
"book": "fiat",
"currency": "EUR",
"amount": "-700.00",
"balance": "12481.25",
"method": null,
"reference": "01JA8K3Q7W2N5X4Y6Z8B0C1D2E",
"createdAt": "2026-10-14T16:14:15.412Z"
}
],
"next": "48211"
}每条记录都带有其发生后的余额,因此你可以还原任意时刻的任意余额。同一订单、同一笔划转或同一仓位的记录共用一个 reference。
每页最多 100 条记录。还有更多时,将 next 作为 before 传入即可继续读取。
查询参数
kindstring仅此类型的记录。
可选值
depositwithdrawalwithdrawal_returnbuyselltrade_feeai_trade_startai_trade_resultcopy_startcopy_resultadjustmentearn_subscribeearn_redeemearn_rewardreferral_rewardaffiliate_payoutsub_transfermargin_resultmargin_financingcurrencystring仅该货币或品种的记录,例如
EUR或BTC。limitinteger默认值:50每页记录数。
1 至 100
beforestring上一页返回的
next游标。
响应
entriesobject[]记录,从新到旧。
nextstring | null下一页的游标,最后一页为
null。

