Skip to main content

ledger_models/
fintekkers.requests.security.rs

1/// A request to allow clients to find existing securities.
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct QuerySecurityRequestProto {
5    #[prost(string, tag = "1")]
6    pub object_class: ::prost::alloc::string::String,
7    #[prost(string, tag = "2")]
8    pub version: ::prost::alloc::string::String,
9    /// The list of UUIds to return
10    #[prost(message, repeated, tag = "21")]
11    pub uu_ids: ::prost::alloc::vec::Vec<super::super::models::util::UuidProto>,
12    /// A list of position filters that will filter securities that match.
13    #[prost(message, optional, tag = "22")]
14    pub search_security_input: ::core::option::Option<
15        super::super::models::position::PositionFilterProto,
16    >,
17    #[prost(message, optional, tag = "23")]
18    pub as_of: ::core::option::Option<super::super::models::util::LocalTimestampProto>,
19    /// Case-insensitive substring match on security name (issuer) or identifier (e.g. ticker).
20    /// Empty string means no filter (return all).
21    #[prost(string, tag = "24")]
22    pub name_filter: ::prost::alloc::string::String,
23}
24#[allow(clippy::derive_partial_eq_without_eq)]
25#[derive(Clone, PartialEq, ::prost::Message)]
26pub struct QuerySecurityResponseProto {
27    #[prost(string, tag = "1")]
28    pub object_class: ::prost::alloc::string::String,
29    #[prost(string, tag = "2")]
30    pub version: ::prost::alloc::string::String,
31    /// The input that was provided for this request.
32    #[prost(message, optional, tag = "20")]
33    pub query_security_input: ::core::option::Option<QuerySecurityRequestProto>,
34    /// The security (or securities) that was matched by this request.
35    #[prost(message, repeated, tag = "30")]
36    pub security_response: ::prost::alloc::vec::Vec<
37        super::super::models::security::SecurityProto,
38    >,
39    /// Any errors or warnings related to this request
40    #[prost(message, repeated, tag = "40")]
41    pub errors_or_warnings: ::prost::alloc::vec::Vec<super::util::errors::SummaryProto>,
42}
43#[allow(clippy::derive_partial_eq_without_eq)]
44#[derive(Clone, PartialEq, ::prost::Message)]
45pub struct GetFieldsResponseProto {
46    #[prost(string, tag = "1")]
47    pub object_class: ::prost::alloc::string::String,
48    #[prost(string, tag = "2")]
49    pub version: ::prost::alloc::string::String,
50    #[prost(
51        enumeration = "super::super::models::position::FieldProto",
52        repeated,
53        tag = "10"
54    )]
55    pub fields: ::prost::alloc::vec::Vec<i32>,
56}
57/// Use this request to create or update securities. Uniqueness is guaranteed via the UUID.
58/// Security identifiers do not guarantee uniqueness. As an example a bond ISIN or stock ticker
59/// may be re-used over time. Therefore if you send 2 requests with the same security identifier
60/// you will create two securities. In order to avoid duplication you should either re-use the UUID
61/// when calling the API, in which case an update will be applied. If you do not know the UUID, you
62/// should first do a search operation.
63///
64/// It is preferred that the client generates the UUID. This will avoid issues in the network leading
65/// to duplicate securities.
66#[allow(clippy::derive_partial_eq_without_eq)]
67#[derive(Clone, PartialEq, ::prost::Message)]
68pub struct CreateSecurityRequestProto {
69    #[prost(string, tag = "1")]
70    pub object_class: ::prost::alloc::string::String,
71    #[prost(string, tag = "2")]
72    pub version: ::prost::alloc::string::String,
73    /// A fully formed security object to be created or updated. Validations may be applied
74    /// before creating. For example creating an equity security with bond fields may be invalid and
75    /// therefore rejected.
76    #[prost(message, optional, tag = "20")]
77    pub security_input: ::core::option::Option<
78        super::super::models::security::SecurityProto,
79    >,
80}
81#[allow(clippy::derive_partial_eq_without_eq)]
82#[derive(Clone, PartialEq, ::prost::Message)]
83pub struct CreateSecurityResponseProto {
84    #[prost(string, tag = "1")]
85    pub object_class: ::prost::alloc::string::String,
86    #[prost(string, tag = "2")]
87    pub version: ::prost::alloc::string::String,
88    /// The input that was provided for this request.
89    #[prost(message, optional, tag = "20")]
90    pub security_request: ::core::option::Option<CreateSecurityRequestProto>,
91    /// The security (or securities) that were created in response to this request
92    #[prost(message, optional, tag = "30")]
93    pub security_response: ::core::option::Option<
94        super::super::models::security::SecurityProto,
95    >,
96    /// If no errors or warnings in the response then the request was processed successfully without any
97    /// contingencies.
98    #[prost(message, optional, tag = "40")]
99    pub errors_or_warnings: ::core::option::Option<super::util::errors::SummaryProto>,
100}
101#[allow(clippy::derive_partial_eq_without_eq)]
102#[derive(Clone, PartialEq, ::prost::Message)]
103pub struct GetFieldValuesRequestProto {
104    #[prost(string, tag = "1")]
105    pub object_class: ::prost::alloc::string::String,
106    #[prost(string, tag = "2")]
107    pub version: ::prost::alloc::string::String,
108    #[prost(enumeration = "super::super::models::position::FieldProto", tag = "10")]
109    pub field: i32,
110}
111#[allow(clippy::derive_partial_eq_without_eq)]
112#[derive(Clone, PartialEq, ::prost::Message)]
113pub struct GetFieldValuesResponseProto {
114    #[prost(string, tag = "1")]
115    pub object_class: ::prost::alloc::string::String,
116    #[prost(string, tag = "2")]
117    pub version: ::prost::alloc::string::String,
118    #[prost(message, repeated, tag = "10")]
119    pub values: ::prost::alloc::vec::Vec<::prost_types::Any>,
120}