Curious about what fields you'll see when you stream messages from our API? We've published the format of every message below for quick reference.
T
messages are issued every time there is a trade on the subscribed asset. You'll get basic information about the trade (price and quantity), as well as the time in UTC (with microsecond precision). For convenience we'll echo back the symbol that the message was issued about, and the name of the stream to which the message pertains.
BBO
messages are issued every time there is a change in the best/bid and offer on the order book for that asset. The best bid and offer represent the most someone is willing to pay for an asset (bid), and the least someone is willing to accept for asset (offer). These messages contain a block for each bid and offer, which contains the price and quantity per side, as well as the same generic info (symbol, stream, and time), as trade messages.
Note that BBO messages are issued at most once every 100ms per symbol.
1S
messages are issued once a second, and contain a snapshot of the previous second's trading activity. Also known as "candles" or "klines", aggregates give a sense of the price action in that second. They contain the open, high, low, close, and volume metrics for the asset, as well as the time of the start of the second. No messages will be sent for seconds where there are no trades.
T
Field | Type | Description |
---|---|---|
stream |
string |
The subscribed stream symbol |
exchange |
string |
Exchange on which the trade occcured |
price |
string |
Price the trade executed at |
quantity |
string |
Amount traded |
symbol |
string |
Ticker symbol of the security |
time |
string |
ISO8601-formatted time of the trade, in UTC |
BBO
Field | Type | Description |
---|---|---|
stream |
string |
The subscribed stream symbol |
ask.price |
string |
The price offered for sale |
ask.quantity |
string |
The size of the sell order offered at ask.price |
bid.price |
string |
The price offered for purchase |
bid.quantity |
string |
The size of buy the order offered at bid.price |
symbol |
string |
Ticker symbol of the security |
time |
string |
ISO8601-formatted time of the book change, in UTC |
1S
Field | Type | Description |
---|---|---|
stream |
string |
The subscribed stream symbol |
open |
string |
The price of the first trade in the period |
high |
string |
The highest traded price in the period |
low |
string |
The lowest traded price in the period |
close |
string |
The last traded price in the period |
volume |
string |
The amount of the security traded in the period |
symbol |
string |
Ticker symbol of the security |
time |
string |
ISO8601-formatted start of the second window, in UTC |
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 |
|
T
Field | Type | Description |
---|---|---|
stream |
string |
The subscribed stream symbol |
price |
string |
Price the trade executed at |
quantity |
string |
Amount traded |
symbol |
string |
Symbol of the trading pair |
time |
string |
ISO8601-formatted time of the trade, in UTC |
BBO
Field | Type | Description |
---|---|---|
stream |
string |
The subscribed stream symbol |
ask.price |
string |
The price offered for sale |
ask.quantity |
string |
The size of the sell order offered at ask.price |
bid.price |
string |
The price offered for purchase |
bid.quantity |
string |
The size of buy the order offered at bid.price |
symbol |
string |
Symbol of the trading pair |
time |
string |
ISO8601-formatted time of the book change, in UTC |
1S
Field | Type | Description |
---|---|---|
stream |
string |
The subscribed stream symbol |
open |
string |
The price of the first trade in the period |
high |
string |
The highest traded price in the period |
low |
string |
The lowest traded price in the period |
close |
string |
The last traded price in the period |
volume |
string |
The amount of the base asset traded in the period |
symbol |
string |
Symbol of the trading pair |
time |
string |
ISO8601-formatted start of the second window, in UTC |
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 |
|
BBO
Field | Type | Description |
---|---|---|
stream |
string |
The subscribed stream symbol |
ask.price |
string |
The price offered for sale |
bid.price |
string |
The price offered for purchase |
symbol |
string |
Symbol of the forex trading pair |
time |
string |
ISO8601-formatted time of the book change, in UTC |
1 2 3 4 5 6 7 8 9 10 11 |
|