Skip to main content

ledger_models/
fintekkers.requests.security.rs

1/// Use this request to create or update securities. Uniqueness is guaranteed via the UUID.
2/// Security identifiers do not guarantee uniqueness. As an example a bond ISIN or stock ticker
3/// may be re-used over time. Therefore if you send 2 requests with the same security identifier
4/// you will create two securities. In order to avoid duplication you should either re-use the UUID
5/// when calling the API, in which case an update will be applied. If you do not know the UUID, you
6/// should first do a search operation.
7///
8/// It is preferred that the client generates the UUID. This will avoid issues in the network leading
9/// to duplicate securities.
10#[allow(clippy::derive_partial_eq_without_eq)]
11#[derive(Clone, PartialEq, ::prost::Message)]
12pub struct CreateSecurityRequestProto {
13    #[deprecated]
14    #[prost(string, tag = "1")]
15    pub object_class: ::prost::alloc::string::String,
16    #[deprecated]
17    #[prost(string, tag = "2")]
18    pub version: ::prost::alloc::string::String,
19    /// Compact form of object_class / version (LM-297). Writers set both in stage 1.
20    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1001")]
21    pub object_type: i32,
22    #[prost(uint32, tag = "1002")]
23    pub version_major: u32,
24    #[prost(uint32, tag = "1003")]
25    pub version_minor: u32,
26    #[prost(uint32, tag = "1004")]
27    pub version_patch: u32,
28    /// A fully formed security object to be created or updated. Validations may be applied
29    /// before creating. For example creating an equity security with bond fields may be invalid and
30    /// therefore rejected.
31    #[prost(message, optional, tag = "20")]
32    pub security_input: ::core::option::Option<
33        super::super::models::security::SecurityProto,
34    >,
35}
36#[allow(clippy::derive_partial_eq_without_eq)]
37#[derive(Clone, PartialEq, ::prost::Message)]
38pub struct CreateSecurityResponseProto {
39    #[deprecated]
40    #[prost(string, tag = "1")]
41    pub object_class: ::prost::alloc::string::String,
42    #[deprecated]
43    #[prost(string, tag = "2")]
44    pub version: ::prost::alloc::string::String,
45    /// Compact form of object_class / version (LM-297). Writers set both in stage 1.
46    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1001")]
47    pub object_type: i32,
48    #[prost(uint32, tag = "1002")]
49    pub version_major: u32,
50    #[prost(uint32, tag = "1003")]
51    pub version_minor: u32,
52    #[prost(uint32, tag = "1004")]
53    pub version_patch: u32,
54    /// The input that was provided for this request.
55    #[prost(message, optional, tag = "20")]
56    pub security_request: ::core::option::Option<CreateSecurityRequestProto>,
57    /// The security (or securities) that were created in response to this request
58    #[prost(message, optional, tag = "30")]
59    pub security_response: ::core::option::Option<
60        super::super::models::security::SecurityProto,
61    >,
62    /// If no errors or warnings in the response then the request was processed successfully without any
63    /// contingencies.
64    #[prost(message, optional, tag = "40")]
65    pub errors_or_warnings: ::core::option::Option<super::util::errors::SummaryProto>,
66}
67#[allow(clippy::derive_partial_eq_without_eq)]
68#[derive(Clone, PartialEq, ::prost::Message)]
69pub struct GetFieldValuesRequestProto {
70    #[deprecated]
71    #[prost(string, tag = "1")]
72    pub object_class: ::prost::alloc::string::String,
73    #[deprecated]
74    #[prost(string, tag = "2")]
75    pub version: ::prost::alloc::string::String,
76    /// Compact form of object_class / version (LM-297). Writers set both in stage 1.
77    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1001")]
78    pub object_type: i32,
79    #[prost(uint32, tag = "1002")]
80    pub version_major: u32,
81    #[prost(uint32, tag = "1003")]
82    pub version_minor: u32,
83    #[prost(uint32, tag = "1004")]
84    pub version_patch: u32,
85    #[prost(enumeration = "super::super::models::position::FieldProto", tag = "10")]
86    pub field: i32,
87}
88#[allow(clippy::derive_partial_eq_without_eq)]
89#[derive(Clone, PartialEq, ::prost::Message)]
90pub struct GetFieldValuesResponseProto {
91    #[deprecated]
92    #[prost(string, tag = "1")]
93    pub object_class: ::prost::alloc::string::String,
94    #[deprecated]
95    #[prost(string, tag = "2")]
96    pub version: ::prost::alloc::string::String,
97    /// Compact form of object_class / version (LM-297). Writers set both in stage 1.
98    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1001")]
99    pub object_type: i32,
100    #[prost(uint32, tag = "1002")]
101    pub version_major: u32,
102    #[prost(uint32, tag = "1003")]
103    pub version_minor: u32,
104    #[prost(uint32, tag = "1004")]
105    pub version_patch: u32,
106    #[prost(message, repeated, tag = "10")]
107    pub values: ::prost::alloc::vec::Vec<::prost_types::Any>,
108}
109#[allow(clippy::derive_partial_eq_without_eq)]
110#[derive(Clone, PartialEq, ::prost::Message)]
111pub struct GetFieldsResponseProto {
112    #[deprecated]
113    #[prost(string, tag = "1")]
114    pub object_class: ::prost::alloc::string::String,
115    #[deprecated]
116    #[prost(string, tag = "2")]
117    pub version: ::prost::alloc::string::String,
118    /// Compact form of object_class / version (LM-297). Writers set both in stage 1.
119    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1001")]
120    pub object_type: i32,
121    #[prost(uint32, tag = "1002")]
122    pub version_major: u32,
123    #[prost(uint32, tag = "1003")]
124    pub version_minor: u32,
125    #[prost(uint32, tag = "1004")]
126    pub version_patch: u32,
127    #[prost(
128        enumeration = "super::super::models::position::FieldProto",
129        repeated,
130        tag = "10"
131    )]
132    pub fields: ::prost::alloc::vec::Vec<i32>,
133}
134/// A request to allow clients to find existing securities.
135#[allow(clippy::derive_partial_eq_without_eq)]
136#[derive(Clone, PartialEq, ::prost::Message)]
137pub struct QuerySecurityRequestProto {
138    #[deprecated]
139    #[prost(string, tag = "1")]
140    pub object_class: ::prost::alloc::string::String,
141    #[deprecated]
142    #[prost(string, tag = "2")]
143    pub version: ::prost::alloc::string::String,
144    /// Compact form of object_class / version (LM-297). Writers set both in stage 1.
145    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1001")]
146    pub object_type: i32,
147    #[prost(uint32, tag = "1002")]
148    pub version_major: u32,
149    #[prost(uint32, tag = "1003")]
150    pub version_minor: u32,
151    #[prost(uint32, tag = "1004")]
152    pub version_patch: u32,
153    /// The list of UUIds to return
154    #[prost(message, repeated, tag = "21")]
155    pub uu_ids: ::prost::alloc::vec::Vec<super::super::models::util::UuidProto>,
156    /// A list of position filters that will filter securities that match.
157    #[prost(message, optional, tag = "22")]
158    pub search_security_input: ::core::option::Option<
159        super::super::models::position::PositionFilterProto,
160    >,
161    #[prost(message, optional, tag = "23")]
162    pub as_of: ::core::option::Option<super::super::models::util::LocalTimestampProto>,
163    /// Case-insensitive substring match on security name (issuer) or identifier (e.g. ticker).
164    /// Empty string means no filter (return all).
165    #[prost(string, tag = "24")]
166    pub name_filter: ::prost::alloc::string::String,
167    /// When true, the server populates IndexDetailsProto.constituents on
168    /// returned index securities (productType=*_INDEX) by running its
169    /// registered resolver against the request asOf. Default false:
170    /// index securities are returned without constituents (back-compat).
171    /// Added per second-brain#268.
172    #[prost(bool, tag = "25")]
173    pub lookthrough: bool,
174    /// Paging (see docs/adr/query_paging.md). Max records returned in this
175    /// response: the page size the client asks for. Unset or 0 = no client page
176    /// cap; the server keeps today's behaviour for this RPC. The server may cap
177    /// `limit` and return fewer items; fewer items does not mean last page, only
178    /// an empty `next_page_token` does. For streaming Search, `limit` caps the
179    /// total items across the whole stream. Clients that set neither `limit` nor
180    /// `page_token` get exactly today's results.
181    #[prost(int32, tag = "50")]
182    pub limit: i32,
183    /// Paging (see docs/adr/query_paging.md). Opaque token copied from a
184    /// previous response's `next_page_token`. Unset or empty = first page.
185    /// Clients must not parse or build tokens; send the other request fields
186    /// unchanged across pages. Clients that set neither `limit` nor
187    /// `page_token` get exactly today's results.
188    #[prost(string, tag = "51")]
189    pub page_token: ::prost::alloc::string::String,
190}
191#[allow(clippy::derive_partial_eq_without_eq)]
192#[derive(Clone, PartialEq, ::prost::Message)]
193pub struct QuerySecurityResponseProto {
194    #[deprecated]
195    #[prost(string, tag = "1")]
196    pub object_class: ::prost::alloc::string::String,
197    #[deprecated]
198    #[prost(string, tag = "2")]
199    pub version: ::prost::alloc::string::String,
200    /// Compact form of object_class / version (LM-297). Writers set both in stage 1.
201    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1001")]
202    pub object_type: i32,
203    #[prost(uint32, tag = "1002")]
204    pub version_major: u32,
205    #[prost(uint32, tag = "1003")]
206    pub version_minor: u32,
207    #[prost(uint32, tag = "1004")]
208    pub version_patch: u32,
209    /// The input that was provided for this request.
210    #[prost(message, optional, tag = "20")]
211    pub query_security_input: ::core::option::Option<QuerySecurityRequestProto>,
212    /// The security (or securities) that was matched by this request.
213    #[prost(message, repeated, tag = "30")]
214    pub security_response: ::prost::alloc::vec::Vec<
215        super::super::models::security::SecurityProto,
216    >,
217    /// Any errors or warnings related to this request
218    #[prost(message, repeated, tag = "40")]
219    pub errors_or_warnings: ::prost::alloc::vec::Vec<super::util::errors::SummaryProto>,
220    /// Paging (see docs/adr/query_paging.md). Opaque token for the next page;
221    /// pass it back as the request's `page_token`. Empty = last page. For
222    /// streaming Search, only the final message of the stream carries it.
223    /// Old clients that ignore it get exactly today's results.
224    #[prost(string, tag = "50")]
225    pub next_page_token: ::prost::alloc::string::String,
226}