5 releases (breaking)

0.26.0 Jul 10, 2024
0.25.0 Jan 29, 2024
0.24.0 Jan 4, 2024
0.23.0 Sep 6, 2023
0.22.0 Aug 23, 2023

#8 in #kraken

Apache-2.0

115KB
3K SLoC

Kraken CLI

A CLI for the Kraken Exchange.

Setup

To install the executable from source, run:

cargo install --path .

Usage

kraken --help

kraken market ticker BTC/USD

kraken account balance

kraken account orders list
kraken account orders list --json --pretty
kraken account orders list -jp

kraken account orders cancel OLJ-XXXX-YYYY

kraken account orders create --type limit --side BUY --pair BTC/USD --volume 0.1 --price 1000.0

Additional functionality that will be supported in the future:

kraken account balance --json --pretty

kraken account orders remove ...
kraken account orders create ...

Calling private API endpoints requires credentials provided through env variables:

export KRAKEN_API_KEY="..."
export KRAKEN_API_SECRET="..."

The RUST_LOG env variable is used to configure tracing, e.g.

RUST_LOG=debug kraken market ticker BTC/USD

Status

This work is under active development and the API is expected to change.

Contributing

Pull requests, issues and comments are welcome! Make sure to add tests for new features and bug fixes.

License

This work is licensed under the Apache-2.0 License. See LICENSE.txt or https://spdx.org/licenses/Apache-2.0.html for details.

Copyright © 2023 Georgios Moschovitis.

Dependencies

~9–21MB
~279K SLoC