ids-apis 1.0.325

IDS APIs in Rust
Documentation
// @generated
// This file is @generated by prost-build.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Futures {
    /// Futures ID
    #[prost(uint64, tag="1")]
    pub id: u64,
    /// 선물 심볼
    #[prost(string, tag="2")]
    pub symbol: ::prost::alloc::string::String,
    /// 선물 코드
    #[prost(string, tag="3")]
    pub code: ::prost::alloc::string::String,
    /// 선물 이름
    #[prost(string, tag="4")]
    pub name: ::prost::alloc::string::String,
    /// 전일 종가
    #[prost(string, tag="5")]
    pub prev_close: ::prost::alloc::string::String,
    /// 현재가
    #[prost(string, tag="6")]
    pub last_price: ::prost::alloc::string::String,
    /// 기초자산 심볼
    #[prost(string, tag="7")]
    pub underlying_symbol: ::prost::alloc::string::String,
    /// 기초자산 이름
    #[prost(string, tag="8")]
    pub underlying_name: ::prost::alloc::string::String,
    /// 만기일 (YYYYMMDD)
    #[prost(string, tag="9")]
    pub expiry_date: ::prost::alloc::string::String,
    /// 승수 (계약 당 금액)
    #[prost(double, tag="10")]
    pub multiplier: f64,
    /// Tick 크기 (포인트 단위)
    #[prost(double, tag="11")]
    pub tick_size: f64,
    /// Tick 가치 (원 단위)
    #[prost(int64, tag="12")]
    pub tick_value: i64,
    /// 결제 방식
    #[prost(enumeration="SettlementType", tag="13")]
    pub settlement_type: i32,
    /// 거래 가능 여부
    #[prost(bool, tag="14")]
    pub tradable: bool,
    /// 최종 거래일 (YYYYMMDD)
    #[prost(string, tag="15")]
    pub last_trading_date: ::prost::alloc::string::String,
    /// 상품 유형
    #[prost(enumeration="FuturesProductType", tag="16")]
    pub product_type: i32,
}
// ========== Request/Response Messages ==========

/// GetFutures
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFuturesRequest {
    #[prost(string, tag="1")]
    pub futures: ::prost::alloc::string::String,
}
/// ListFutures
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFuturesRequest {
    /// 페이지 크기 (optional)
    #[prost(uint32, optional, tag="1")]
    pub page_size: ::core::option::Option<u32>,
    /// 페이지 토큰 (optional, for pagination)
    #[prost(string, optional, tag="2")]
    pub page_token: ::core::option::Option<::prost::alloc::string::String>,
    /// 필터링 조건 (optional, AIP-160)
    #[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<Futures>,
    /// 다음 페이지 토큰
    #[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 SettlementType {
    Unspecified = 0,
    /// 현금 결제
    Cash = 1,
    /// 실물 결제
    Physical = 2,
}
impl SettlementType {
    /// 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 {
            SettlementType::Unspecified => "SETTLEMENT_TYPE_UNSPECIFIED",
            SettlementType::Cash => "SETTLEMENT_TYPE_CASH",
            SettlementType::Physical => "SETTLEMENT_TYPE_PHYSICAL",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SETTLEMENT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "SETTLEMENT_TYPE_CASH" => Some(Self::Cash),
            "SETTLEMENT_TYPE_PHYSICAL" => Some(Self::Physical),
            _ => None,
        }
    }
}
/// 선물 상품 유형
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum FuturesProductType {
    Unspecified = 0,
    /// 지수 선물
    Index = 1,
    /// 주식 선물
    Stock = 2,
    /// 채권 선물
    Bond = 3,
    /// 통화 선물
    Currency = 4,
    /// 상품 선물
    Commodity = 5,
}
impl FuturesProductType {
    /// 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 {
            FuturesProductType::Unspecified => "FUTURES_PRODUCT_TYPE_UNSPECIFIED",
            FuturesProductType::Index => "FUTURES_PRODUCT_TYPE_INDEX",
            FuturesProductType::Stock => "FUTURES_PRODUCT_TYPE_STOCK",
            FuturesProductType::Bond => "FUTURES_PRODUCT_TYPE_BOND",
            FuturesProductType::Currency => "FUTURES_PRODUCT_TYPE_CURRENCY",
            FuturesProductType::Commodity => "FUTURES_PRODUCT_TYPE_COMMODITY",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "FUTURES_PRODUCT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "FUTURES_PRODUCT_TYPE_INDEX" => Some(Self::Index),
            "FUTURES_PRODUCT_TYPE_STOCK" => Some(Self::Stock),
            "FUTURES_PRODUCT_TYPE_BOND" => Some(Self::Bond),
            "FUTURES_PRODUCT_TYPE_CURRENCY" => Some(Self::Currency),
            "FUTURES_PRODUCT_TYPE_COMMODITY" => Some(Self::Commodity),
            _ => None,
        }
    }
}
include!("master_sync.v1.futures.tonic.rs");
include!("master_sync.v1.futures.serde.rs");
// @@protoc_insertion_point(module)