// @generated
// This file is @generated by prost-build.
/// 주식 보유 현황 정보
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StockInventory {
    /// 종목 코드
    #[prost(string, tag="1")]
    pub stock_code: ::prost::alloc::string::String,
    /// 펀드 코드
    #[prost(string, tag="2")]
    pub fund_code: ::prost::alloc::string::String,
    /// 현재 잔고 (순보유잔고)
    #[prost(int64, tag="3")]
    pub balance: i64,
    /// 전일 잔고
    #[prost(int64, tag="4")]
    pub prev_balance: i64,
    /// 담보 수량
    #[prost(int64, tag="5")]
    pub pledged: i64,
    /// 가용 수량 (일반가용)
    #[prost(int64, tag="6")]
    pub sellable: i64,
    /// 차입 가용 수량
    #[prost(int64, tag="7")]
    pub borrow_sellable: i64,
    /// 차입 수량
    #[prost(int64, tag="8")]
    pub borrow_quantity: i64,
    /// 장부 수량
    #[prost(int64, tag="9")]
    pub book_quantity: i64,
    /// 장부 금액 (원 단위, i64)
    #[prost(string, tag="10")]
    pub book_amount: ::prost::alloc::string::String,
    /// 매도 예약 수량 (내부용)
    #[prost(int64, tag="11")]
    pub selling: i64,
    /// 차입 매도 예약 수량 (내부용)
    #[prost(int64, tag="12")]
    pub borrow_selling: i64,
    /// 차입 매도 수량 (내부용)
    #[prost(int64, tag="13")]
    pub borrow_sold: i64,
}
// ========== Request/Response Messages ==========

/// GetStockInventory 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetStockInventoryRequest {
    #[prost(string, tag="1")]
    pub fund: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub stock: ::prost::alloc::string::String,
}
/// ListStockInventories 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListStockInventoriesRequest {
    #[prost(string, tag="1")]
    pub fund: ::prost::alloc::string::String,
    /// 페이지 크기 (optional)
    #[prost(uint32, optional, tag="2")]
    pub page_size: ::core::option::Option<u32>,
    /// 페이지 토큰 (optional, for pagination)
    #[prost(string, optional, tag="3")]
    pub page_token: ::core::option::Option<::prost::alloc::string::String>,
    /// 필터링 조건 (optional, AIP-160)
    /// Available Operators:
    /// * fund_code
    ///    * `equal`, `contains`
    /// * stock_code
    ///    * `equal`, `contains`
    /// * balance
    ///    * `equal`, `greater_than`, `less_than`
    ///
    /// Examples:
    /// * filter=fund_code="0331"
    /// * filter=stock_code:"5930"
    /// * filter=balance > 1000
    #[prost(string, tag="4")]
    pub filter: ::prost::alloc::string::String,
    /// 오더링 조건. (optional, AIP-132)
    ///
    /// Supported Fields
    /// * "stock_code", "balance", "sellable", "borrow_sellable", "borrow_quantity", "book_quantity", "book_amount", "selling", "borrow_selling", "borrow_sold"
    ///
    /// Examples
    /// * order_by=balance desc
    #[prost(string, tag="5")]
    pub order_by: ::prost::alloc::string::String,
}
/// ListStockInventories 응답
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListStockInventoriesResponse {
    /// 주식 보유 현황 목록
    #[prost(message, repeated, tag="1")]
    pub stock_inventories: ::prost::alloc::vec::Vec<StockInventory>,
    /// 다음 페이지 토큰
    #[prost(string, tag="2")]
    pub next_page_token: ::prost::alloc::string::String,
}
include!("kdo.v1.stock_inventory.tonic.rs");
include!("kdo.v1.stock_inventory.serde.rs");
// @@protoc_insertion_point(module)