Skip to main content

OSS L1 Snapshot

WSProductionwss://ws.btse.com/ws/oss/futuresTestnetwss://testws.btse.io/ws/oss/futures

Subscribe to the best bid / best ask (Level 1) for a market. Topic format: snapshotL1:<symbol> (e.g. snapshotL1:BTC-PERP)

Each message is a full snapshot of the current best bid / best ask. The bids and asks arrays each contain a single [price, size] tuple representing the top of book, and the type field is always snapshotL1.

Bids and asks are sent in price and size tuples as strings to preserve precision; clients should parse them with a high-precision type (e.g. BigDecimal, decimal.js) before performing arithmetic.

Because every push is a full snapshot, clients can simply overwrite the local copy on each message β€” there is no sequence number, and no delta merging is required. If the connection drops, re-subscribe to the topic to resume receiving updates.

Response Content​

NameTypeRequiredDescription
topicStringYesWebSocket topic
dataObjectYesData object

Data Object:

NameTypeRequiredDescription
bidsString[][]YesBest bid [price, size]
asksString[][]YesBest ask [price, size]
symbolStringYesMarket symbol
typeStringYesAlways snapshotL1
timestampLongYesOrderbook timestamp (ms)
example

Request

{
"op": "subscribe",
"args": [
"snapshotL1:BTC-PERP"
]
}

Request

{
"op": "unsubscribe",
"args": [
"snapshotL1:BTC-PERP"
]
}

Response

{
"topic": "snapshotL1:BTC-PERP",
"data": {
"bids": [
[
"122160.1",
"69350"
]
],
"asks": [
[
"122133.3",
"1000"
]
],
"type": "snapshotL1",
"symbol": "BTC-PERP",
"timestamp": 1565135165600
}
}