Skip to content

Commit 2e7bda8

Browse files
committed
clarifies the Mongo instructions in README
1 parent 193766a commit 2e7bda8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,15 @@ the database collection.
244244
```python
245245
# import PyMongo and connect to a local, running Mongo instance
246246
from pymongo import MongoClient
247+
import gdax
247248
mongo_client = MongoClient('mongodb://localhost:27017/')
248249

249250
# specify the database and collection
250251
db = mongo_client.cryptocurrency_database
251252
BTC_collection = db.BTC_collection
252253

253254
# instantiate a WebsocketClient instance, with a Mongo collection as a parameter
254-
wsClient = WebsocketClient(url="wss://ws-feed.gdax.com", products="BTC-USD",
255+
wsClient = gdax.WebsocketClient(url="wss://ws-feed.gdax.com", products="BTC-USD",
255256
mongo_collection=BTC_collection, should_print=False)
256257
wsClient.start()
257258
```

0 commit comments

Comments
 (0)