File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -244,14 +244,15 @@ the database collection.
244244``` python
245245# import PyMongo and connect to a local, running Mongo instance
246246from pymongo import MongoClient
247+ import gdax
247248mongo_client = MongoClient(' mongodb://localhost:27017/' )
248249
249250# specify the database and collection
250251db = mongo_client.cryptocurrency_database
251252BTC_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 )
256257wsClient.start()
257258```
You can’t perform that action at this time.
0 commit comments