跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt

Use this file to discover all available pages before exploring further.

查询合约资金流水 (KEYED)

适用于查询合约资金流水记录

请求URL

GET https://cloud-api.wooxpro.com/contract/private/transaction-history

请求限制

参见 速率限制详细

请求参数

请求
curl -H 'X-BM-KEY:{{AccessKey}}'
https://cloud-api.wooxpro.com/contract/private/transaction-history?symbol=BTCUSDT&start_time=1662368173000&end_time=1662368179000
参数类型是否必填描述
symbolString选填交易对
flow_typeInt选填类型
- 0 = 全部(默认)
- 1 = 划转
- 2 = 已实现盈亏
- 3 = 资金费用
- 4 = 手续费
- 5 = 强平清算费
accountString选填交易用户
-futures=合约主账号
-copy_trading=跟单子账号
start_timeLong选填开始时间(时间戳,精确到毫秒)
end_timeLong选填结束时间(时间戳,精确到毫秒)
page_sizeInt选填每页返回的记录数,默认100,最大1000
注意
  • 如果start_timeend_time 均未发送, 只会返回最近7天的数据。
  • 如果type没有发送,返回所有类型账户损益资金流水。

响应详情

响应
{
  "code": 1000,
  "message": "Ok",
  "data": [
    {
      "symbol": "",
      "type": "Transfer",
      "amount": "-0.37500000",
      "asset": "USDT",
      "account": "futures",
      "time": "1570608000000",
      "tran_id": "9689322392"
    },
    {
      "symbol": "BTCUSDT",
      "type": "Commission Fee",
      "amount": "-0.01000000",
      "asset": "USDT",
      "account": "futures",
      "time": "1570636800000",
      "tran_id": "9689322392"
    }
  ],
  "trace": "80ba1f07-1b6f-46ad-81dd-78ac7e9bbccd"
}
字段类型描述
symbolString交易对
flow_typeInt类型
- 0 = 全部(默认)
- 1 = 划转
- 2 = 已实现盈亏
- 3 = 资金费用
- 4 = 手续费
- 5 = 强平清算费
typeSTRING类型
- Transfer
- Realized PNL
- Funding Fee
- Commission Fee
- Liquidation Clearance
accountString交易用户
-futures=合约主账号
-copy_trading=跟单子账号
amountString金额,支持正负号
assetString资金流水币种
timeString交易时间戳(ms)
tran_idString交易ID