Crates.io | gambero |
lib.rs | gambero |
version | 0.1.2 |
source | src |
created_at | 2021-03-06 07:47:25.965095 |
updated_at | 2021-03-08 13:58:03.291115 |
description | 🦐 Command-line interface (CLI) for Kraken exchange WebSockets API | Written in Rust |
homepage | |
repository | https://github.com/xonoxitron/gambero |
max_upload_size | |
id | 364693 |
size | 1,246,629 |
gambero
executable offers I/O interop with the Kraken exchange WebSockets API.
NOTE: this is a compound tool built on top of squalo and polipo libraries. Have a look at them if you need detached and/or more application-specific integration capabilities.
The Kraken exchange allows WebSockets API
interaction with both public
and private
data.
Only for the private
one, you need to issue an API-Key
and an API-Secret
to the gambero
executable, in order to generate authentication token for signed subscriptions on WebSockets
endpoints.
If you are not familiar with, please have a look at WebSockets API - FAQ for a general overview, or at WebSockets API document.
By supposing that there's cargo installed on your system, just spawn a console
and run:
cargo install gambero
For Kraken public API
interaction, run:
gambero public
For Kraken private API
interaction, run:
gambero private <kraken_api_key> <kraken_api_secret>
A spawned gambero
instance utilizes both stdin
and stdout
as data streams.
The crate information
and the usage instructions
printed out at the very beginning of the execution, comes in plain text
.
For any incoming/outgoing data, stringified JSON
format is used/expected.
It's up to you to submit/parse payloads accordingly to their shapes.
NOTE: only for the private
stream, if both the API Key
and the API Secret
have been correctly issued, an authentication token
will be returned in the compact form as follow:
{"token":"5t+vlXHPfRfb660YUiIeA0m9PESCKpJqO0bH8G+OjMw"}
and it can be used in the envelop of any further message that need it explicitly.
Public stream
Private stream
This software comes without any kind of warranties.
I will not be liable for any damages related to the use or the misuse of this software.
You are the sole responsible.