MCPcopy Create free account
hub / github.com/danpaquin/coinbasepro-python / on_open

Method on_open

cbpro/order_book.py:277–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

275
276 class WebsocketConsole(WebsocketClient):
277 def on_open(self):
278 self.products = ['BTC-USD', 'ETH-USD']
279 self.order_book_btc = OrderBookConsole(product_id='BTC-USD')
280 self.order_book_eth = OrderBookConsole(product_id='ETH-USD')
281
282 def on_message(self, msg):
283 self.order_book_btc.process_message(msg)

Callers

nothing calls this directly

Calls 1

OrderBookConsoleClass · 0.85

Tested by

no test coverage detected