Skip to main content

ids_apis/
kdo.v1.etf.rs

1// @generated
2// This file is @generated by prost-build.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Etf {
6    /// ETF ID
7    #[prost(uint64, tag="1")]
8    pub id: u64,
9    /// ETF 심볼 (ISIN 코드)
10    #[prost(string, tag="2")]
11    pub symbol: ::prost::alloc::string::String,
12    /// ETF 코드
13    #[prost(string, tag="3")]
14    pub code: ::prost::alloc::string::String,
15    /// ETF 이름
16    #[prost(string, tag="4")]
17    pub name: ::prost::alloc::string::String,
18    /// 마지막 가격
19    #[prost(string, tag="5")]
20    pub prev_close: ::prost::alloc::string::String,
21    #[prost(string, tag="6")]
22    pub last_price: ::prost::alloc::string::String,
23    #[prost(string, tag="7")]
24    pub prev_nav: ::prost::alloc::string::String,
25    #[prost(string, tag="8")]
26    pub last_inav: ::prost::alloc::string::String,
27    /// PDF 구성 종목 목록
28    #[prost(map="string, message", tag="10")]
29    pub constituents: ::std::collections::HashMap<::prost::alloc::string::String, EtfPdfConstituent>,
30    /// 설정 단위
31    #[prost(int64, tag="11")]
32    pub creation_unit: i64,
33    /// 복제 방법
34    #[prost(enumeration="ReplicationMethod", tag="12")]
35    pub replication_method: i32,
36    /// Tick 크기 (원 단위, i64)
37    #[prost(int64, tag="13")]
38    pub tick_size: i64,
39    /// Tick 크기 (원 단위, i64)
40    #[prost(int64, tag="14")]
41    pub listed_quantity: i64,
42    #[prost(float, tag="15")]
43    pub leverage: f32,
44    #[prost(bool, tag="16")]
45    pub tradable: bool,
46    #[prost(bool, tag="17")]
47    pub short_sellable: bool,
48    #[prost(bool, tag="23")]
49    pub cash_creditable: bool,
50    #[prost(int64, tag="24")]
51    pub cash_creation_amount: i64,
52}
53#[allow(clippy::derive_partial_eq_without_eq)]
54#[derive(Clone, PartialEq, ::prost::Message)]
55pub struct EtfConstituent {
56    #[prost(oneof="etf_constituent::ConstituentType", tags="1, 2, 3")]
57    pub constituent_type: ::core::option::Option<etf_constituent::ConstituentType>,
58}
59/// Nested message and enum types in `EtfConstituent`.
60pub mod etf_constituent {
61    #[allow(clippy::derive_partial_eq_without_eq)]
62#[derive(Clone, PartialEq, ::prost::Oneof)]
63    pub enum ConstituentType {
64        #[prost(message, tag="1")]
65        Stock(super::StockConstituent),
66        #[prost(message, tag="2")]
67        Futures(super::FuturesConstituent),
68        #[prost(message, tag="3")]
69        Cash(super::CashConstituent),
70    }
71}
72#[allow(clippy::derive_partial_eq_without_eq)]
73#[derive(Clone, PartialEq, ::prost::Message)]
74pub struct StockConstituent {
75    #[prost(string, tag="1")]
76    pub symbol: ::prost::alloc::string::String,
77    #[prost(string, tag="2")]
78    pub prev_close: ::prost::alloc::string::String,
79    #[prost(string, tag="3")]
80    pub last_price: ::prost::alloc::string::String,
81    #[prost(int64, tag="4")]
82    pub quantity: i64,
83    #[prost(int64, tag="5")]
84    pub last_valuation: i64,
85    #[prost(int64, tag="6")]
86    pub notional_amount: i64,
87    #[prost(uint32, tag="7")]
88    pub num_members: u32,
89}
90#[allow(clippy::derive_partial_eq_without_eq)]
91#[derive(Clone, PartialEq, ::prost::Message)]
92pub struct FuturesConstituent {
93    #[prost(string, tag="1")]
94    pub symbol: ::prost::alloc::string::String,
95    #[prost(string, tag="2")]
96    pub prev_close: ::prost::alloc::string::String,
97    #[prost(string, tag="3")]
98    pub last_price: ::prost::alloc::string::String,
99    #[prost(float, tag="4")]
100    pub quantity: f32,
101    #[prost(double, tag="5")]
102    pub multiple: f64,
103    #[prost(int64, tag="6")]
104    pub last_valuation: i64,
105    #[prost(int64, tag="7")]
106    pub notional_amount: i64,
107    #[prost(uint32, tag="8")]
108    pub num_members: u32,
109}
110#[allow(clippy::derive_partial_eq_without_eq)]
111#[derive(Clone, PartialEq, ::prost::Message)]
112pub struct CashConstituent {
113    #[prost(string, tag="1")]
114    pub symbol: ::prost::alloc::string::String,
115    #[prost(int64, tag="2")]
116    pub prev_valuation: i64,
117    #[prost(uint32, tag="3")]
118    pub num_members: u32,
119}
120/// PDF 구성 종목
121#[allow(clippy::derive_partial_eq_without_eq)]
122#[derive(Clone, PartialEq, ::prost::Message)]
123pub struct EtfPdfConstituent {
124    /// 종목 코드
125    ///
126    /// symbol
127    #[prost(string, tag="1")]
128    pub symbol: ::prost::alloc::string::String,
129    /// 종목명
130    #[prost(string, tag="2")]
131    pub name: ::prost::alloc::string::String,
132    /// 상품 타입
133    #[prost(enumeration="ProductType", tag="3")]
134    pub product_type: i32,
135    /// 구성 수량 (선물 숏의 경우 음수)
136    #[prost(int64, tag="4")]
137    pub quantity: i64,
138}
139// ========== Request/Response Messages ==========
140
141/// GetEtf
142#[allow(clippy::derive_partial_eq_without_eq)]
143#[derive(Clone, PartialEq, ::prost::Message)]
144pub struct GetEtfRequest {
145    #[prost(string, tag="1")]
146    pub etf: ::prost::alloc::string::String,
147}
148/// ListEtfs
149#[allow(clippy::derive_partial_eq_without_eq)]
150#[derive(Clone, PartialEq, ::prost::Message)]
151pub struct ListEtfsRequest {
152    /// 페이지 크기 (optional)
153    #[prost(uint32, optional, tag="1")]
154    pub page_size: ::core::option::Option<u32>,
155    /// 페이지 토큰 (optional, for pagination)
156    #[prost(string, optional, tag="2")]
157    pub page_token: ::core::option::Option<::prost::alloc::string::String>,
158    /// 필터링 조건 (optional, AIP-160)
159    #[prost(string, tag="3")]
160    pub filter: ::prost::alloc::string::String,
161}
162#[allow(clippy::derive_partial_eq_without_eq)]
163#[derive(Clone, PartialEq, ::prost::Message)]
164pub struct ListEtfsResponse {
165    /// ETF 목록
166    #[prost(message, repeated, tag="1")]
167    pub etfs: ::prost::alloc::vec::Vec<Etf>,
168    /// 다음 페이지 토큰
169    #[prost(string, tag="2")]
170    pub next_page_token: ::prost::alloc::string::String,
171}
172#[allow(clippy::derive_partial_eq_without_eq)]
173#[derive(Clone, PartialEq, ::prost::Message)]
174pub struct CreateRedeemEtfRequest {
175    #[prost(string, tag="1")]
176    pub etf: ::prost::alloc::string::String,
177    #[prost(string, tag="2")]
178    pub fund: ::prost::alloc::string::String,
179    #[prost(int64, tag="3")]
180    pub quantity: i64,
181    #[prost(bool, tag="4")]
182    pub is_creation: bool,
183}
184/// 상품 타입
185#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
186#[repr(i32)]
187pub enum ProductType {
188    Unspecified = 0,
189    Stock = 1,
190    Futures = 2,
191    Etf = 3,
192    Cash = 4,
193}
194impl ProductType {
195    /// String value of the enum field names used in the ProtoBuf definition.
196    ///
197    /// The values are not transformed in any way and thus are considered stable
198    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
199    pub fn as_str_name(&self) -> &'static str {
200        match self {
201            ProductType::Unspecified => "PRODUCT_TYPE_UNSPECIFIED",
202            ProductType::Stock => "PRODUCT_TYPE_STOCK",
203            ProductType::Futures => "PRODUCT_TYPE_FUTURES",
204            ProductType::Etf => "PRODUCT_TYPE_ETF",
205            ProductType::Cash => "PRODUCT_TYPE_CASH",
206        }
207    }
208    /// Creates an enum from field names used in the ProtoBuf definition.
209    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
210        match value {
211            "PRODUCT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
212            "PRODUCT_TYPE_STOCK" => Some(Self::Stock),
213            "PRODUCT_TYPE_FUTURES" => Some(Self::Futures),
214            "PRODUCT_TYPE_ETF" => Some(Self::Etf),
215            "PRODUCT_TYPE_CASH" => Some(Self::Cash),
216            _ => None,
217        }
218    }
219}
220/// 복제 방법
221#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
222#[repr(i32)]
223pub enum ReplicationMethod {
224    Unspecified = 0,
225    Active = 1,
226    Physical = 2,
227    Synthetic = 3,
228}
229impl ReplicationMethod {
230    /// String value of the enum field names used in the ProtoBuf definition.
231    ///
232    /// The values are not transformed in any way and thus are considered stable
233    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
234    pub fn as_str_name(&self) -> &'static str {
235        match self {
236            ReplicationMethod::Unspecified => "REPLICATION_METHOD_UNSPECIFIED",
237            ReplicationMethod::Active => "REPLICATION_METHOD_ACTIVE",
238            ReplicationMethod::Physical => "REPLICATION_METHOD_PHYSICAL",
239            ReplicationMethod::Synthetic => "REPLICATION_METHOD_SYNTHETIC",
240        }
241    }
242    /// Creates an enum from field names used in the ProtoBuf definition.
243    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
244        match value {
245            "REPLICATION_METHOD_UNSPECIFIED" => Some(Self::Unspecified),
246            "REPLICATION_METHOD_ACTIVE" => Some(Self::Active),
247            "REPLICATION_METHOD_PHYSICAL" => Some(Self::Physical),
248            "REPLICATION_METHOD_SYNTHETIC" => Some(Self::Synthetic),
249            _ => None,
250        }
251    }
252}
253include!("kdo.v1.etf.tonic.rs");
254include!("kdo.v1.etf.serde.rs");
255// @@protoc_insertion_point(module)