QuoineFinancial/LiquidTap websocket client for Python
Project description
LiquidTap Python Client
To manage API tokens, refer to: https://app.liquid.com/settings/api-tokens
To learn more about Liquid Api token management, see the help links below: https://help.liquid.com/connect-to-liquid-via-api
Getting Started
pip3 install liquidtap
The library can connect to public channels without token credentials.
import liquidtap
def update_callback(data):
print(data)
def on_connect(data):
tap.pusher.subscribe("price_ladders_cash_btcjpy_buy").bind('updated', update_callback)
if __name__ == "__main__":
tap = liquidtap.Client()
tap.pusher.connection.bind('pusher:connection_established', on_connect)
tap.pusher.connect()
Authentication
Authenticate on initialization
import liquidtap
def update_callback(data):
print(data)
def on_connect(data):
print(data)
tap.pusher.subscribe("price_ladders_cash_btcjpy_buy").bind('updated', update_callback)
if __name__ == "__main__":
tap = liquidtap.Client("insert token id", "insert token secret")
tap.pusher.connection.bind('pusher:connection_established', on_connect)
tap.pusher.connect()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
liquidtap-1.0.2.tar.gz
(8.9 kB
view hashes)
Built Distributions
liquidtap-1.0.2-py3-none-any.whl
(10.4 kB
view hashes)
liquidtap-1.0.2-py2-none-any.whl
(10.4 kB
view hashes)
Close
Hashes for liquidtap-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80090140d29fffb11a7496c76a6d4fd642e06cc3663c20908b5dea4947a1def6 |
|
MD5 | bc2afeec719681ddd4b4c57e81f6bc8c |
|
BLAKE2b-256 | 64b631a6f76eaafd493c1af4647d7285287faea56c8c66b8b25e678bc7c25921 |
Close
Hashes for liquidtap-1.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d03e0e9e630390a712f2fb85f286354b410f829b96c31a06a47944f820659b6d |
|
MD5 | 424e2d5f15c177de60d12c8428c86d11 |
|
BLAKE2b-256 | 190c7ccf27615a1e5db8f544c457f0ff67a1fc41e4475c65440ebc636ed870ba |