Skip to content

COLDTURNIP/max-exchange-api-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

MaiCoin Max API client for Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages