行情 API

获取用户成交记录

接口 描述
CONTRACT_X_Y_TRADE 订阅成交记录

websocket.send("{'event':'addChannel','channel':'CONTRACT_X_Y_TRADERECORD'}");

X的值为USD

Y的值为BTC,ETH等

示例

# Request                
{'event':'addChannel','channel':'CONTRACT_USD_BTC_TRADERECORD'}
# Response                
{
    "channel": "CONTRACT_USD_BTC_TRADE",
    "data": {
        "userId":"1524223631060",
        "orderId":"8a8a8b92684be3c601684be67e130002",
        "entrustPrice":"4323.0",
        "dealPrice":"4323.0",
        "dealQuantity":"100",
        "direction":1
    }
}

返回值说明

[用户id,订单,委托价格,成交价格,成交数量,方向(1:买,-1:卖)]
[userId, orderId, entrustPrice, dealPrice, dealQuantity, direction]

results matching ""

    No results matching ""