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

Method on_message

cbpro/websocket_client.py:158–160  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

156 print("Let's count the messages!")
157
158 def on_message(self, msg):
159 print(json.dumps(msg, indent=4, sort_keys=True))
160 self.message_count += 1
161
162 def on_close(self):
163 print("-- Goodbye! --")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected