3 stable releases
2.1.1 | Aug 3, 2022 |
---|---|
2.0.2 | Nov 29, 2021 |
#34 in #cryptocurrencies
190KB
4K
SLoC
maicoin_max - MAX (Maicoin Assets eXchange) Rust SDK
Latest REST API Introduction | Latest REST API Endpoints | Latest Websocket API Documentation
Table of Contents
Introduction
- Implements MaiCoin MAX v2 API
- Support both REST and websocket API
- Asynchronous programming that not limit to specific runtime
Install
In Cargo.toml
:
[dependencies]
maicoin_max = "2.1"
No feature flag required.
- To use REST API, a http_types compatible client (e.g Surf) is required.
- To use websocket API, serde_json is required to serialize/deserialize messages, and a websocket client (e.g Tungstenite) is also required.
Usage
- 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
Supporting API
REST API v2
- private
-
GET /api/v2/trades/my/of_order
-
GET /api/v2/trades/my
-
GET /api/v2/withdrawal
-
POST /api/v2/withdrawal
-
GET /api/v2/members/profile
-
GET /api/v2/members/vip_level
-
GET /api/v2/members/me
-
GET /api/v2/members/accounts/{path_currency}
-
GET /api/v2/members/accounts
-
GET /api/v2/deposits
-
GET /api/v2/deposit
-
GET /api/v2/deposit_address
(officially deprecated) -
GET /api/v2/deposit_addresses
-
POST /api/v2/deposit_addresses
-
GET /api/v2/withdraw_addresses
-
GET /api/v2/internal_transfers
-
GET /api/v2/internal_transfer
-
GET /api/v2/rewards/{path_reward_type}
-
GET /api/v2/rewards
-
GET /api/v2/yields
-
GET /api/v2/max_rewards/yesterday
-
POST /api/v2/orders/clear
-
GET /api/v2/orders
-
POST /api/v2/orders
-
POST /api/v2/orders/multi/onebyone
-
POST /api/v2/order/delete
-
GET /api/v2/order
-
GET /api/v2/withdrawals
-
- public
-
GET /api/v2/vip_levels
-
GET /api/v2/vip_levels/{level}
-
GET /api/v2/currencies
-
GET /api/v2/k
-
GET /api/v2/depth
-
GET /api/v2/trades
-
GET /api/v2/markets
-
GET /api/v2/summary
-
GET /api/v2/tickers/{path_market}
-
GET /api/v2/tickers
-
GET /api/v2/timestamp
-
GET /api/v2/vip_levels
-
GET /api/v2/vip_levels/{level}
-
GET /api/v2/withdrawal/constraint
-
Websocket API v2
- Public Channels
- Subscribe
- UnSubscribe
- Orderbook feeds
- Trade feeds
- Ticker feeds
- Market status feeds
- Private Channels
- Authentication & Subscribe
- Order feeds
- Trade feeds
- Account feeds
Contributing
Patches and pull requests are welcome. For major features or breaking changes, please open a ticket or start a discussion first so we can discuss what you would like to do.
Dependencies
~10MB
~160K SLoC