exante

Crates.ioexante
lib.rsexante
version0.2.0
sourcesrc
created_at2023-11-06 21:04:50.509423
updated_at2023-11-11 20:58:07.338161
descriptionHTTP client for Exante REST API version 3.0
homepage
repositoryhttps://github.com/semkowicz/exante
max_upload_size
id1027241
size56,727
Daniel Semkowicz (semkowicz)

documentation

README

Exante

HTTP client for Exante REST API version 3.0.

Example

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.

Authentication

Basic HTTP authentication scheme is used for sending requests to Exante server.

In order to generate an authentication key, please follow the steps below.

  1. Log in to your Exante account.
  2. Go to 'Settings' -> 'API Management'.
  3. Press 'Add API Key' button in upper right corner.

Supported endpoints

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 -
Commit count: 30

cargo fmt