Need help with python3-krakenex?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

622 Stars 227 Forks Other 231 Commits 20 Opened issues


REST Exchange API for, Python 3

Services available


Need anything else?

Contributors list

.. image:: :alt: Latest Travis continuous integration build :target: .. image:: :alt: Read latest documentation :target: .. image:: :alt: Latest PyPI release :target: .. image:: :alt: Development discussion at :target:

krakenex exchange API, Python 3 package.

This package is intentionally as lean as possible, and only provides a minimal interface to the

_ cryptocurrency exchange.

Intended for developers, not traders.

.. _Kraken:

Software that uses

Libraries ^^^^^^^^^

  • pykrakenapi_ - nicely wraps API methods into regular Python methods, and JSON responses into Pandas_ dataframes (available on PyPI!)
  • CurrencyViewer_ - short python3 framework for data extraction, conversion, and smooth development experience (available on PyPI!)

.. _pykrakenapi: .. _Pandas: .. _CurrencyViewer:

Clients ^^^^^^^

  • clikraken_ - command-line client for the Kraken exchange (available on PyPI!)
  • Telegram-Kraken-Bot_ - Telegram bot to trade on Kraken exchange

.. _clikraken: .. _Telegram-Kraken-Bot:


View the latest_ or stable_ online at ReadTheDocs.

The code is documented in docstrings, and can be viewed with a text editor.

You can also generate your own with, e.g.,

make html
. This requires
and its

For the most up-to-date list of public/private Kraken API methods, see their

API documentation

.. _latest: .. _stable: .. _API documentation:


A few package use examples are available in the examples_ directory.

.. _examples: examples/


This package requires Python 3.3 or later. The module will be called



PyPI package
_ is available.

For general use, there is only one direct dependency:


.. _PyPI package: .. _requests:

Locally for a project, in a virtual environment (recommended) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This requires


In a terminal:

.. code-block:: sh

# create directory for a project that'll be using krakenex mkdir my-project cd my-project # bootstrap virtualenv export VIRTUALENV=.virtualenv/krakenex mkdir -p $VIRTUALENV virtualenv $VIRTUALENV source $VIRTUALENV/bin/activate # install from PyPI pip install krakenex

For more information on

, see
its documentation

.. _its documentation:

For the user ^^^^^^^^^^^^



.. code-block:: sh

# install from PyPI pip install --user krakenex # ... or from local git repo clone cd CLONE-OF-GIT-REPO pip install --user .

System-wide (not recommended) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In general, use the distribution's package manager.

If it's unavailable, one can use


.. code-block:: sh

# install from PyPI pip install krakenex # ... or from local copy pip install /path/to/clone/of/repo


"Core" code is licensed under LGPLv3. See


Examples are licensed under the Simplified BSD license. See


Payward's PHP API
, Alan McIntyre's
, and ScriptProdigy's
Cryptsy Python API
_ were used as examples when writing the original python2-krakenex_ package. It was then ported to Python 3.

.. _Payward's PHP API: .. _BTC-e API: .. _Cryptsy Python API: .. _python2-krakenex:

Development notes

Do not annoy the Kraken with tests ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Some tests may be making queries to the Kraken API server.

If you intend to do development on this package, and have tests enabled on

Travis CI
_, be sure to limit concurrent jobs to 1, and enable all possible auto-cancellations.

(Better yet, don't rely on public infrastructure, but run the tests locally first.)

.. _Travis CI:

No Python 2 ^^^^^^^^^^^

This package will never support Python 2. There will be no changes made to enable compatibility with Python 2. Python 3.0 was

released in
_, before Bitcoin was.

There is no reason to support Python 2 except for compatibility with systems from the pre-blockchain era.

The fact that some GNU/Linux distributions still ship with Python 2 as the default seems unfortunate to me. However, I will not support this madness with my precious time.

If you have a valid reason to use Python 2, see python2-krakenex_. Be warned, though, that it is unmaintained.

.. released in 2008:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.