Skip to main content

Asynchronous Websockets API for the Kraken Cryptocurrency Exchange

Project description

Kraken-async-api

codecov

A library for asynchronous communications with the Kraken cryptocurrency exchange.

Quickstart

import asyncio

from kraken_async_api import Kraken, Config, Depth


async def print_(data):
    print(data)


async def main():
    # Only necessary if you wish to communicate with private endpoints
    config = Config(api_key="your api-key", api_sec="your api-sec")

    kraken_exchange = await Kraken.connect(async_callback=print_, config=config)

    # ... your usage of the API here, for example:
    kraken_exchange.public.subscribe_to_book(["XXBTZGBP"], Depth.D25)


if __name__ == '__main__':
    asyncio.get_event_loop().run_until_complete(main())

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

kraken-async-api-0.1.1b1.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

kraken_async_api-0.1.1b1-py3-none-any.whl (12.2 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