Bitstamp Exchange API
Access live order book, trade, and ticker data from one of Europe's leading cryptocurrency exchanges.
Access live order book, trade, and ticker data from one of Europe's leading cryptocurrency exchanges.
Subscribe to Bitstamp's WebSocket channels for real-time market data with minimal latency.
The sgcWebSockets Bitstamp component provides real-time access to one of the longest-running cryptocurrency exchanges. Receive live order book updates, trade events, and ticker data for all available trading pairs through a persistent WebSocket connection.
Subscribe to Bitstamp live trades.
uses
sgcHTTP_API_Bitstamp;
var
Bitstamp: TsgcHTTPAPI_Bitstamp;
procedure TForm1.FormCreate(Sender: TObject);
begin
Bitstamp := TsgcHTTPAPI_Bitstamp.Create(nil);
Bitstamp.OnBitstampTrade := OnTrade;
Bitstamp.Connect;
end;
procedure TForm1.Subscribe;
begin
Bitstamp.SubscribeTrades('btcusd');
end;
procedure TForm1.OnTrade(Sender: TObject;
aPrice, aAmount: string);
begin
Memo1.Lines.Add('BTC/USD: $' + aPrice +
' x ' + aAmount);
end;
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.