// @generated
// This file is @generated by prost-build.
/// 선물/옵션 종목 정보
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Future {
    /// 리소스 이름 (futures/{code})
    #[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,
    /// 1회 최대 주문 수량
    #[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,
    /// 최종 거래일 (YYYY-MM-DD)
    #[prost(string, tag="16")]
    pub last_tradable_date: ::prost::alloc::string::String,
    /// 만기일 (YYYY-MM-DD)
    #[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,
    /// CD 금리
    #[prost(double, tag="22")]
    pub cd_rate: f64,
    /// 최종 결제일 (YYYY-MM-DD)
    #[prost(string, tag="23")]
    pub final_settlement_date: ::prost::alloc::string::String,
}
// ========== Request/Response Messages ==========

#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFutureRequest {
    /// 리소스 이름 (futures/{code})
    #[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 {
    /// 페이지 크기 (optional)
    #[prost(int32, optional, tag="1")]
    pub page_size: ::core::option::Option<i32>,
    /// 페이지 토큰 (optional)
    #[prost(string, optional, tag="2")]
    pub page_token: ::core::option::Option<::prost::alloc::string::String>,
    /// 필터링 조건 (optional, AIP-160)
    ///
    /// Available Fields:
    /// * code - 종목 코드
    /// * symbol - 심볼
    /// * market_type - 시장 유형 (MARKET_TYPE_KOSPI, MARKET_TYPE_KOSDAQ, MARKET_TYPE_DERIVATIVE)
    /// * future_option_type - 선물/옵션 유형 (FUTURE_OPTION_TYPE_FUTURE, FUTURE_OPTION_TYPE_CALL, FUTURE_OPTION_TYPE_PUT)
    /// * tradable - 거래 가능 여부
    /// * underlying_code - 기초자산 코드
    ///
    /// Examples:
    /// * future_option_type=FUTURE_OPTION_TYPE_FUTURE
    /// * tradable=true
    /// * underlying_code="101S6"
    /// * future_option_type=FUTURE_OPTION_TYPE_FUTURE AND tradable=true
    #[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 {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    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",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    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");
// @@protoc_insertion_point(module)