PricesChannel

# Import statement

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

Representation of prices channel

Parameters
symbolstr
granularityint
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

property last_price

Last available price from this channel

on_update(self, event_response)[source]

Perform action upon update event message received from server

Parameters
event_responseDict