Command-line client for the Kraken exchange
Project description
Command-line client for the Kraken exchange
Installation
WARNING: This software is currently in development.
DO NOT USE for production!
You should install it in a virtualenv.
Step 1: Create a virtualenv
pyvenv ~/.venv/clikraken
And activate it:
source ~/.venv/clikraken/bin/activate
Step 2: Install dependencies
clikraken depends on the following extra modules:
arrow, for better handling of date and time
tabulate, for printing results as tables
python3-krakenex, for the low-level interface with the Kraken API
Somehow you need to install the two dependencies manually before installing clikraken. I haven’t been successfull in making the dependency system of pip work consistently yet with python3-krakenex being only available as a Git repository.
Install arrow and tabulate in the activated virtualenv:
pip install arrow tabulate
Install python3-krakenex in the activated virtualenv:
pip install -e "git+https://github.com/veox/python3-krakenex.git@33b758f1f56257a35da85b0b14eb9cb1afb7b045#egg=krakenex-0.0.6"
Step 3: Install clikraken
# make sure you have installed arrow, tabulate and krakenex before! pip install --pre clikraken
Step 4: Add your API key in the $HOME/.config/kraken.key file
You will need it to perform private queries to the Kraken API.
keykeykeykeykeykeykeykeykeykeykeykeykeykeykeykeykeykeykey secretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecretsecret
Usage
First activate the virtualenv:
source ~/.venv/clikraken/bin/activate
Get help to see the available commands:
clikraken --help
Output:
usage: clikraken [-h] [-v] [--raw]
{ticker,depth,last_trades,balance,place,cancel,olist,clist}
...
Command line client for the Kraken exchange
positional arguments:
{ticker,depth,last_trades,balance,place,cancel,olist,clist}
available subcommands
ticker [public] Get the Ticker
depth [public] Get the current market depth data
last_trades [public] Get the last trades
balance [private] Get your current balance
place [private] Place an order
cancel [private] Cancel an order
olist [private] Get a list of your open orders
clist [private] Get a list of your closed orders
optional arguments:
-h, --help show this help message and exit
-v, --version Show program version
--raw Output raw json results
You can deactivate the virtualenv with deactivate.
Upgrade
In the activated virtualenv:
pip install -U --no-deps --pre clikraken
--no-deps is currently needed because trying to upgrade the dependency krakenex fails, because it is not available on PyPi, only as a Git repository.
Attribution
clikraken code is licensed under the Apache license, Version 2.0. See the LICENSE file. For the full text, see here.
Dependencies
python3-krakenex code is licensed under the LGPLv3 license.
Arrow code is licensed under is licensed under the Apache License, Version 2.0.
tabulate code is licensed under is licensed under the MIT Licence.
Development dependencies
pip install pypandoc twine wheel
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clikraken-0.0.1.dev45.tar.gz.
File metadata
- Download URL: clikraken-0.0.1.dev45.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b5368a28fd4c1df103626df71de49e0c264daf61e1fd32a776c6966aae9f406
|
|
| MD5 |
9224e08fba2bc60e52910d4ee8e481a2
|
|
| BLAKE2b-256 |
edd3b24ce1e1b6590ce8bf6c8190f778221b7bed02b7dc59b62321cb3052409f
|
File details
Details for the file clikraken-0.0.1.dev45-py3-none-any.whl.
File metadata
- Download URL: clikraken-0.0.1.dev45-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1400a3e35247fe2c9d5cb2f9e6f26df301e6bb42af0af695c64d2c6cd1446822
|
|
| MD5 |
df202d90c951fbd9abc3e2f7cb4851fa
|
|
| BLAKE2b-256 |
ba2f5cadd3c98f1b1c135c2f35088b583ec06d078ec90a7a100f002a19a4672c
|