Crates.io | exante |
lib.rs | exante |
version | 0.2.0 |
source | src |
created_at | 2023-11-06 21:04:50.509423 |
updated_at | 2023-11-11 20:58:07.338161 |
description | HTTP client for Exante REST API version 3.0 |
homepage | |
repository | https://github.com/semkowicz/exante |
max_upload_size | |
id | 1027241 |
size | 56,727 |
HTTP client for Exante REST API version 3.0.
This asynchronous example uses Tokio, so your Cargo.toml
could look like this:
[dependencies]
exante = "0.2.0"
tokio = { version = "1", features = ["full"] }
and then the code:
use exante::{AccountType, Client, ClientError};
#[tokio::main]
async fn main() -> Result<(), ClientError> {
let accounts = Client::new(AccountType::Demo, "api-key", "secret-key")
.get_user_accounts()
.send()
.await?;
println!("{accounts:?}");
Ok(())
}
Strings api-key
and secret-key
should be replaced with your own
authentication key.
More examples can be found in examples directory.
Basic HTTP authentication scheme is used for sending requests to Exante server.
In order to generate an authentication key, please follow the steps below.
Client was implemented based on Exante REST API documentation. Version 3.0 is used for all requests.
The table below shows the currently implemented endpoints.
API | Supported |
---|---|
Historical | - |
Accounts | Yes |
Daily change | - |
Cross rates | Yes |
Symbols | - |
Live feed | - |
Account summary | Yes |
Transactions | Yes |
Orders | - |
Orders stream | - |
Trades stream | - |