Skip to content

L1 order book depth-80 snapshot (Alpha)

SEND Server to Client on wss://api.valr.com/ws/trade

(Alpha) Level 1 aggregated order book snapshot truncated to a depth of 80 per side. Unlike OB_L1_SNAPSHOT, no diff messages are sent — a full snapshot is sent on every update. Uses the same compressed wire format as OB_L1_SNAPSHOT but without SequenceNumber or Checksum fields.

Available depth variants: OB_L1_D1_SNAPSHOT, OB_L1_D10_SNAPSHOT, OB_L1_D20_SNAPSHOT, OB_L1_D40_SNAPSHOT, OB_L1_D60_SNAPSHOT, OB_L1_D80_SNAPSHOT.

Subscription

This event requires an explicit subscription. Send a SUBSCRIBE message after connecting:

json
{
    "type": "SUBSCRIBE",
    "subscriptions": [
        {
            "event": "OB_L1_D80_SNAPSHOT"
        }
    ]
}

Message

Event type: OB_L1_D80_SNAPSHOT

Example

json
"{\n    \"type\": \"OB_L1_D80_SNAPSHOT\",\n    \"ps\": \"BTCUSDC\",\n    \"d\": {\n        \"lc\": 1644301604645,\n        \"a\": [\n            [\"45363\", \"0.01102078\"]\n        ],\n        \"b\": [\n            [\"45147\", \"0.011\"]\n        ]\n    }\n}"

Channel

Channel: trade Address: wss://api.valr.com/ws/trade