cryptomarket

Crates.iocryptomarket
lib.rscryptomarket
version0.1.0
sourcesrc
created_at2022-02-26 00:24:30.847885
updated_at2022-02-26 00:24:30.847885
descriptionUnofficial cryptomarket SDK library
homepage
repository
max_upload_size
id539733
size81,327
(tvallotton)

documentation

README

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(())
# };}
Commit count: 0

cargo fmt