ids-apis 1.0.367

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 Fund {
    /// 펀드 코드 (표준 코드)
    #[prost(string, tag="1")]
    pub code: ::prost::alloc::string::String,
    /// 펀드 이름
    #[prost(string, tag="2")]
    pub name: ::prost::alloc::string::String,
    /// 펀드분류코드
    #[prost(string, tag="3")]
    pub category_code: ::prost::alloc::string::String,
    /// 펀드관리직원번호
    #[prost(string, tag="4")]
    pub employee_number: ::prost::alloc::string::String,
    /// 펀드관리직원성명
    #[prost(string, tag="5")]
    pub employee_name: ::prost::alloc::string::String,
    /// 펀드 한도
    #[prost(string, tag="6")]
    pub limit_amount: ::prost::alloc::string::String,
    /// 관리부서코드
    #[prost(string, tag="7")]
    pub department_code: ::prost::alloc::string::String,
    /// 펀드거래구분코드
    #[prost(string, tag="8")]
    pub trade_code: ::prost::alloc::string::String,
    /// 파트구분코드
    #[prost(string, tag="9")]
    pub part_code: ::prost::alloc::string::String,
    /// 상품매매구분코드
    #[prost(string, tag="12")]
    pub part_name: ::prost::alloc::string::String,
    /// 포지션합산여부
    #[prost(string, tag="13")]
    pub product_deal_code: ::prost::alloc::string::String,
    /// 파트구분명
    #[prost(string, tag="14")]
    pub add_up_position: ::prost::alloc::string::String,
    /// 트레이딩시스템종류코드
    #[prost(string, tag="15")]
    pub trading_system_code: ::prost::alloc::string::String,
    /// 독립거래단위구분코드
    #[prost(string, tag="16")]
    pub unique_trading_unit_code: ::prost::alloc::string::String,
    /// 독립거래단위파트구분코드
    #[prost(string, tag="17")]
    pub unique_trading_unit_part_code: ::prost::alloc::string::String,
    /// 독립거래단위일련번호
    #[prost(int64, tag="18")]
    pub unique_trading_unit_serial_number: i64,
    /// 독립거래단위합산여부
    #[prost(bool, tag="19")]
    pub add_up_unique_trading_unit: bool,
    /// 공매도ID
    #[prost(string, tag="20")]
    pub short_selling_id: ::prost::alloc::string::String,
    /// ETF LP 여부
    #[prost(bool, tag="22")]
    pub etf_lp: bool,
    /// 프로그램매매 구분 (nullable)
    #[prost(enumeration="ProgramTradingType", optional, tag="23")]
    pub program_trading_type: ::core::option::Option<i32>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FundLimit {
    #[prost(string, tag="1")]
    pub fund: ::prost::alloc::string::String,
    ///
    #[prost(enumeration="FundLimitType", tag="2")]
    pub limit_type: i32,
    /// 매수한도수량
    #[prost(int64, tag="3")]
    pub long_limit_quantity: i64,
    /// 매수한도금액
    #[prost(int64, tag="4")]
    pub long_limit_amount: i64,
    /// 매도한도수량
    #[prost(int64, tag="5")]
    pub short_limit_quantity: i64,
    /// 매도한도금액
    #[prost(int64, tag="6")]
    pub short_limit_amount: i64,
    /// 1회 주문 한도계약수
    #[prost(int64, tag="7")]
    pub limit_quantity_per_order: i64,
    /// 1회 주문 한도금액
    #[prost(int64, tag="8")]
    pub limit_amount_per_order: i64,
    /// 1회 주문 한도틱
    #[prost(int64, tag="9")]
    pub tick_limit: i64,
    /// 미체결한도수량
    #[prost(int64, tag="10")]
    pub unfilled_limit: i64,
    /// 스프레드 1회 주문 한도계약수
    #[prost(int64, tag="11")]
    pub spread_limit_quantity_per_order: i64,
    /// 종목별 한도 상태 (런타임 추적)
    #[prost(map="string, message", tag="17")]
    pub symbol_states: ::std::collections::HashMap<::prost::alloc::string::String, SymbolLimitState>,
}
/// 종목별 한도 상태
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SymbolLimitState {
    /// 현재 매수 수량
    #[prost(int64, tag="1")]
    pub current_long_quantity: i64,
    /// 현재 매도 수량
    #[prost(int64, tag="2")]
    pub current_short_quantity: i64,
    /// 현재 미체결 수량
    #[prost(int64, tag="3")]
    pub current_unfilled_quantity: i64,
    /// 매수 미체결 수량
    #[prost(int64, tag="4")]
    pub current_unfilled_long_quantity: i64,
    /// 매수 미체결 금액
    #[prost(int64, tag="5")]
    pub current_unfilled_long_amount: i64,
    /// 매도 미체결 수량
    #[prost(int64, tag="6")]
    pub current_unfilled_short_quantity: i64,
    /// 매도 미체결 금액
    #[prost(int64, tag="7")]
    pub current_unfilled_short_amount: i64,
}
// ========== Request/Response Messages ==========

/// GetFund 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFundRequest {
    /// 펀드 리소스 이름 (예: funds/KR1234567890)
    #[prost(string, tag="1")]
    pub fund: ::prost::alloc::string::String,
}
/// GetFundLimit 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFundLimitRequest {
    /// 펀드 리소스 이름 (예: funds/0159)
    #[prost(string, tag="1")]
    pub fund: ::prost::alloc::string::String,
}
/// GetFundLimit 응답
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFundLimitResponse {
    /// 펀드별 종목별 한도정보
    #[prost(map="string, message", tag="1")]
    pub fund_limits: ::std::collections::HashMap<::prost::alloc::string::String, FundLimit>,
}
/// UpdateFundLimit 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateFundLimitRequest {
    /// 펀드 리소스 이름 (예: funds/0159)
    #[prost(string, tag="1")]
    pub fund: ::prost::alloc::string::String,
    /// 종목 심볼
    #[prost(string, tag="2")]
    pub symbol: ::prost::alloc::string::String,
    /// 수정할 한도 정보
    #[prost(message, optional, tag="3")]
    pub fund_limit: ::core::option::Option<FundLimit>,
}
/// ListFunds 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFundsRequest {
    /// 페이지 크기 (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>,
    /// Available Sequence and Operator
    /// * fund_code
    ///    * `equal`, `contains`
    /// * employee_name
    ///    * `equal`, `contains`
    /// * name
    ///    * `equal`, `contains`
    ///
    /// Examples
    /// * filter=fund_code="0159"
    /// * filter=fund_code:"015"
    /// * filter=employee_name:"홍길동"
    #[prost(string, tag="3")]
    pub filter: ::prost::alloc::string::String,
}
/// ListFunds 응답
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListFundsResponse {
    /// 펀드 목록
    #[prost(message, repeated, tag="1")]
    pub funds: ::prost::alloc::vec::Vec<Fund>,
    /// 다음 페이지 토큰
    #[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 FundLimitType {
    FundLimitUnspecified = 0,
    Kospi200Future = 1,
    Stock = 2,
}
impl FundLimitType {
    /// 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 {
            FundLimitType::FundLimitUnspecified => "FUND_LIMIT_UNSPECIFIED",
            FundLimitType::Kospi200Future => "KOSPI_200_Future",
            FundLimitType::Stock => "STOCK",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "FUND_LIMIT_UNSPECIFIED" => Some(Self::FundLimitUnspecified),
            "KOSPI_200_Future" => Some(Self::Kospi200Future),
            "STOCK" => Some(Self::Stock),
            _ => None,
        }
    }
}
/// 프로그램매매 구분코드
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProgramTradingType {
    Unspecified = 0,
    /// 지수차익거래
    IndexArbitrage = 1,
    /// 주식차익거래
    StockArbitrage = 2,
    /// ETF LP 헷지거래
    EtfLpHedge = 3,
}
impl ProgramTradingType {
    /// 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 {
            ProgramTradingType::Unspecified => "PROGRAM_TRADING_TYPE_UNSPECIFIED",
            ProgramTradingType::IndexArbitrage => "INDEX_ARBITRAGE",
            ProgramTradingType::StockArbitrage => "STOCK_ARBITRAGE",
            ProgramTradingType::EtfLpHedge => "ETF_LP_HEDGE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PROGRAM_TRADING_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "INDEX_ARBITRAGE" => Some(Self::IndexArbitrage),
            "STOCK_ARBITRAGE" => Some(Self::StockArbitrage),
            "ETF_LP_HEDGE" => Some(Self::EtfLpHedge),
            _ => None,
        }
    }
}
include!("kdo.v1.fund.tonic.rs");
include!("kdo.v1.fund.serde.rs");
// @@protoc_insertion_point(module)