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

Candles (OHLC) Stream

The candle channel streams the Open, High, Low and Close (OHLC) data for the specific interval period. The updates are generated on trade events.

Update Speed

  • Pushed on each block that is at least 2 seconds since the last push

Subscribe Request

  • Subscribe Schema

See WsCandleSubscriptionParams in Schema.

interface SubscribeRequest {
  op: "subscribe";
  id: number | null; // Optional client originated request identifier sent as acknowledgment in the response.
  params: WsCandleSubscriptionParams;
}
  • Subscribe Ack Schema

See WsCandleSubscriptionResult in Schema.

interface SubscriptionResult {
  op: "subscribe";
  id: number | null; // Optional client originated request identifier sent as acknowledgment in the response.
  result: WsCandleSubscriptionResult | null;
  success: boolean; // Indicates if the request was successfully processed by the engine.
  connID: string;
  error: string | null; // Condition: If success is false. Error message.
  time_in: number; // The timestamp when the subscription was received on the wire, just prior to parsing data, in milliseconds.
  time_out: number; // The timestamp when the acknowledgement was sent on the wire, just prior to transmitting data, in milliseconds.
}
  • Example: Subscribe

  • Example: Subscribe Ack

Unsubscribe Request

  • Unsubscribe Schema

See WsCandleSubscriptionParams in Schema.

  • Unsubscribe Ack Schema

See WsCandleSubscriptionResult in Schema.

  • Example: Unsubscribe

  • Example: Unsubscribe Ack

Update Response

  • Update Schema

See Candle in Schema.

  • Example: Update

Last updated