Expand description
An unofficial SDK for the cryptomrkt API for Rust. The API currently only supports the websocket cryptomrkt API.
use dotenv::*;
use cryptomkt::{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?;
Re-exports§
Modules§
Structs§
- Client
Pool - Public
Client - Used to query and subscribe to public market events.
- Trading
Client - Used to interface with the cryptomkt websocket trading API.
- Triple
Client - An interface over
TradingClient
,WalletClient
andPublicClient
. - Wallet
Client - An interface over the users wallet movements and balance.