Skip to main content

OSS L1 Snapshot

WSProductionwss://ws.btse.com/ws/oss/spotTestnetwss://testws.btse.io/ws/oss/spot

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

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

Request

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

Response

{
"topic": "snapshotL1:BTC-USD",
"data": {
"bids": [
[
"28016.7",
"1.48063"
]
],
"asks": [
[
"28033.6",
"1.34133"
]
],
"type": "snapshotL1",
"symbol": "BTC-USD",
"timestamp": 1680750154232
}
}