账户接口

获取账户资产

限速规则:10次/1s

HTTP请求 获取账户资产

  • GET /api/spot/v1/account/assets

返回数据

{
  "code":"00000",
  "message":"success",
  "data":[
    {
        "coinId":"10012",
        "coinName":"usdt",
        "available":"0",
        "frozen":"0",
        "lock":"0",
        "uTime":"1622697148"
    }
]
}

返回值说明

返回字段
字段说明

coinId

币种id

coinName

币种名称

available

可用资产

frozen

冻结资产

lock

锁仓资产

uTime

更新时间

获取账单流水

限速规则 10次/1s

HTTP请求

获取账单流水

  • POST /api/spot/v1/account/bills

请求参数

参数名
参数类型
是否必须
描述

coinId

Integer

币种ID

groupType

String

账单大类型 groupType

bizType

String

业务类型 bizType

after

String

传入billId, 在这 billId 之前的数据

before

String

传入 billId 在这 billId 之后的数据。

limit

Integer

返回结果的数量,默认100,最大 500

返回数据

{
  "code":"00000",
  "message":"success",
  "data":[{
      "cTime":"1622697148",
      "coinId":"22",
      "coinName":"usdt",
      "groupType":"deposit",
      "bizType":"transfer-in", 
      "quantity":"1",
      "balance": "1",
      "fees":"0",
      "billId":"1291"
}]
}

返回值说明

返回字段
字段说明

cTime

创建时间

coinId

币种Id

coinName

币种名称

groupType

流水类型

bizType

流水账单业务类型

quantity

数量

balance

划转之前的资产

fees

手续费

billId

id

获取划转记录

限速规则 20次/1s

HTTP请求

  • GET /api/spot/v1/account/transferRecords

请求参数

参数名
参数类型
是否必须
描述

coinId

Integer

币种ID

fromType

String

账单大类型 accountType

after

Long

传入tradeTime, 在这 tradeTime 之前的数据

before

Long

传入 tradeTime, 在这 tradeTime 之后的数据

limit

Integer

返回结果的数量,默认100,最大 500

返回数据

{
    "code":"00000",
    "data":[
        {
            "coinName":"btc",
            "status":"SUCCESS",
            "toType":"USD_MIX",
            "toSymbol":"",
            "fromType":"CONTRACT",
            "fromSymbol":"BTC/USD",
            "amount":"1000.00000000",
            "tradeTime":"1631070374488"
        }
    ],
    "msg":"success",
    "requestTime":1631608142260
}

返回值说明

返回字段
字段说明

coinName

币种名称

status

划转状态

toType

转入账户类型 accountType

toSymbol

转入账户交易对

fromType

转出账户类型 accountType

fromSymbol

转出账户交易对

amount

数量

tradeTime

交易时间(毫秒时间戳)

Last updated