Huobi Exchange API

Stream market depth, kline, and trade detail data from the Huobi cryptocurrency exchange platform.

Huobi Integration

Access Huobi's WebSocket API for real-time market data across spot and derivatives markets.

Huobi Market Data Streams

The sgcWebSockets Huobi component connects to Huobi's WebSocket market data API. Subscribe to market depth, kline/candlestick, trade detail, and ticker streams. The component handles Huobi's GZIP compressed messages automatically.

  • Market depth with configurable precision
  • Kline data for all supported intervals
  • Trade detail and best bid/offer streams
  • Automatic GZIP decompression

Delphi Huobi Example

Subscribe to Huobi market depth data.

uses
  sgcHTTP_API_Huobi;

var
  Huobi: TsgcHTTPAPI_Huobi;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Huobi := TsgcHTTPAPI_Huobi.Create(nil);
  Huobi.OnHuobiDepth := OnDepth;
  Huobi.Connect;
end;

procedure TForm1.Subscribe;
begin
  Huobi.SubscribeDepth('btcusdt', 'step0');
end;

procedure TForm1.OnDepth(Sender: TObject;
  aSymbol, aBids, aAsks: string);
begin
  Memo1.Lines.Add('Depth update for ' + aSymbol);
end;

Documentation & Demos

Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.

Ready to Stream Huobi Data?

Download the free trial and connect to Huobi in minutes.