crypto-rest-client

Crates.iocrypto-rest-client
lib.rscrypto-rest-client
version1.0.1
sourcesrc
created_at2020-12-30 09:36:34.557809
updated_at2023-02-18 10:33:37.492787
descriptionAn RESTful client for all cryptocurrency exchanges.
homepage
repositoryhttps://github.com/crypto-crawler/crypto-crawler-rs/tree/main/crypto-rest-client
max_upload_size
id329183
size116,742
Frank Dai (soulmachine)

documentation

README

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

cargo fmt