Bitmex Derivatives API

Stream real-time derivatives market data including perpetual contracts, funding rates, and liquidations from Bitmex.

Bitmex Integration

Access real-time derivatives trading data, order book updates, and account information via Bitmex WebSocket streams.

Derivatives Market Data

The sgcWebSockets Bitmex component provides access to real-time market data for perpetual contracts and futures. Subscribe to order book updates, trade executions, funding rate changes, and liquidation events with low-latency WebSocket connections.

  • Real-time order book depth (Level 2)
  • Trade executions and liquidation events
  • Funding rate and instrument updates
  • Authenticated streams for position and order data

Delphi Bitmex Example

Subscribe to Bitmex trade data.

uses
  sgcHTTP_API_Bitmex;

var
  Bitmex: TsgcHTTPAPI_Bitmex;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Bitmex := TsgcHTTPAPI_Bitmex.Create(nil);
  Bitmex.OnBitmexTrade := OnTrade;
  Bitmex.Connect;
end;

procedure TForm1.Subscribe;
begin
  Bitmex.SubscribeTrade('XBTUSD');
end;

procedure TForm1.OnTrade(Sender: TObject;
  aSymbol, aPrice, aSize, aSide: string);
begin
  Memo1.Lines.Add(aSymbol + ' ' + aSide +
    ' ' + aSize + ' @ $' + aPrice);
end;

Documentation & Demos

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

Ready to Stream Bitmex Data?

Download the free trial and connect to Bitmex derivatives in minutes.