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
use chrono::{DateTime, Utc};
use rust_decimal::Decimal;

#[derive(Debug, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Candle {
    pub start_time: DateTime<Utc>,
    pub open: Decimal,
    pub close: Decimal,
    pub high: Decimal,
    pub low: Decimal,
    pub volume: Option<Decimal>,
}