跳到主要内容

逐仓杠杆账户频道

描述

请求示例
{
"args":[
{
"channel":"account-isolated",
"coin":"default",
"instType":"MARGIN"
}
],
"op":"subscribe"
}

请求参数

参数名参数类型是否必须描述
opString操作
subscribe 订阅
unsubscribe 取消订阅
argsList<Object>请求订阅的频道列表
> instTypeString产品类型
> channelString频道名
> coinString币种名称,default表示全部币种,目前只支持default
订阅返回示例
{
"event":"subscribe",
"arg":{
"instType":"MARGIN",
"channel":"account-isolated",
"coin":"default"
}
}

返回参数

返回字段参数类型字段说明
eventString事件
argObject订阅的频道
> instTypeString产品类型
> channelString频道名
> coinStringdefault
codeString错误码,错误时才会返回
msgString错误消息
推送返回示例
{
"action":"snapshot",
"arg":{
"instType":"MARGIN",
"channel":"account-isolated",
"coin":"default"
},
"data":[
{
"uTime":"1695881380876",
"id":"1000000003",
"coin":"USDT",
"symbol":"BTCUSDT",
"available":"989.4502207",
"borrow":"0",
"frozen":"0",
"interest":"0",
"coupon":"0"
},
{
"uTime":"1695881380876",
"id":"1000000002",
"coin":"BTC",
"symbol":"BTCUSDT",
"available":"0.00039814",
"borrow":"0",
"frozen":"0",
"interest":"0",
"coupon":"0"
},
{
"uTime":"1695881380876",
"id":"1000000001",
"coin":"USDT",
"symbol":"ETHUSDT",
"available":"9607383.17171658",
"borrow":"0",
"frozen":"0",
"interest":"0",
"coupon":"0"
},
{
"uTime":"1695881380876",
"id":"1000000000",
"coin":"ETH",
"symbol":"ETHUSDT",
"available":"2.5574646",
"borrow":"0",
"frozen":"0",
"interest":"0",
"coupon":"0"
}
],
"ts":1695881380876
}

推送数据参数

返回字段参数类型字段说明
argObject订阅成功的频道
> instTypeString产品类型
> channelString频道名
> coinStringdefault
actionString推送数据动作,增量推送数据还是全量推送数据
dataList<Object>订阅的数据
> availableString可用金额
> borrowString借款金额
> symbolString交易对
> coinString币种名称
> frozenString冻结金额
> idString序号
> interestString利息
> uTimeString更新时间
> couponString体验金