pub struct SessionStatus {Show 20 fields
pub id: String,
pub finding: String,
pub executor: String,
pub instrument: String,
pub strategy: String,
pub started_at: String,
pub state: String,
pub signals: u32,
pub submitted: u32,
pub refused: u32,
pub fills: u32,
pub halted: Option<String>,
pub last_error: Option<String>,
pub last_bar: Option<String>,
pub frozen: Option<String>,
pub reconciled: bool,
pub verdict: String,
pub verdict_reason: Option<String>,
pub warnings: Vec<String>,
pub divergence: Option<Divergence>,
}Expand description
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Fields§
§id: String§finding: String§executor: String§instrument: String§strategy: String§started_at: String§state: Stringstarting, running, frozen, halted, stopped or failed.
signals: u32§submitted: u32§refused: u32§fills: u32§halted: Option<String>Why the gate halted, when it did.
last_error: Option<String>§last_bar: Option<String>§frozen: Option<String>What the gate and the venue disagreed about, while frozen (#187).
reconciled: boolWhether a frozen session has been reconciled, so ResumeSession is allowed.
verdict: StringWhether the rule is still the rule its finding described: holding, diverging or inconclusive, judged from the session’s own trades against the finding’s out-of-sample expectation (#221). Never a risk limit.
verdict_reason: Option<String>Why it is diverging, when it is: what was seen against what was expected.
warnings: Vec<String>The gate’s limits this session is within four fifths of (#191), in the gate’s words: “drawdown 8.1% of a 10.0% limit”. Empty while halted.
divergence: Option<Divergence>What the fills cost against the decision prices (#18): the divergence a paper session exists to measure. Absent until something filled.
Implementations§
Source§impl SessionStatus
impl SessionStatus
Sourcepub fn halted(&self) -> &str
pub fn halted(&self) -> &str
Returns the value of halted, or the default value if halted is unset.
Sourcepub fn last_error(&self) -> &str
pub fn last_error(&self) -> &str
Returns the value of last_error, or the default value if last_error is unset.
Sourcepub fn last_bar(&self) -> &str
pub fn last_bar(&self) -> &str
Returns the value of last_bar, or the default value if last_bar is unset.
Sourcepub fn frozen(&self) -> &str
pub fn frozen(&self) -> &str
Returns the value of frozen, or the default value if frozen is unset.
Sourcepub fn verdict_reason(&self) -> &str
pub fn verdict_reason(&self) -> &str
Returns the value of verdict_reason, or the default value if verdict_reason is unset.
Trait Implementations§
Source§impl Clone for SessionStatus
impl Clone for SessionStatus
Source§impl Debug for SessionStatus
impl Debug for SessionStatus
Source§impl Default for SessionStatus
impl Default for SessionStatus
Source§impl<'de> Deserialize<'de> for SessionStatus
impl<'de> Deserialize<'de> for SessionStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for SessionStatus
impl Message for SessionStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.