Crates.io | cryptomarket |
lib.rs | cryptomarket |
version | 0.1.0 |
source | src |
created_at | 2022-02-26 00:24:30.847885 |
updated_at | 2022-02-26 00:24:30.847885 |
description | Unofficial cryptomarket SDK library |
homepage | |
repository | |
max_upload_size | |
id | 539733 |
size | 81,327 |
An unofficial SDK for the cryptomrkt API for Rust. The API currently only supports the websocket cryptomrkt API.
# || -> cryptomrkt::Result {async {
use dotenv::*;
use cryptomrkt::{TradingClient, NewOrderBuilder, Buy};
let mut client = TradingClient::new(var("private_key")?, var("public_key")?).await?;
let order = NewOrderBuilder::new()
.symbol("BTCCLP")
.side(Buy)
.quantity(1.0)
.price(100.0)
.build();
client.place_order(order).await?;
# Ok(())
# };}