Skip to content

Commit 1d2f993

Browse files
haxorjimMichael Cardillo
authored andcommitted
Corrections to README.md
1 parent 19cac25 commit 1d2f993

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 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/settings/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.
@@ -261,7 +261,9 @@ If you would like to receive real-time market updates, you must subscribe to the
261261
```python
262262
import 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...
266268
wsClient.close()
267269
```
@@ -271,7 +273,8 @@ wsClient.close()
271273
import cbpro
272274
# Paramaters are optional
273275
wsClient = 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...
276279
wsClient.close()
277280
```

0 commit comments

Comments
 (0)