API Reference

Orderbook

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-depth"
        }
    ]
}

Response

{
    "arg": {
        "channel": "bt-depth",
        "symbol": "BT_PERP_BTC_USD",
        "updateType": "update" // "update" | "all"
    },
    "data": {
        "ts": "1729072038097",
        "seq": "5539689796134",
        "num": 27557,
        "bids": [
            [
                "67360.8", // price
                "5.038"    // amount
            ],
            [
                "67360",
                "0.002"
            ],
            [
                "67359.9",
                "0.004"
            ]
        ],
        "asks": [
            [
                "67356.5",
                "0"
            ],
            [
                "67357",
                "0"
            ],
            [
                "67357.1",
                "0"
            ],
            [
                "67357.5",
                "0"
            ]
        ]
    }
}

Unsubscribe

Request

{
    "event": "unsubscribe",
    "arg": [
        {
            "symbol": "BT_PERP_BTC_USD",
            "channel": "bt-depth"
        }
    ]
}