Crate maicoin_max
source · [−]Expand description
MaiCoin MAX API client for Rust. This crate is designed to work on any asynchronous runtime.
- To RESTful API, the requests and response could be converted to/from
http_types
data types. - To websocket API, the requests and response are designed to be serialize/deserialize by
serde-rs
. - All price and amount representation handled by
rust_decimal
- All timestamp convert to
chrono::DateTime<Utc>
Examples
- Get list of exchange supported currencies via public REST API:
examples/get_currencies.rs
- Private REST API authentication:
examples/rest_auth.rs
- Receiving tickers from public websocket API:
examples/ws_client.rs
- Websocket authentication and channel filtering:
examples/ws_auth.rs
Modules
Common type definition.
Error/Result types definition and handling.
API v2 implementation.
Structs
Credentials to access private API. It internally maintains an atomic monotonic clock for payload signing. This
implies that the data created from Credentials
must be sent to server as soon as possible.