Crates.io | crypto-rest-client |
lib.rs | crypto-rest-client |
version | 1.0.1 |
source | src |
created_at | 2020-12-30 09:36:34.557809 |
updated_at | 2023-02-18 10:33:37.492787 |
description | An RESTful client for all cryptocurrency exchanges. |
homepage | |
repository | https://github.com/crypto-crawler/crypto-crawler-rs/tree/main/crypto-rest-client |
max_upload_size | |
id | 329183 |
size | 116,742 |
An RESTful client for all cryptocurrency exchanges.
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);
}