maicoin_max

Crates.iomaicoin_max
lib.rsmaicoin_max
version2.1.1
sourcesrc
created_at2021-11-28 07:59:49.01277
updated_at2022-08-03 16:19:23.184197
descriptionMaiCoin Max API client for Rust
homepagehttps://github.com/COLDTURNIP/max-exchange-api-rs
repositoryhttps://github.com/COLDTURNIP/max-exchange-api-rs
max_upload_size
id488719
size273,523
Raphanus Lo (COLDTURNIP)

documentation

README

maicoin_max - MAX (Maicoin Assets eXchange) Rust SDK

Build Status Latest Version

crates.io | docs.rs

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

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.

Commit count: 10

cargo fmt