Apophis: A python client for Kraken
Project description
Apophis: A python client for Kraken
Apophis is a Python client for Kraken's REST API. It provides a common interface for both Kraken and Kraken Future.
from apophis import Apophis
with Apophis() as client:
response = client.query('Ticker', {'pair': 'XXRPZEUR'})
print(response['result'])
{'XXRPZEUR': {'a': ['0.48683000', '33129', '33129.000'],
'b': ['0.48659000', '2915', '2915.000'],
'c': ['0.48719000', '41.55695712'],
'v': ['13015397.92184023', '46789050.96995769'],
'p': ['0.48149626', '0.47328592'],
't': [5110, 19079],
'l': ['0.45331000', '0.44697000'],
'h': ['0.49354000', '0.49681000'],
'o': '0.45730000'}}
You want to say thanks?
Installation
The latest stable release (and older versions) can be installed from PyPI:
pip install apophis
You may instead want to use the development version from Github. Poetry is needed and can be installed either from PyPI or:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
Then once you cloned the repository, you can install it with:
poetry install
Contributing
Want to add a cool logo, more doc, tests or new features? Contributors are more than welcome! Feel free to open an issue or even better propose changes with a PR. Have a look at the contributing guide.
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
Built Distribution
File details
Details for the file apophis-1.0.tar.gz
.
File metadata
- Download URL: apophis-1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Darwin/20.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc33783e723b74ead61ea765f7db6652562d136db7bbb91744ddd4ee050850f7 |
|
MD5 | cbc2964701045fd5f485564bf418315e |
|
BLAKE2b-256 | 9972be6e26887c62d3097b4fce99f4e84e7ef86b160903dc9f837d6d02ea96e8 |
File details
Details for the file apophis-1.0-py3-none-any.whl
.
File metadata
- Download URL: apophis-1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Darwin/20.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53176523211ac2fbe9c1a544b21ec8813045f815c911b842adb068e9b8dcf695 |
|
MD5 | 0c97d24c7494dd7fe1dd91d28c7a599c |
|
BLAKE2b-256 | 6ecfc7335964bbf5ac6212459bae7488e44fc5ba4fa027842286b309093763e2 |