// @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,
    /// 펀드별 종목별 한도정보
    #[prost(map="string, message", tag="21")]
    pub fund_limits: ::std::collections::HashMap<::prost::alloc::string::String, FundLimit>,
}
#[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(int64, tag="12")]
    pub current_long_quantity: i64,
    /// 현재 누적 매수 금액
    #[prost(int64, tag="13")]
    pub current_long_amount: i64,
    /// 현재 누적 매도 수량 (음수로 저장)
    #[prost(int64, tag="14")]
    pub current_short_quantity: i64,
    /// 현재 누적 매도 금액 (음수로 저장)
    #[prost(int64, tag="15")]
    pub current_short_amount: i64,
    /// 현재 미체결 수량
    #[prost(int64, tag="16")]
    pub current_unfilled: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LossLimitSnapshot {
    #[prost(string, tag="1")]
    pub symbol: ::prost::alloc::string::String,
    #[prost(int64, tag="2")]
    pub quantity: i64,
    #[prost(double, tag="3")]
    pub average_price: f64,
    #[prost(double, tag="4")]
    pub current_price: f64,
    #[prost(int64, tag="5")]
    pub unrealized_pnl: 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,
}
/// 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`
    ///
    /// Examples
    /// * filter=fund_code="0159"
    /// * 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,
        }
    }
}
include!("kdo.v1.fund.tonic.rs");
include!("kdo.v1.fund.serde.rs");
// @@protoc_insertion_point(module)