Bitmex Derivatives API
Stream real-time derivatives market data including perpetual contracts, funding rates, and liquidations from Bitmex.
Stream real-time derivatives market data including perpetual contracts, funding rates, and liquidations from Bitmex.
Access real-time derivatives trading data, order book updates, and account information via Bitmex WebSocket streams.
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.
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;
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.