Kraken WebSocket API

Access real-time ticker, OHLC, spread, order book, and trade data from Kraken via WebSocket.

Kraken Integration

Subscribe to Kraken's public and private WebSocket channels for real-time market and account data.

Kraken Market Data Streams

The sgcWebSockets Kraken component provides real-time market data from one of the most trusted cryptocurrency exchanges. Access ticker updates, OHLC candles, order book depth, spread data, and trade events for all supported trading pairs.

  • Ticker, OHLC, and spread subscriptions
  • Order book depth with configurable levels
  • Real-time trade stream
  • Private channels for orders and balances

Delphi Kraken Example

Subscribe to Kraken ticker updates.

uses
  sgcHTTP_API_Kraken;

var
  Kraken: TsgcHTTPAPI_Kraken;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Kraken := TsgcHTTPAPI_Kraken.Create(nil);
  Kraken.OnKrakenTicker := OnTicker;
  Kraken.Connect;
end;

procedure TForm1.Subscribe;
begin
  Kraken.SubscribeTicker('XBT/USD');
end;

procedure TForm1.OnTicker(Sender: TObject;
  aPair, aAsk, aBid, aLastPrice: string);
begin
  Label1.Caption := aPair + ': $' + aLastPrice;
  Label2.Caption := 'Bid: $' + aBid + ' Ask: $' + aAsk;
end;

Documentation & Demos

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

Ready to Stream Kraken Data?

Download the free trial and connect to Kraken in minutes.