tinkoff_api/models/
limit_order_request.rs

1/*
2 * OpenAPI
3 *
4 * tinkoff.ru/invest OpenAPI.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * Contact: al.a.volkov@tinkoff.ru
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct LimitOrderRequest {
16    #[serde(rename = "lots")]
17    pub lots: i32,
18    #[serde(rename = "operation")]
19    pub operation: crate::models::OperationType,
20    #[serde(rename = "price")]
21    pub price: f64,
22}
23
24impl LimitOrderRequest {
25    pub fn new(lots: i32, operation: crate::models::OperationType, price: f64) -> LimitOrderRequest {
26        LimitOrderRequest {
27            lots,
28            operation,
29            price,
30        }
31    }
32}
33
34