6 releases (breaking)

new 0.27.0 Nov 28, 2024
0.26.0 Jul 10, 2024
0.25.0 Jan 29, 2024
0.24.0 Jan 4, 2024
0.22.0 Aug 23, 2023

#132 in Magic Beans

Download history 1/week @ 2024-08-01 5/week @ 2024-09-12 11/week @ 2024-09-19 4/week @ 2024-09-26 1/week @ 2024-10-10

351 downloads per month

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
~280K SLoC