Coinbase WebSocket API

From sgcWebSockets 4.4.7, Coinbase WebSocket API is supported. Coinbase is a platform that allows to sell, buy and store cryptocurrencies like Ethereum, Bitcoin...

WebSocket API allow to receive in real-time ticker updates, status, tickers, book deepth and more.


How Connect to Coinbase

1
2
3
4
5
oClient := TsgcWebSocketClient.Create(nil);
oCoinbase := TsgcWSAPI_Coinbase.Create(nil);
oCoinbase.Client := oClient;
oClient.Active := True; 
X

How Subscribe Ticker 

1
2
3
4
5
6
7
8
9
10
11
12
oClient := TsgcWebSocketClient.Create(nil);
oCoinbase := TsgcWSAPI_Coinbase.Create(nil);
oCoinbase.Client := oClient;
oCoinbase.SubscribeTicker('ETH-USD']);
procedure OnCoinbaseMessage(Sender: TObject; aType, aRawMessage: string);
begin
// here you will receive the ticker updates
end; 
X
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
0:00
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
1x
×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

Binance Futures APIs USDT and COIN
Telegram Bot Chat not found

Related Posts