// @generated
// This file is @generated by prost-build.
/// ETF MM v2 설정
/// LP 대비 차이: hedge 필드 없음, position_adjustment 없음, ExposureSkew + momentum_deadband_ticks 추가.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EtfMmV2 {
    /// ETF 심볼
    #[prost(string, tag="1")]
    pub symbol: ::prost::alloc::string::String,
    /// Fund
    #[prost(string, tag="2")]
    pub fund_code: ::prost::alloc::string::String,
    /// 매도 basis 스프레드
    #[prost(double, tag="3")]
    pub ask_basis: f64,
    /// 매수 basis 스프레드
    #[prost(double, tag="4")]
    pub bid_basis: f64,
    /// 호가 깊이 (양방향 레벨 수)
    #[prost(uint32, tag="8")]
    pub depth: u32,
    /// ETF tick 크기 (원 단위, i64)
    #[prost(int64, tag="9")]
    pub tick_size: i64,
    /// 동적 offset 조정 설정
    #[prost(message, optional, tag="10")]
    pub offset: ::core::option::Option<EtfMmV2Offset>,
    /// 활성화 여부
    #[prost(bool, tag="11")]
    pub enabled: bool,
    /// ETF 가격 산출 방식
    #[prost(message, optional, tag="12")]
    pub pricing_method: ::core::option::Option<super::common::EtfPricing>,
    /// 매수 호가 조정값
    #[prost(double, optional, tag="13")]
    pub bid_adjustment: ::core::option::Option<f64>,
    /// 매도 호가 조정값
    #[prost(double, optional, tag="14")]
    pub ask_adjustment: ::core::option::Option<f64>,
    /// 매수 주문 수량 (i64)
    #[prost(int64, tag="15")]
    pub bid_quantity: i64,
    /// 매도 주문 수량 (i64)
    #[prost(int64, tag="16")]
    pub ask_quantity: i64,
    /// 모멘텀 활성화 여부
    #[prost(bool, optional, tag="17")]
    pub momentum_enabled: ::core::option::Option<bool>,
    /// 모멘텀 윈도우 크기
    #[prost(uint32, optional, tag="18")]
    pub momentum_window: ::core::option::Option<u32>,
    /// 모멘텀 민감도
    #[prost(double, optional, tag="19")]
    pub momentum_sensitivity: ::core::option::Option<f64>,
    /// 매수/매도 수량 한도
    #[prost(message, optional, tag="20")]
    pub quantity_limit: ::core::option::Option<EtfMmV2QuantityLimit>,
    /// precomputed quote retreat 처리 정책
    #[prost(enumeration="PrecomputePolicy", optional, tag="21")]
    pub precompute_policy: ::core::option::Option<i32>,
    /// pricing source 선물 1호가 잔량 imbalance guard 활성화 여부
    #[prost(bool, tag="22")]
    pub pricing_source_liquidity_imbalance_guard_enabled: bool,
    /// 모멘텀 활성 판정 deadband (틱 수).
    /// |bid_adj| 또는 |ask_adj|가 이 틱 수 이상이어야 Momentum 모드로 진입.
    /// 0이면 모멘텀 enabled만으로 활성 판정.
    #[prost(int32, tag="23")]
    pub momentum_deadband_ticks: i32,
    /// ExposureSkew 활성화 여부 (MM v2 모드 2: 누적 노출 균형)
    #[prost(bool, tag="24")]
    pub exposure_skew_enabled: bool,
    /// ExposureSkew 활성화 임계값 (순포지션 절댓값이 이 값 이상이면 skew 활성화)
    #[prost(int64, tag="25")]
    pub exposure_skew_trigger_quantity: i64,
    /// ExposureSkew 포화 임계값 (순포지션 절댓값이 이 값에 도달하면 max_skew_ticks 적용)
    #[prost(int64, tag="26")]
    pub exposure_skew_limit_quantity: i64,
    /// ExposureSkew 최대 틱 수 (양방향 호가 평행이동 상한)
    #[prost(int32, tag="27")]
    pub exposure_skew_max_skew_ticks: i32,
}
/// 매수/매도 수량 한도
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EtfMmV2QuantityLimit {
    /// 매수 수량 상한 (gross 누적 매수 체결 기준)
    #[prost(int64, tag="2")]
    pub max_bid_quantity: i64,
    /// 매도 수량 상한 (gross 누적 매도 체결 기준)
    #[prost(int64, tag="4")]
    pub max_ask_quantity: i64,
    /// 순포지션 (+ = 순매수, - = 순매도): gross_bid - gross_ask
    #[prost(int64, optional, tag="5")]
    pub net_quantity: ::core::option::Option<i64>,
    /// 순포지션 한도 설정값
    #[prost(int64, optional, tag="6")]
    pub max_net_quantity: ::core::option::Option<i64>,
}
/// 자동 offset 조정 설정
/// MM v2는 순매매량 기반 조정을 ExposureSkew가 담당하므로 position_adjustment 필드 없음.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EtfMmV2Offset {
    #[prost(double, optional, tag="1")]
    pub bid_offset: ::core::option::Option<f64>,
    #[prost(double, optional, tag="2")]
    pub ask_offset: ::core::option::Option<f64>,
    /// NAV 밴드 설정
    #[prost(double, optional, tag="3")]
    pub min_offset: ::core::option::Option<f64>,
    #[prost(double, optional, tag="4")]
    pub max_offset: ::core::option::Option<f64>,
    /// 시간 기반 조정
    #[prost(bool, optional, tag="7")]
    pub time_adjustment_enabled: ::core::option::Option<bool>,
    #[prost(uint64, optional, tag="8")]
    pub adjustment_interval_secs: ::core::option::Option<u64>,
    #[prost(double, optional, tag="9")]
    pub adjustment_step: ::core::option::Option<f64>,
    #[prost(bool, optional, tag="10")]
    pub reset_on_fill: ::core::option::Option<bool>,
    /// 누적 순포지션 런타임 값 (런타임 추적값 - 상태 조회 시 노출)
    #[prost(int64, tag="21")]
    pub net_position: i64,
}
// ========== ETF MM v2 Status Messages ==========

