#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Future {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub code: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub symbol: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub market_name: ::prost::alloc::string::String,
#[prost(enumeration="super::common::MarketType", tag="5")]
pub market_type: i32,
#[prost(int64, tag="6")]
pub max_quantity_per_order: i64,
#[prost(double, tag="7")]
pub tick_size: f64,
#[prost(double, tag="8")]
pub prev_price: f64,
#[prost(double, tag="9")]
pub base_price: f64,
#[prost(double, tag="10")]
pub max_price: f64,
#[prost(double, tag="11")]
pub min_price: f64,
#[prost(double, tag="12")]
pub unit: f64,
#[prost(double, tag="13")]
pub multiple: f64,
#[prost(bool, tag="14")]
pub tradable: bool,
#[prost(enumeration="FutureOptionType", tag="15")]
pub future_option_type: i32,
#[prost(string, tag="16")]
pub last_tradable_date: ::prost::alloc::string::String,
#[prost(string, tag="17")]
pub maturity_date: ::prost::alloc::string::String,
#[prost(string, tag="18")]
pub underlying_code: ::prost::alloc::string::String,
#[prost(double, tag="19")]
pub underlying_prev_price: f64,
#[prost(double, tag="20")]
pub remaining_days: f64,
#[prost(bool, tag="21")]
pub last_tradable_day: bool,
#[prost(double, tag="22")]
pub cd_rate: f64,
#[prost(string, tag="23")]
pub final_settlement_date: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFutureRequest {
#[prost(string, tag="1")]
pub future: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFuturesRequest {
#[prost(int32, optional, tag="1")]
pub page_size: ::core::option::Option<i32>,
#[prost(string, optional, tag="2")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag="3")]
pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFuturesResponse {
#[prost(message, repeated, tag="1")]
pub futures: ::prost::alloc::vec::Vec<Future>,
#[prost(string, tag="2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum FutureOptionType {
Unspecified = 0,
Future = 1,
Call = 2,
Put = 3,
}
impl FutureOptionType {
pub fn as_str_name(&self) -> &'static str {
match self {
FutureOptionType::Unspecified => "FUTURE_OPTION_TYPE_UNSPECIFIED",
FutureOptionType::Future => "FUTURE_OPTION_TYPE_FUTURE",
FutureOptionType::Call => "FUTURE_OPTION_TYPE_CALL",
FutureOptionType::Put => "FUTURE_OPTION_TYPE_PUT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"FUTURE_OPTION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"FUTURE_OPTION_TYPE_FUTURE" => Some(Self::Future),
"FUTURE_OPTION_TYPE_CALL" => Some(Self::Call),
"FUTURE_OPTION_TYPE_PUT" => Some(Self::Put),
_ => None,
}
}
}
include!("kdo.v1.future.tonic.rs");
include!("kdo.v1.future.serde.rs");