TradesChannel

# Import statement

from bcx.channels import TradesChannel
class TradesChannel(symbol, ws, name)[source]

Representation of trades channel

Parameters
symbolstr
namestr
wsBlockchainWebsocket

Attributes

is_subscribed

(bool)

updates

(List)

Methods

on_update(self, event_response)

Perform action upon update event message received from server

property extra_message

Additional message to be send to server

on_update(self, event_response: Dict)[source]

Perform action upon update event message received from server

Parameters
event_responseDict