/// ETF MM v2 상태
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EtfMmV2Status {
    /// ETF 심볼
    #[prost(string, tag="1")]
    pub etf_symbol: ::prost::alloc::string::String,
    /// 펀드 코드
    #[prost(string, tag="2")]
    pub fund_code: ::prost::alloc::string::String,
    /// Basis 스프레드
    #[prost(double, optional, tag="3")]
    pub ask_basis: ::core::option::Option<f64>,
    #[prost(double, optional, tag="4")]
    pub bid_basis: ::core::option::Option<f64>,
    /// MM v2 상태
    #[prost(enumeration="EtfMmV2State", tag="8")]
    pub state: i32,
    /// 가격 정보
    #[prost(message, optional, tag="9")]
    pub pricing: ::core::option::Option<MmV2Pricing>,
    /// 체결 통계
    #[prost(message, optional, tag="10")]
    pub fill_statistics: ::core::option::Option<FillStatistics>,
    /// 동적 offset 조정 설정
    #[prost(message, optional, tag="11")]
    pub offset: ::core::option::Option<EtfMmV2Offset>,
    /// 매수 호가 조정값
    #[prost(double, optional, tag="13")]
    pub bid_adjustment: ::core::option::Option<f64>,
    /// 매도 호가 조정값
    #[prost(double, optional, tag="14")]
    pub ask_adjustment: ::core::option::Option<f64>,
    /// 매수 주문 수량
    #[prost(int64, tag="15")]
    pub bid_quantity: i64,
    /// 매도 주문 수량
    #[prost(int64, tag="16")]
    pub ask_quantity: i64,
    /// 모멘텀 활성화 여부
    #[prost(bool, optional, tag="17")]
    pub momentum_enabled: ::core::option::Option<bool>,
    /// 모멘텀 윈도우 크기
    #[prost(uint32, optional, tag="18")]
    pub momentum_window: ::core::option::Option<u32>,
    /// 모멘텀 민감도
    #[prost(double, optional, tag="19")]
    pub momentum_sensitivity: ::core::option::Option<f64>,
    /// 런타임 계산된 모멘텀 매수 호가 조정값
    #[prost(double, optional, tag="20")]
    pub momentum_bid_adjustment: ::core::option::Option<f64>,
    /// 런타임 계산된 모멘텀 매도 호가 조정값
    #[prost(double, optional, tag="21")]
    pub momentum_ask_adjustment: ::core::option::Option<f64>,
    /// 매수/매도 수량 한도
    #[prost(message, optional, tag="22")]
    pub quantity_limit: ::core::option::Option<EtfMmV2QuantityLimit>,
    /// precomputed quote retreat 처리 정책
    #[prost(enumeration="PrecomputePolicy", optional, tag="23")]
    pub precompute_policy: ::core::option::Option<i32>,
    /// 호가 깊이 (양방향 레벨 수)
    #[prost(uint32, tag="24")]
    pub depth: u32,
    /// pricing source 선물 1호가 잔량 imbalance guard 활성화 여부
    #[prost(bool, tag="25")]
    pub pricing_source_liquidity_imbalance_guard_enabled: bool,
    // ── MM v2 모드 런타임 상태 ──

    /// 현재 운영 모드 (Momentum / ExposureBalance / Neutral)
    #[prost(enumeration="MmV2Mode", tag="30")]
    pub mode: i32,
    /// 모멘텀 활성 판정 여부 (deadband 통과 여부)
    #[prost(bool, tag="31")]
    pub momentum_active: bool,
    /// 누적 노출 (signed). bid 체결 += qty, ask 체결 -= qty
    #[prost(int64, tag="32")]
    pub net_position: i64,
    /// ExposureSkew가 산출한 부호 있는 틱. 0이면 비활성
    #[prost(int32, tag="33")]
    pub exposure_skew_ticks: i32,
    /// volume-weighted 누적 매수 평균 체결가 (매수 체결 없으면 absent)
    #[prost(double, optional, tag="34")]
    pub avg_buy_price: ::core::option::Option<f64>,
    /// volume-weighted 누적 매도 평균 체결가 (매도 체결 없으면 absent)
    #[prost(double, optional, tag="35")]
    pub avg_sell_price: ::core::option::Option<f64>,
}
/// ETF MM v2 상태 업데이트 메시지 (변화된 필드만 포함)
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EtfMmV2StatusUpdate {
    /// ETF 심볼
    #[prost(string, tag="1")]
    pub etf_symbol: ::prost::alloc::string::String,
    /// 펀드 코드
    #[prost(string, tag="2")]
    pub fund_code: ::prost::alloc::string::String,
    /// Basis 스프레드
    #[prost(double, optional, tag="3")]
    pub ask_basis: ::core::option::Option<f64>,
    #[prost(double, optional, tag="4")]
    pub bid_basis: ::core::option::Option<f64>,
    /// MM v2 상태
    #[prost(enumeration="EtfMmV2State", optional, tag="8")]
    pub state: ::core::option::Option<i32>,
    /// 가격 정보
    #[prost(message, optional, tag="9")]
    pub pricing: ::core::option::Option<MmV2Pricing>,
    /// 체결 통계
    #[prost(message, optional, tag="10")]
    pub fill_statistics: ::core::option::Option<FillStatistics>,
    /// 동적 offset 조정 설정
    #[prost(message, optional, tag="11")]
    pub offset: ::core::option::Option<EtfMmV2Offset>,
    /// 매수 호가 조정값
    #[prost(double, optional, tag="12")]
    pub bid_adjustment: ::core::option::Option<f64>,
    /// 매도 호가 조정값
    #[prost(double, optional, tag="13")]
    pub ask_adjustment: ::core::option::Option<f64>,
    /// 매수 주문 수량
    #[prost(int64, optional, tag="14")]
    pub bid_quantity: ::core::option::Option<i64>,
    /// 매도 주문 수량
    #[prost(int64, optional, tag="15")]
    pub ask_quantity: ::core::option::Option<i64>,
    /// 모멘텀 활성화 여부
    #[prost(bool, optional, tag="16")]
    pub momentum_enabled: ::core::option::Option<bool>,
    /// 모멘텀 윈도우 크기
    #[prost(uint32, optional, tag="17")]
    pub momentum_window: ::core::option::Option<u32>,
    /// 모멘텀 민감도
    #[prost(double, optional, tag="18")]
    pub momentum_sensitivity: ::core::option::Option<f64>,
    /// 런타임 계산된 모멘텀 매수 호가 조정값
    #[prost(double, optional, tag="19")]
    pub momentum_bid_adjustment: ::core::option::Option<f64>,
    /// 런타임 계산된 모멘텀 매도 호가 조정값
    #[prost(double, optional, tag="20")]
    pub momentum_ask_adjustment: ::core::option::Option<f64>,
    /// 매수/매도 수량 한도
    #[prost(message, optional, tag="21")]
    pub quantity_limit: ::core::option::Option<EtfMmV2QuantityLimit>,
    /// precomputed quote retreat 처리 정책
    #[prost(enumeration="PrecomputePolicy", optional, tag="22")]
    pub precompute_policy: ::core::option::Option<i32>,
    /// 호가 깊이 (변경 시에만 Some)
    #[prost(uint32, optional, tag="23")]
    pub depth: ::core::option::Option<u32>,
    /// pricing source 선물 1호가 잔량 imbalance guard 상태 (변경 시에만 Some)
    #[prost(enumeration="PricingSourceLiquidityImbalanceGuardState", optional, tag="24")]
    pub pricing_source_liquidity_imbalance_guard_state: ::core::option::Option<i32>,
}
/// ETF 체결 통계 (매수/매도 체결량 및 평균 단가)
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FillStatistics {
    /// 매수 체결량
    #[prost(int64, tag="1")]
    pub buy_filled_quantity: i64,
    /// 매도 체결량
    #[prost(int64, tag="2")]
    pub sell_filled_quantity: i64,
    /// 매수 총금액 (평균 단가 계산용)
    #[prost(string, tag="3")]
    pub buy_total_amount: ::prost::alloc::string::String,
    /// 매도 총금액 (평균 단가 계산용)
    #[prost(string, tag="4")]
    pub sell_total_amount: ::prost::alloc::string::String,
}
/// MM v2 가격 정보
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MmV2Pricing {
    #[prost(string, tag="1")]
    pub etf_ask_quote: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub etf_bid_quote: ::prost::alloc::string::String,
    #[prost(string, tag="3")]
    pub etf_ask_nav: ::prost::alloc::string::String,
    #[prost(string, tag="4")]
    pub etf_bid_nav: ::prost::alloc::string::String,
}
/// 시간 프레임별 상태
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimeFrameStatus {
    #[prost(uint64, tag="1")]
    pub window_seconds: u64,
    #[prost(uint32, tag="2")]
    pub current_count: u32,
    #[prost(uint32, tag="3")]
    pub max_orders: u32,
    #[prost(double, tag="4")]
    pub usage_percent: f64,
}
// ========== Request/Response Messages ==========

