weex_rust_sdk 0.6.1

Professional Rust SDK for WEEX Exchange - AI Wars ready with full API coverage, AI Log upload, Futures trading
Documentation
1
2
3
4
5
6
7
8
9
10
use async_trait::async_trait;
use crate::spot::market::Ticker;
use crate::error::WeexError;

#[async_trait]
pub trait Exchange {
    async fn get_ticker(&self, symbol: &str) -> Result<Ticker, WeexError>;
    async fn get_balance(&self) -> Result<String, WeexError>; 
    // Add place_order signatures here properly typed later
}