2 unstable releases

0.2.0 Nov 11, 2023
0.1.0 Nov 6, 2023

#299 in HTTP client

40 downloads per month

MIT/Apache

22KB
409 lines

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 -

Dependencies

~6–23MB
~356K SLoC