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.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3

liquidtap-1.0.2-py2-none-any.whl (10.4 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: liquidtap-1.0.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for liquidtap-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ea88861ac4aac99c59c5047f71d381cf362aecbd630928c6a9036379e1dee24a
MD5 1565e1b5f1b97af4f824d0969f216aeb
BLAKE2b-256 88e30e191c9ca95c2951f16e63062a98cc4ee9467caf26ef7997f363224030ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liquidtap-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80090140d29fffb11a7496c76a6d4fd642e06cc3663c20908b5dea4947a1def6
MD5 bc2afeec719681ddd4b4c57e81f6bc8c
BLAKE2b-256 64b631a6f76eaafd493c1af4647d7285287faea56c8c66b8b25e678bc7c25921

See more details on using hashes here.

File details

Details for the file liquidtap-1.0.2-py2-none-any.whl.

File metadata

  • Download URL: liquidtap-1.0.2-py2-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for liquidtap-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 d03e0e9e630390a712f2fb85f286354b410f829b96c31a06a47944f820659b6d
MD5 424e2d5f15c177de60d12c8428c86d11
BLAKE2b-256 190c7ccf27615a1e5db8f544c457f0ff67a1fc41e4475c65440ebc636ed870ba

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