Skip to main content

arvo_api/generated/
arvo.session.v1.rs

1// This file is @generated by prost-build.
2#[derive(serde::Serialize, serde::Deserialize)]
3#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct StartRequest {
5    /// The finding whose rule runs: its selected experiment, warmed on the
6    /// library from the finding's own start to today.
7    #[prost(string, tag = "1")]
8    pub finding: ::prost::alloc::string::String,
9    /// `alpaca-paper`, `alpaca-live`, or `robinhood-<last four>`.
10    #[prost(string, tag = "2")]
11    pub executor: ::prost::alloc::string::String,
12}
13#[derive(serde::Serialize, serde::Deserialize)]
14#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
15pub struct SessionId {
16    #[prost(string, tag = "1")]
17    pub id: ::prost::alloc::string::String,
18}
19/// The kill switch (#127): arm the gate, then flatten everything the session
20/// holds. The halt is in force either way; what the venue would not exit is
21/// named in the session record.
22#[derive(serde::Serialize, serde::Deserialize)]
23#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
24pub struct HaltRequest {
25    #[prost(string, tag = "1")]
26    pub id: ::prost::alloc::string::String,
27    /// Why, for the record. Empty means "a person pressed it".
28    #[prost(string, tag = "2")]
29    pub reason: ::prost::alloc::string::String,
30}
31#[derive(serde::Serialize, serde::Deserialize)]
32#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
33pub struct SessionStatus {
34    #[prost(string, tag = "1")]
35    pub id: ::prost::alloc::string::String,
36    #[prost(string, tag = "2")]
37    pub finding: ::prost::alloc::string::String,
38    #[prost(string, tag = "3")]
39    pub executor: ::prost::alloc::string::String,
40    #[prost(string, tag = "4")]
41    pub instrument: ::prost::alloc::string::String,
42    #[prost(string, tag = "5")]
43    pub strategy: ::prost::alloc::string::String,
44    #[prost(string, tag = "6")]
45    pub started_at: ::prost::alloc::string::String,
46    /// starting, running, frozen, halted, stopped or failed.
47    #[prost(string, tag = "7")]
48    pub state: ::prost::alloc::string::String,
49    #[prost(uint32, tag = "8")]
50    pub signals: u32,
51    #[prost(uint32, tag = "9")]
52    pub submitted: u32,
53    #[prost(uint32, tag = "10")]
54    pub refused: u32,
55    #[prost(uint32, tag = "11")]
56    pub fills: u32,
57    /// Why the gate halted, when it did.
58    #[prost(string, optional, tag = "12")]
59    pub halted: ::core::option::Option<::prost::alloc::string::String>,
60    #[prost(string, optional, tag = "13")]
61    pub last_error: ::core::option::Option<::prost::alloc::string::String>,
62    #[prost(string, optional, tag = "14")]
63    pub last_bar: ::core::option::Option<::prost::alloc::string::String>,
64    /// What the gate and the venue disagreed about, while frozen (#187).
65    #[prost(string, optional, tag = "15")]
66    pub frozen: ::core::option::Option<::prost::alloc::string::String>,
67    /// Whether a frozen session has been reconciled, so ResumeSession is allowed.
68    #[prost(bool, tag = "16")]
69    pub reconciled: bool,
70}
71#[derive(serde::Serialize, serde::Deserialize)]
72#[derive(Clone, PartialEq, ::prost::Message)]
73pub struct SessionList {
74    #[prost(message, repeated, tag = "1")]
75    pub sessions: ::prost::alloc::vec::Vec<SessionStatus>,
76}