Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 659 Bytes

File metadata and controls

30 lines (24 loc) · 659 Bytes

BitSharesWebsocket

This class allows subscribe to push notifications from the BitShares node.

from pprint import pprint
from bitsharesapi.websocket import BitSharesWebsocket

ws = BitSharesWebsocket(
    "wss://node.testnet.bitshares.eu",
    markets=[["1.3.0", "1.3.172"]],
    accounts=["xeroc"],
    objects=["2.0.x", "2.1.x"],
    on_market=pprint,
    on_account=print,
)

ws.run_forever()

Defintion

.. autoclass:: bitsharesapi.websocket.BitSharesWebsocket
    :members:
    :undoc-members:
    :private-members:
    :special-members: