File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public_client.get_time()
107107Not all API endpoints are available to everyone.
108108Those requiring user authentication can be reached using ` AuthenticatedClient ` .
109109You must setup API access within your
110- [ account settings] ( https://www. pro.coinbase.com/settings/api ) .
110+ [ account settings] ( https://pro.coinbase.com/settings/api ) .
111111The ` AuthenticatedClient ` inherits all methods from the ` PublicClient `
112112class, so you will only need to initialize one if you are planning to
113113integrate both into your script.
@@ -261,7 +261,9 @@ If you would like to receive real-time market updates, you must subscribe to the
261261``` python
262262import cbpro
263263# Paramters are optional
264- wsClient = cbpro.WebsocketClient(url = " wss://ws-feed.pro.coinbase.com" , products = " BTC-USD" )
264+ wsClient = cbpro.WebsocketClient(url = " wss://ws-feed.pro.coinbase.com" ,
265+ products = " BTC-USD" ,
266+ channels = [" ticker" ])
265267# Do other stuff...
266268wsClient.close()
267269```
@@ -271,7 +273,8 @@ wsClient.close()
271273import cbpro
272274# Paramaters are optional
273275wsClient = cbpro.WebsocketClient(url = " wss://ws-feed.pro.coinbase.com" ,
274- products = [" BTC-USD" , " ETH-USD" ])
276+ products = [" BTC-USD" , " ETH-USD" ],
277+ channels = [" ticker" ])
275278# Do other stuff...
276279wsClient.close()
277280```
You can’t perform that action at this time.
0 commit comments