asmodehn / aiokraken

Asyncio Library for http://kraken.com
MIT License
2 stars 0 forks source link
cryptocurrency kraken kraken-api trading

aiokraken

Build Status Updates Python 3

Python asyncio client for Kraken REST and Websockets API

We follow the gitflow workflow for branches:

Installation

pip install aiokraken

Running packaged tests

python -m aiokraken.model.tests

Running integration tests (developer)

pytest tests/aiokraken/rest   # for replay using cassettes
pytest tests/aiokraken/rest --with-keyfile --record-mode=all  # for actual server integration test

REST example

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

websocket example

Running the bokeh app

 bokeh serve --show aiokraken/bokeh_app/ohlc_dynfig.py 

Documentation

Compatibility

Contributing

Contributions are welcome and PR will be merged into develop as quickly as possible.

Here are some guidelines that makes everything easier for everybody:

  1. Fork it.
  2. Create a feature branch containing only your fix or feature.
  3. Add/Update tests.
  4. Create a pull request.

TODO

References

https://www.kraken.com/features/api

Licence

The MIT License (MIT)

TODO : Change to GPL (NB: Dan is okay)