/*
 * Binance Derivatives Trading USDS Futures REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading USDS Futures REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

#![allow(unused_imports)]
use crate::derivatives_trading_usds_futures::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CurrentAllAlgoOpenOrdersResponseInner {
    #[serde(rename = "algoId", skip_serializing_if = "Option::is_none")]
    pub algo_id: Option<i64>,
    #[serde(rename = "clientAlgoId", skip_serializing_if = "Option::is_none")]
    pub client_algo_id: Option<String>,
    #[serde(rename = "algoType", skip_serializing_if = "Option::is_none")]
    pub algo_type: Option<String>,
    #[serde(rename = "orderType", skip_serializing_if = "Option::is_none")]
    pub order_type: Option<String>,
    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
    pub symbol: Option<String>,
    #[serde(rename = "side", skip_serializing_if = "Option::is_none")]
    pub side: Option<String>,
    #[serde(rename = "positionSide", skip_serializing_if = "Option::is_none")]
    pub position_side: Option<String>,
    #[serde(rename = "timeInForce", skip_serializing_if = "Option::is_none")]
    pub time_in_force: Option<String>,
    #[serde(rename = "quantity", skip_serializing_if = "Option::is_none")]
    pub quantity: Option<String>,
    #[serde(rename = "algoStatus", skip_serializing_if = "Option::is_none")]
    pub algo_status: Option<String>,
    #[serde(rename = "actualOrderId", skip_serializing_if = "Option::is_none")]
    pub actual_order_id: Option<String>,
    #[serde(rename = "actualPrice", skip_serializing_if = "Option::is_none")]
    pub actual_price: Option<String>,
    #[serde(rename = "triggerPrice", skip_serializing_if = "Option::is_none")]
    pub trigger_price: Option<String>,
    #[serde(rename = "price", skip_serializing_if = "Option::is_none")]
    pub price: Option<String>,
    #[serde(rename = "icebergQuantity", skip_serializing_if = "Option::is_none")]
    pub iceberg_quantity: Option<String>,
    #[serde(rename = "tpTriggerPrice", skip_serializing_if = "Option::is_none")]
    pub tp_trigger_price: Option<String>,
    #[serde(rename = "tpPrice", skip_serializing_if = "Option::is_none")]
    pub tp_price: Option<String>,
    #[serde(rename = "slTriggerPrice", skip_serializing_if = "Option::is_none")]
    pub sl_trigger_price: Option<String>,
    #[serde(rename = "slPrice", skip_serializing_if = "Option::is_none")]
    pub sl_price: Option<String>,
    #[serde(rename = "tpOrderType", skip_serializing_if = "Option::is_none")]
    pub tp_order_type: Option<String>,
    #[serde(
        rename = "selfTradePreventionMode",
        skip_serializing_if = "Option::is_none"
    )]
    pub self_trade_prevention_mode: Option<String>,
    #[serde(rename = "workingType", skip_serializing_if = "Option::is_none")]
    pub working_type: Option<String>,
    #[serde(rename = "priceMatch", skip_serializing_if = "Option::is_none")]
    pub price_match: Option<String>,
    #[serde(rename = "closePosition", skip_serializing_if = "Option::is_none")]
    pub close_position: Option<bool>,
    #[serde(rename = "priceProtect", skip_serializing_if = "Option::is_none")]
    pub price_protect: Option<bool>,
    #[serde(rename = "reduceOnly", skip_serializing_if = "Option::is_none")]
    pub reduce_only: Option<bool>,
    #[serde(rename = "createTime", skip_serializing_if = "Option::is_none")]
    pub create_time: Option<i64>,
    #[serde(rename = "updateTime", skip_serializing_if = "Option::is_none")]
    pub update_time: Option<i64>,
    #[serde(rename = "triggerTime", skip_serializing_if = "Option::is_none")]
    pub trigger_time: Option<i64>,
    #[serde(rename = "goodTillDate", skip_serializing_if = "Option::is_none")]
    pub good_till_date: Option<i64>,
}

impl CurrentAllAlgoOpenOrdersResponseInner {
    #[must_use]
    pub fn new() -> CurrentAllAlgoOpenOrdersResponseInner {
        CurrentAllAlgoOpenOrdersResponseInner {
            algo_id: None,
            client_algo_id: None,
            algo_type: None,
            order_type: None,
            symbol: None,
            side: None,
            position_side: None,
            time_in_force: None,
            quantity: None,
            algo_status: None,
            actual_order_id: None,
            actual_price: None,
            trigger_price: None,
            price: None,
            iceberg_quantity: None,
            tp_trigger_price: None,
            tp_price: None,
            sl_trigger_price: None,
            sl_price: None,
            tp_order_type: None,
            self_trade_prevention_mode: None,
            working_type: None,
            price_match: None,
            close_position: None,
            price_protect: None,
            reduce_only: None,
            create_time: None,
            update_time: None,
            trigger_time: None,
            good_till_date: None,
        }
    }
}
