OSS L1 Snapshot (By Grouping)
WSProduction
wss://ws.btse.com/ws/oss/futuresTestnetwss://testws.btse.io/ws/oss/futuresSubscribe to the best bid / best ask (Level 1) for a market at a specific grouping.
Topic format: snapshotL1:<symbol>_<grouping> (e.g. snapshotL1:BTC-PERP_0)
Response Contentβ
| Name | Type | Required | Description |
|---|---|---|---|
| topic | String | Yes | WebSocket topic |
| data | Object | Yes | Data object |
Data Object:
| Name | Type | Required | Description |
|---|---|---|---|
| bids | String[][] | Yes | Best bid [price, size] |
| asks | String[][] | Yes | Best ask [price, size] |
| symbol | String | Yes | Market symbol |
| type | String | Yes | |
| timestamp | Long | Yes | Orderbook timestamp (ms) |
example
Response
{
"topic": "snapshotL1:BTC-PERP_0",
"data": {
"bids": [
[
"28064.9",
"1268"
]
],
"asks": [
[
"28065.0",
"1015"
]
],
"type": "snapshotL1",
"symbol": "BTC-PERP",
"timestamp": 1680751558529
}
}