WebSocket API Documentation
AggregateOHLCV Emitter
Subscription
To start receiving AggregateOHLCV
events, you must join the room by sending a subscribe-to-emitter
message with the following payload:
Unsubscription
To leave the room, send the same payload with unsubscribe-from-emitter
:
Event Payload
The AggregateOHLCV
event is emitted every 10 minutes, providing aggregated data for preconfigured currency pairs. The interval can be configured in the System Config.
Example Payload:
Note: null
values indicate no data available for the specified period.
Pricing Emitter
The Pricing Emitter controls multiple rooms, each corresponding to different types of pricing data such as Trade, Ticker, OrderBook, CandleStick, and ExchangeRate. You can join these rooms by sending subscribe-to-emitter
calls with the appropriate payload specifying the type and market ID. Once subscribed, the Pricing Emitter will stream real-time data to you as soon as it is saved in the database, ensuring you receive the latest updates promptly.
Events like Pricing_ExchangeRate_201
are structured by combining different components: a constant prefix Pricing_
, which identifies the emitter type, a datatype segment such as ExchangeRate_
, which specifies the type of data being provided, and a market ID 201
, which uniquely identifies the market or trading pair the data pertains to. This structured naming convention helps in clearly identifying and categorizing different types of events in the WebSocket API.
Subscription
To start receiving events (Trade, Ticker, OrderBook, CandleStick), you must join the PricingEmitter
room by sending a subscribe-to-emitter
message with the following payload:
Unsubscription
To leave the room, send the same payload with unsubscribe-from-emitter
:
Trade Event
This event emits Trade data for a specified exchange and currency pair as soon as it is collected.
Example Payload for Pricing_Trade_68
:
Ticker Event
This event provides Ticker data for a specified exchange and currency pair as soon as it is collected.
Example Payload for Pricing_Ticker_68
:
OrderBook Event
This event provides OrderBook data for a specified exchange and currency pair as soon as it is collected.
Example Payload for Pricing_OrderBook_68
:
CandleStick Event
This event provides CandleStick data for a specified exchange and currency pair as soon as it is collected.
Example Payload for Pricing_CandleStick_68
:
ExchangeRate Event
This event provides ExchangeRate data for a specified exchange and currency pair as soon as it is collected.
Example Payload for Pricing_ExchangeRate_201
:
Last updated