For the complete documentation index, see llms.txt. This page is also available as Markdown.

Best Quote

Real-time best bid and best ask for futures pairs.

Use this stream when you need only the top of the book — the best bid and best ask with their sizes — without maintaining a full order book.

Endpoint

wss://futures-marketdata-service.outpoll.com/ws/book/best

Authentication

No authentication required.

Message Envelope

Field
Type
Description

pi

string

Pair ID, as a string (for example "1")

a

array

Best ask [price, size]

b

array

Best bid [price, size]

t

integer

Quote time, epoch ms

Message Types

Type
Direction
Description

subscribe / unsubscribe

Client → Server

Start or stop pairs

Quote

Server → Client

Current best bid and ask of one pair

Error

Server → Client

{"er", "msg"} — see Errors

ping / pong

Both

Plain-text keep-alive

Subscribe

Every pair:

Server confirmation: there is no confirmation frame. When you subscribe by pair ID, the pair's current quote arrives immediately. With all: true, quotes arrive as each pair updates.

Updates are pushed whenever the pair's order book updates. Each frame is the complete top of book — replace the previous value.

Quote Payload

Field
Type
Description

pi

string

Pair ID

a

array

Best ask: [price, size]

b

array

Best bid: [price, size]

t

integer

Quote time, epoch ms

Python Example

Was this helpful?