API Reference

K Line

Subscribe

⏳ Limit

1 requests per 1 seconds per IP.

wss://api.bring.trade/public/ws

Request

{
    "event": "subscribe",
    "arg": [
         {
            "symbol": "BT_PERP_BTC_USD",
            "channel": "bt-kline",
            "interval": "4H"
         }
    ]
}

Response

{
    "arg": {
        "channel": "bt-kline",
        "symbol": "BT_PERP_BTC_USD",
        "interval": "4H"
    },
    "data": [
        [
            "1729065600000", // time
            "66948.8",  // open 
            "67449.9",  // high
            "66888",    // low
            "67360.9",  // close
            "14612.921" // volume
        ]
    ]
}

Unsubscribe

Request

{
    "event": "unsubscribe",
    "arg": [
         {
            "symbol": "BT_PERP_BTC_USD",
            "channel": "bt-kline",
            "interval": "4H"
         }
    ]
}