bpx-api-types 0.20.2

Backpack Exchange API types
Documentation
1
2
3
4
5
6
7
8
9
10
11
use rust_decimal::Decimal;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct MarginFunction {
    pub base: Decimal,
    pub factor: Decimal,
    #[serde(rename = "type")]
    pub function_type: String,
}