Metadata-Version: 2.1
Name: kraken-async-api
Version: 0.1.1b1
Summary: Asynchronous Websockets API for the Kraken Cryptocurrency Exchange
Home-page: https://github.com/nickjfenton/kraken-async-api
Author: nickjfenton
Author-email: nickjfenton@yahoo.co.uk
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.4.0
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: aiohttp
Requires-Dist: websockets

# Kraken-async-api
[![codecov](https://codecov.io/gh/nickjfenton/kraken-async-api/branch/master/graph/badge.svg?token=ZRHK1XGKDA)](https://codecov.io/gh/nickjfenton/kraken-async-api)

A library for asynchronous communications with the Kraken cryptocurrency exchange.

## Quickstart

```python
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())

```


