crypto-client

Crates.iocrypto-client
lib.rscrypto-client
version0.1.0
sourcesrc
created_at2020-12-30 09:20:38.263545
updated_at2020-12-30 09:20:38.263545
descriptionAn unified restful client for all cryptocurrency exchanges.
homepagehttps://github.com/soulmachine/crypto-crawler-rs/tree/main/crypto-client
repositoryhttps://github.com/soulmachine/crypto-crawler-rs/tree/main/crypto-client
max_upload_size
id329178
size2,587
Frank Dai (soulmachine)

documentation

README

crypto-client

An unified client for all cryptocurrency exchanges.

Example

use crypto_client::{CryptoClient, MarketType};

fn main() {
    let config: HashMap<&str, &str> = vec![
        ("eosAccount", "your-eos-account"),
        ("eosPrivateKey", "your-eos-private-key"),
    ].into_iter().collect();

    let crypto_client = CryptoClient::new(config);

    // buy
    let transaction_id = crypto_client.place_order(
        { exchange: "Newdex", pair: "EIDOS_EOS", market_type: "Spot" },
        0.00121,
        9.2644,
        false,
    );
    println!("{}", transactionId);
}

Supported Exchanges

  • Binance
  • Huobi
  • OKEx
  • WhaleEx
Commit count: 0

cargo fmt