#cryptocurrency #blockchain #trading

crypto-rest-client

An RESTful client for all cryptocurrency exchanges

73 releases

Uses new Rust 2021

0.9.7 Aug 17, 2022
0.9.5 Jul 19, 2022
0.8.7 Mar 27, 2022
0.7.8 Nov 21, 2021
0.1.0 Dec 30, 2020

#2316 in Magic Beans

Download history 90/week @ 2022-06-10 54/week @ 2022-06-17 67/week @ 2022-06-24 194/week @ 2022-07-01 524/week @ 2022-07-08 441/week @ 2022-07-15 250/week @ 2022-07-22 798/week @ 2022-07-29 430/week @ 2022-08-05 90/week @ 2022-08-12 148/week @ 2022-08-19 100/week @ 2022-08-26 193/week @ 2022-09-02 380/week @ 2022-09-09 11/week @ 2022-09-16 10/week @ 2022-09-23

596 downloads per month
Used in 2 crates (via crypto-crawler)

Apache-2.0

95KB
2K 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

~4–13MB
~283K SLoC