Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 537 Bytes

README.md

File metadata and controls

15 lines (15 loc) · 537 Bytes

An unofficial SDK for the cryptomarket API for Rust. It is primarily focused on the websocket API. It also supports some useful Rest API queries.

use dotenv::*;
use cryptomrkt::{TradingClient, NewOrderBuilder, Buy, Order};
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();
let order: Order = client.place_order(order).await?;