rusftx 0.4.0

Rust bindings for the FTX REST and Websocket API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use rust_decimal::Decimal;
use std::collections::HashMap;

#[derive(Debug, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Balance {
    pub coin: String,
    pub free: Decimal,
    pub total: Decimal,
    pub spot_borrow: Decimal,
    pub available_without_borrow: Decimal,
}

pub type BalancesPerAccount = HashMap<String, Vec<Balance>>;