#cryptocurrency #blockchain #trading

crypto-rest-client

An RESTful client for all cryptocurrency exchanges

77 releases (2 stable)

1.0.1 Feb 18, 2023
1.0.0 Oct 31, 2022
0.9.9 Oct 31, 2022
0.9.5 Jul 19, 2022
0.1.0 Dec 30, 2020

#138 in #trading


Used in 2 crates (via crypto-crawler)

Apache-2.0

94KB
1.5K SLoC

crypto-rest-client

An RESTful client for all cryptocurrency exchanges.

Example

use crypto_rest_client::{BinanceClient};

fn main() {
    let config: HashMap<&str, &str> = vec![
        ("api_key", "your-API-key"),
        ("api_secret", "your-API-secret"),
    ].into_iter().collect();

    let rest_client = BinanceClient::new(config);

    // buy
    let transaction_id = rest_client.place_order("Spot", "btcusdt", 27999.9, 5.0, false);
    println!("{}", transactionId);
}

Supported Exchanges

  • Binance
  • Huobi
  • OKEx

Dependencies

~6–20MB
~278K SLoC