API Reference

MarkPrice

Subscribe

Rate Limit: 1 requests per 1 seconds per IP

Request

{
    "action": "SUBSCRIBE",
    "args": [
        {
            "channel": "MARK_PRICE",
            "instId": "BINANCE_PERP_BTC_USDT"
        }
    ]
}
 
Field nameTypeNecessaryRemarks
actionStringYAction
argsArrayYSubscribe param,there can be no more than 20 instId parameters per subscribe
> channelStringYChannel name
> instIdStringYUnique identifier

Response

{
    "event": "SUBSCRIBE",
    "args": [
        {
            "CHANNEL": "MARK_PRICE",
            "INSTID": "BINANCE_PERP_BTC_USDT"
        }
    ],
    "code": 0
}
 
FieldTypeRemarks
eventStringEvent
codeStringCode
argsArrayData
> channelStringChannel
> instIdStringUnique identifier

Mark price example:

{
    "publicChannelTypeEnum": "MARK_PRICE",
    "sym": "BINANCE_PERP_BTC_USDT",
    "markPrice": "67753.40000000",
    "time": 1710751087000
}
FieldTypeRemarks
publicChannelTypeEnumString"MARK_PRICE"
symStringUnique identifier
markPriceStringMark price
timeLongUpdate time

Unsubscribe

Rate Limit: 1 requests per 1 seconds per IP

Request

{
    "action": "UNSUBSCRIBE",
    "args": [
        {
            "channel": "MARK_PRICE",
            "instId": "BINANCE_PERP_BTC_USDT"
        }
    ]
}
 
Field nameTypeNecessaryRemarks
actionStringYAction
argsArrayYData
> channelStringYChannel name
> instIdStringYUnique identifier

Response


 {
    "event": "UNSUBSCRIBE",
    "args": [
        {
            "CHANNEL": "MARK_PRICE",
            "INSTID": "BINANCE_PERP_BTC_USDT"
        }
    ],
    "code": 0
}
FieldTypeRemarks
eventStringEvent
codeStringCode
argsArrayData
> channelStringChannel name
> instIdStringUnique identifier