Kraken WebSockets Client in Python
Branch: master
Clone or download
Kraken
Latest commit 5a6ef67 Jan 30, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
kraken_wsclient_py hyphens -> underscores in package name Jan 30, 2019
.gitignore initial import Jan 23, 2019
LICENSE.txt initial import Jan 23, 2019
README.md README.md: add Sample Usage section Jan 30, 2019
setup.py hyphens -> underscores in package name Jan 30, 2019

README.md

Kraken WebSockets Client in Python

Sample Kraken WebSockets client in Python. This client was created for demonstration purposes only. It is neither maintained nor supported.

Installation

pip install kraken-wsclient-py

Sample Usage

from kraken_wsclient_py import kraken_wsclient_py as client

def my_handler(message):
    # Here you can do stuff with the messages
    print(message)

my_client = client.WssClient()
my_client.subscribe_public(
    subscription={
        'name': 'trade'
    },
    pair=['XBT/USD', 'XRP/USD'],
    callback=my_handler
)

my_client.start()

Compatibility

This code has been tested on Python 3.7.

Contributing

Pull requests are not monitored and likely will be ignored.