Gate.io Rust SDK
A comprehensive Rust SDK for the Gate.io cryptocurrency exchange API, supporting both synchronous and asynchronous HTTP clients.
Features
- Dual client support: Synchronous (ureq) and asynchronous (hyper) HTTP clients
- Complete Spot API: All Gate.io Spot trading endpoints implemented
- Type safety: Strong typing for all API parameters and responses
- Authentication: Automatic HMAC SHA-512 signing for authenticated requests
- Builder pattern: Ergonomic request building with optional parameters
Quick Start
Installation
Add this to your Cargo.toml:
# For synchronous client (default)
[]
= "0.1"
# For asynchronous client
[]
= { = "0.1", = ["enable-hyper"], = false }
Basic Usage
Public API (No Authentication Required)
use ;
use Value;
Authenticated API
use ;
use Value;
API Coverage
The SDK provides complete coverage of Gate.io Spot trading API endpoints:
- Market Data: Tickers, order books, trades, candlesticks
- Account Management: Balance, trading fees, account history
- Trading: Create/cancel orders, batch operations, order history
- Currency Information: Supported currencies and trading pairs
Documentation
- Gate.io API Documentation
- Examples - Complete working examples for all endpoints
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.