rust-okx 0.6.0

Async Rust client for the OKX v5 REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::Serialize;

/// Request for [`get_balance`](crate::api::account::Account::get_balance),
/// [`get_interest_rate`](crate::api::account::Account::get_interest_rate),
/// [`get_max_withdrawal`](crate::api::account::Account::get_max_withdrawal), and
/// [`get_greeks`](crate::api::account::Account::get_greeks).
///
/// All fields are optional; omit to return data for all currencies.
#[derive(Debug, Clone, Default, Serialize)]
pub struct BalanceRequest<'a> {
    /// Currency filter (comma-separated, e.g. `"BTC,USDT"`). `None` returns all currencies.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub ccy: Option<&'a str>,
}