槓桿交易推送
槓桿交易訂單入買賣盤
{
"type": "message",
"topic": "/margin/loan:BTC",
"subject": "order.open",
"channelType":"private",
"data": {
"currency": "BTC", //幣種
"orderId": "ac928c66ca53498f9c13a127a60e8", //訂單id
"dailyIntRate": 0.0001, //日利率
"term": 7, //出借期限(天)
"size": 1, //借貸數量
"side": "lend", //委託方向,目前只支持借出。lend - 借出;borrow - 借入
"ts": 1553846081210004941 //時間戳(納秒)
}
}
Topic: /margin/loan:{currency}
出借訂單入買賣盤時向出借方推送。
槓桿交易訂單更新
{
"type": "message",
"topic": "/margin/loan:BTC",
"subject": "order.update",
"channelType":"private",
"data": {
"currency": "BTC", //幣種
"orderId": "ac928c66ca53498f9c13a127a60e8", //訂單id
"dailyIntRate": 0.0001, //日利率
"term": 7, //出借期限(天)
"size": 1, //借貸數量
"lentSize": 0.5, //已借出數量
"side": "lend", //委託方向,目前只支持借出。lend - 借出;borrow - 借入
"ts": 1553846081210004941 //時間戳(納秒)
}
}
Topic: /margin/loan:{currency}
借貸撮合成功時向出借方推送。
槓桿交易訂單完成
{
"type": "message",
"topic": "/margin/loan:BTC",
"subject": "order.done",
"channelType":"private",
"data": {
"currency": "BTC", //幣種
"orderId": "ac928c66ca53498f9c13a127a60e8", //訂單id
"reason": "filled", //訂單完成原因, 有filled(撮合完成)和canceled(取消)
"side": "lend", //委託方向,目前只支持借出。lend - 借出;borrow - 借入
"ts": 1553846081210004941 //時間戳(納秒)
}
}
Topic: /margin/loan:{currency}
出借訂單完成時向出借方推送。