π₯Public websocket connection
Get real-time trades, orderbook and kline data.
Make use of this public web-socket connection in order to get real-time trades, orderbook and K-line data. Please note that this is a Private π route which means it needs to be authorised by the account initiating this request.
URL
wss://api.brine.fi/publicSubscribe
{
"event": "subscribe",
"streams": ["btcusdc.trades", "btcusdc.ob-inc", "btcusdc.kline-5m"]
}Unsubscribe
{
"event": "unsubscribe",
"streams": ["btcusdc.trades", "btcusdc.ob-inc", "btcusdc.kline-5m"]
}Available Streams
1. Trade streams - <symbol>.trades
<symbol>.tradesResponse
2. Orderbook streams - <symbol>.ob-inc
<symbol>.ob-incResponse for ask
Response for bid
3. Kline/Candlestick streams - <symbol>.kline-<period>
<symbol>.kline-<period>Period options - 1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 3d, 1w
Response
Note : Kline payload item as array of numbers
Example: [1660634520, 0.0839, 0.0921, 0.0781, 0.0845, 0.5895]
Timestamp.
Open price.
Max price.
Min price.
Last price.
Period volume
Last updated
Was this helpful?