1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use derive_more::Constructor;
use rust_decimal::prelude::Decimal;
use serde::Deserialize;
use serde::Serialize;
use crate::model::TimeInForce;
use crate::model::market_pair::MarketPair;

/// This struct represents an open limit order
#[derive(Serialize, Deserialize, Clone, Constructor, Debug, PartialEq)]
pub struct OpenLimitOrderRequest {
    pub client_order_id: Option<String>,
    pub market_pair: MarketPair,
    pub size: Decimal,
    pub price: Decimal,
    pub time_in_force: TimeInForce,
    pub post_only: bool,
}