Skip to main content

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.3.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

liquidtap-1.0.3-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page