Python asyncio client for Kraken REST and Websockets API
We follow the gitflow workflow for branches:
develop
.master
(also released as a PyPI package)pip install aiokraken
python -m aiokraken.model.tests
pytest tests/aiokraken/rest # for replay using cassettes
pytest tests/aiokraken/rest --with-keyfile --record-mode=all # for actual server integration test
from aiokraken import RestClient
async def get_assets():
""" get kraken time"""
rest_kraken = RestClient()
response = await rest_kraken.assets()
print(f'response is {response}')
await rest_kraken.close()
asyncio.get_event_loop().run_until_complete(get_assets())
bokeh serve --show aiokraken/bokeh_app/ohlc_dynfig.py
Contributions are welcome and PR will be merged into develop as quickly as possible.
Here are some guidelines that makes everything easier for everybody:
https://www.kraken.com/features/api
The MIT License (MIT)
TODO : Change to GPL (NB: Dan is okay)