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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file liquidtap-1.0.3.tar.gz.

File metadata

  • Download URL: liquidtap-1.0.3.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.9

File hashes

Hashes for liquidtap-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3285d8fbef954eac791e445477226e190b643962674a504e04ffdd24e65b25a4
MD5 6aad0ca27d504f0c3e00ab5c00a49878
BLAKE2b-256 93092a1040a16263639a16b977df4a6f499cd13adbca1892994ccb93a26984da

See more details on using hashes here.

File details

Details for the file liquidtap-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: liquidtap-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.9

File hashes

Hashes for liquidtap-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a4498a78d210dd175cf780171522e4746d6b06ca38bb41a9089ef98e61e79762
MD5 53479ec52064819729a9855fefec5888
BLAKE2b-256 5fd9a2e03a51d9723fd2729f6d73de416f0ef955a4c3192bd1e6bcb6b0258a95

See more details on using hashes here.

Supported by

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