@@ -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/profile /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.
@@ -260,8 +260,11 @@ If you would like to receive real-time market updates, you must subscribe to the
260260#### Subscribe to a single product
261261``` python
262262import cbpro
263+
263264# Parameters are optional
264- wsClient = cbpro.WebsocketClient(url = " wss://ws-feed.pro.coinbase.com" , products = " BTC-USD" )
265+ wsClient = cbpro.WebsocketClient(url = " wss://ws-feed.pro.coinbase.com" ,
266+ products = " BTC-USD" ,
267+ channels = [" ticker" ])
265268# Do other stuff...
266269wsClient.close()
267270```
@@ -271,7 +274,8 @@ wsClient.close()
271274import cbpro
272275# Parameters are optional
273276wsClient = cbpro.WebsocketClient(url = " wss://ws-feed.pro.coinbase.com" ,
274- products = [" BTC-USD" , " ETH-USD" ])
277+ products = [" BTC-USD" , " ETH-USD" ],
278+ channels = [" ticker" ])
275279# Do other stuff...
276280wsClient.close()
277281```
0 commit comments