/// GetEtfMmV2
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEtfMmV2Request {
    #[prost(string, tag="1")]
    pub etf: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub fund: ::prost::alloc::string::String,
}
/// ListEtfMmV2s
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEtfMmV2sRequest {
    #[prost(uint32, optional, tag="1")]
    pub page_size: ::core::option::Option<u32>,
    #[prost(string, optional, tag="2")]
    pub page_token: ::core::option::Option<::prost::alloc::string::String>,
    /// Available Sequence and Operator
    /// * etf_symbol
    ///    * `equal`, `contains`
    /// * fund_code
    ///    * `equal`, `contains`
    #[prost(string, tag="3")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEtfMmV2sResponse {
    #[prost(message, repeated, tag="1")]
    pub etf_mm_v2s: ::prost::alloc::vec::Vec<EtfMmV2>,
    #[prost(string, tag="2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// ListEtfMmV2Statuses
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEtfMmV2StatusesRequest {
    #[prost(uint32, optional, tag="1")]
    pub page_size: ::core::option::Option<u32>,
    #[prost(string, optional, tag="2")]
    pub page_token: ::core::option::Option<::prost::alloc::string::String>,
    /// Available Sequence and Operator
    /// * etf_symbol: `equal`, `contains`
    /// * fund_code: `equal`, `contains`
    /// * state: `equal`
    /// * fill_statistics.buy_filled_quantity: `greater_than`, `less_than`
    #[prost(string, tag="3")]
    pub filter: ::prost::alloc::string::String,
    /// Supported Fields: "fill_statistics.buy_filled_quantity", "fill_statistics.sell_filled_quantity"
    #[prost(string, tag="5")]
    pub order_by: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListEtfMmV2StatusesResponse {
    #[prost(message, repeated, tag="1")]
    pub etf_mm_v2_statuses: ::prost::alloc::vec::Vec<EtfMmV2Status>,
    #[prost(string, tag="2")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// UpdateEtfMmV2
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateEtfMmV2Request {
    /// ETF 심볼
    #[prost(string, tag="1")]
    pub symbol: ::prost::alloc::string::String,
    /// 펀드 코드
    #[prost(string, tag="2")]
    pub fund_code: ::prost::alloc::string::String,
    /// 호가 깊이
    #[prost(uint32, optional, tag="4")]
    pub depth: ::core::option::Option<u32>,
    /// 동적 offset 조정 설정
    #[prost(message, optional, tag="5")]
    pub offset: ::core::option::Option<EtfMmV2Offset>,
    #[prost(double, optional, tag="6")]
    pub ask_basis: ::core::option::Option<f64>,
    #[prost(double, optional, tag="7")]
    pub bid_basis: ::core::option::Option<f64>,
    /// 매수 주문 수량
    #[prost(int64, optional, tag="8")]
    pub bid_quantity: ::core::option::Option<i64>,
    /// 매도 주문 수량
    #[prost(int64, optional, tag="9")]
    pub ask_quantity: ::core::option::Option<i64>,
    /// 매수 호가 조정값
    #[prost(double, optional, tag="10")]
    pub bid_adjustment: ::core::option::Option<f64>,
    /// 매도 호가 조정값
    #[prost(double, optional, tag="11")]
    pub ask_adjustment: ::core::option::Option<f64>,
    /// 모멘텀 활성화 여부
    #[prost(bool, optional, tag="12")]
    pub momentum_enabled: ::core::option::Option<bool>,
    /// 모멘텀 윈도우 크기
    #[prost(uint32, optional, tag="13")]
    pub momentum_window: ::core::option::Option<u32>,
    /// 모멘텀 민감도
    #[prost(double, optional, tag="14")]
    pub momentum_sensitivity: ::core::option::Option<f64>,
    /// 매수/매도 수량 한도
    #[prost(message, optional, tag="15")]
    pub quantity_limit: ::core::option::Option<EtfMmV2QuantityLimit>,
    /// precomputed quote retreat 처리 정책
    #[prost(enumeration="PrecomputePolicy", optional, tag="16")]
    pub precompute_policy: ::core::option::Option<i32>,
    /// pricing source 선물 1호가 잔량 imbalance guard 활성화 여부
    #[prost(bool, optional, tag="17")]
    pub pricing_source_liquidity_imbalance_guard_enabled: ::core::option::Option<bool>,
    /// 모멘텀 deadband 틱 수
    #[prost(int32, optional, tag="18")]
    pub momentum_deadband_ticks: ::core::option::Option<i32>,
    /// ExposureSkew 설정 업데이트
    #[prost(message, optional, tag="19")]
    pub exposure_skew: ::core::option::Option<UpdateEtfMmV2ExposureSkewFields>,
}
/// ExposureSkew 설정 업데이트 필드
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateEtfMmV2ExposureSkewFields {
    #[prost(bool, optional, tag="1")]
    pub enabled: ::core::option::Option<bool>,
    #[prost(int64, optional, tag="2")]
    pub trigger_quantity: ::core::option::Option<i64>,
    #[prost(int64, optional, tag="3")]
    pub limit_quantity: ::core::option::Option<i64>,
    #[prost(int32, optional, tag="4")]
    pub max_skew_ticks: ::core::option::Option<i32>,
}
/// GetEtfMmV2Status
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEtfMmV2StatusRequest {
    #[prost(string, tag="1")]
    pub etf: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub fund: ::prost::alloc::string::String,
}
/// StreamEtfMmV2StatusUpdate
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamEtfMmV2StatusUpdateRequest {
    #[prost(string, tag="1")]
    pub etf: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub fund: ::prost::alloc::string::String,
}
/// ETF MM v2 시작 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartEtfMmV2Request {
    #[prost(string, tag="1")]
    pub etf: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub fund: ::prost::alloc::string::String,
}
/// ETF MM v2 시작 응답
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartEtfMmV2Response {
    #[prost(message, optional, tag="1")]
    pub status: ::core::option::Option<EtfMmV2Status>,
    #[prost(string, tag="2")]
    pub message: ::prost::alloc::string::String,
}
/// ETF MM v2 중지 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopEtfMmV2Request {
    #[prost(string, tag="1")]
    pub etf: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub fund: ::prost::alloc::string::String,
}
/// ETF MM v2 중지 응답
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopEtfMmV2Response {
    #[prost(message, optional, tag="1")]
    pub status: ::core::option::Option<EtfMmV2Status>,
    #[prost(string, tag="2")]
    pub message: ::prost::alloc::string::String,
}
/// 주문 업데이트 스트리밍 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetUserOrderBookRequest {
    #[prost(string, tag="1")]
    pub etf: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub fund: ::prost::alloc::string::String,
}
/// 주문 업데이트 정보
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserOrderbookData {
    /// 매수 호가 (10단계)
    #[prost(string, repeated, tag="1")]
    pub bid_prices: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// 매도 호가 (10단계)
    #[prost(string, repeated, tag="2")]
    pub ask_prices: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// 매수 수량 (10단계)
    #[prost(int64, repeated, tag="3")]
    pub bid_quantities: ::prost::alloc::vec::Vec<i64>,
    /// 매도 수량 (10단계)
    #[prost(int64, repeated, tag="4")]
    pub ask_quantities: ::prost::alloc::vec::Vec<i64>,
}
/// 사용자 주문 오더북 강제 비우기 요청
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClearUserOrderBookRequest {
    #[prost(string, tag="1")]
    pub etf: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub fund: ::prost::alloc::string::String,
}
/// 사용자 주문 오더북 강제 비우기 응답
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClearUserOrderBookResponse {
    #[prost(message, optional, tag="1")]
    pub status: ::core::option::Option<EtfMmV2Status>,
    #[prost(string, tag="2")]
    pub message: ::prost::alloc::string::String,
    #[prost(int32, tag="3")]
    pub cleared_count: i32,
}
/// MM v2 운영 모드
/// 우선순위: Momentum > ExposureBalance > Neutral
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MmV2Mode {
    Unspecified = 0,
    /// 선물 모멘텀 추종 모드 (deadband 이상의 모멘텀 감지 시)
    Momentum = 1,
    /// 누적 노출 균형 모드 (모멘텀 비활성 + 순포지션이 trigger 초과 시)
    ExposureBalance = 2,
    /// 중립 모드 (모멘텀/ExposureSkew 모두 비활성)
    Neutral = 3,
}
impl MmV2Mode {
    /// 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 {
            MmV2Mode::Unspecified => "MM_V2_MODE_UNSPECIFIED",
            MmV2Mode::Momentum => "MM_V2_MODE_MOMENTUM",
            MmV2Mode::ExposureBalance => "MM_V2_MODE_EXPOSURE_BALANCE",
            MmV2Mode::Neutral => "MM_V2_MODE_NEUTRAL",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "MM_V2_MODE_UNSPECIFIED" => Some(Self::Unspecified),
            "MM_V2_MODE_MOMENTUM" => Some(Self::Momentum),
            "MM_V2_MODE_EXPOSURE_BALANCE" => Some(Self::ExposureBalance),
            "MM_V2_MODE_NEUTRAL" => Some(Self::Neutral),
            _ => None,
        }
    }
}
/// precomputed quote retreat 처리 정책
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PrecomputePolicy {
    Unspecified = 0,
    /// 선물 1틱 ↔ ETF 1틱 (1:1 대응). 빠른 추격.
    OneToOne = 1,
    /// 선물 N틱 ↔ ETF 1틱 (N:1 대응, N≥3). 정석. 항상 정확한 호가 유지.
    ManyToOne = 2,
    /// 선물 1틱 ↔ ETF N틱 (1:N 대응). 고가 레버리지 ETF용.
    OneToMany = 3,
}
impl PrecomputePolicy {
    /// 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 {
            PrecomputePolicy::Unspecified => "PRECOMPUTE_POLICY_UNSPECIFIED",
            PrecomputePolicy::OneToOne => "PRECOMPUTE_POLICY_ONE_TO_ONE",
            PrecomputePolicy::ManyToOne => "PRECOMPUTE_POLICY_MANY_TO_ONE",
            PrecomputePolicy::OneToMany => "PRECOMPUTE_POLICY_ONE_TO_MANY",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PRECOMPUTE_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
            "PRECOMPUTE_POLICY_ONE_TO_ONE" => Some(Self::OneToOne),
            "PRECOMPUTE_POLICY_MANY_TO_ONE" => Some(Self::ManyToOne),
            "PRECOMPUTE_POLICY_ONE_TO_MANY" => Some(Self::OneToMany),
            _ => None,
        }
    }
}
/// pricing source 선물 1호가 잔량 imbalance guard 상태
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PricingSourceLiquidityImbalanceGuardState {
    Unspecified = 0,
    Normal = 1,
    BidThin = 2,
    AskThin = 3,
}
impl PricingSourceLiquidityImbalanceGuardState {
    /// 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 {
            PricingSourceLiquidityImbalanceGuardState::Unspecified => "PRICING_SOURCE_LIQUIDITY_IMBALANCE_GUARD_STATE_UNSPECIFIED",
            PricingSourceLiquidityImbalanceGuardState::Normal => "PRICING_SOURCE_LIQUIDITY_IMBALANCE_GUARD_STATE_NORMAL",
            PricingSourceLiquidityImbalanceGuardState::BidThin => "PRICING_SOURCE_LIQUIDITY_IMBALANCE_GUARD_STATE_BID_THIN",
            PricingSourceLiquidityImbalanceGuardState::AskThin => "PRICING_SOURCE_LIQUIDITY_IMBALANCE_GUARD_STATE_ASK_THIN",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PRICING_SOURCE_LIQUIDITY_IMBALANCE_GUARD_STATE_UNSPECIFIED" => Some(Self::Unspecified),
            "PRICING_SOURCE_LIQUIDITY_IMBALANCE_GUARD_STATE_NORMAL" => Some(Self::Normal),
            "PRICING_SOURCE_LIQUIDITY_IMBALANCE_GUARD_STATE_BID_THIN" => Some(Self::BidThin),
            "PRICING_SOURCE_LIQUIDITY_IMBALANCE_GUARD_STATE_ASK_THIN" => Some(Self::AskThin),
            _ => None,
        }
    }
}
/// ETF MM v2 상태 enum
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum EtfMmV2State {
    Unspecified = 0,
    Idle = 1,
    Running = 2,
    Stopping = 3,
    Error = 4,
}
impl EtfMmV2State {
    /// 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 {
            EtfMmV2State::Unspecified => "ETF_MM_V2_STATE_UNSPECIFIED",
            EtfMmV2State::Idle => "ETF_MM_V2_STATE_IDLE",
            EtfMmV2State::Running => "ETF_MM_V2_STATE_RUNNING",
            EtfMmV2State::Stopping => "ETF_MM_V2_STATE_STOPPING",
            EtfMmV2State::Error => "ETF_MM_V2_STATE_ERROR",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ETF_MM_V2_STATE_UNSPECIFIED" => Some(Self::Unspecified),
            "ETF_MM_V2_STATE_IDLE" => Some(Self::Idle),
            "ETF_MM_V2_STATE_RUNNING" => Some(Self::Running),
            "ETF_MM_V2_STATE_STOPPING" => Some(Self::Stopping),
            "ETF_MM_V2_STATE_ERROR" => Some(Self::Error),
            _ => None,
        }
    }
}
include!("kdo.v1.mm_v2.tonic.rs");
include!("kdo.v1.mm_v2.serde.rs");
// @@protoc_insertion_point(module)