Skip to content

Commit

Permalink
Merge pull request #46 from tiagosiebler/jerko
Browse files Browse the repository at this point in the history
chore(): added all public CBexchange ws examples
  • Loading branch information
JJ-Cro authored Sep 26, 2024
2 parents 5066dff + 095d6a9 commit 360ac20
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion examples/CBExchange/WebSockets/publicWs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,27 @@ async function start() {
// product_ids: ['ETH-USD', 'BTC-USD'],
},
},
// TODO: @jerko add other PUBLIC channels here as example
// https://docs.cdp.coinbase.com/exchange/docs/websocket-channels#ticker-channel
{
topic: 'ticker',
payload: {
product_ids: ['ETH-USD', 'BTC-USD'],
},
},
// https://docs.cdp.coinbase.com/exchange/docs/websocket-channels#ticker-batch-channel
{
topic: 'ticker_batch',
payload: {
product_ids: ['ETH-USD', 'BTC-USD'],
},
},
// https://docs.cdp.coinbase.com/exchange/docs/websocket-channels#level2-batch-channel
{
topic: 'level2_batch',
payload: {
product_ids: ['ETH-USD', 'BTC-USD'],
},
},
],
'exchangeMarketData',
);
Expand Down

0 comments on commit 360ac20

Please sign in to comment.