Skip to content

Commit 09a7a0a

Browse files
authored
Merge branch 'master' into typo
2 parents 316d27f + fa83a31 commit 09a7a0a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public_client.get_time()
107107
Not all API endpoints are available to everyone.
108108
Those requiring user authentication can be reached using `AuthenticatedClient`.
109109
You 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).
111111
The `AuthenticatedClient` inherits all methods from the `PublicClient`
112112
class, so you will only need to initialize one if you are planning to
113113
integrate 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
262262
import 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...
266269
wsClient.close()
267270
```
@@ -271,7 +274,8 @@ wsClient.close()
271274
import cbpro
272275
# Parameters are optional
273276
wsClient = 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...
276280
wsClient.close()
277281
```

0 commit comments

Comments
 (0)