pub struct PortfolioRunSpec {
pub instances: Vec<PortfolioInstanceMsg>,
pub exchange: String,
pub data_type: String,
pub timeframe: Option<String>,
pub from: Option<String>,
pub to: Option<String>,
pub config: BacktestConfigMsg,
pub policies: Option<Value>,
pub groups: Option<Value>,
}Expand description
Execution scope of a portfolio run: several configured instances, one account, and optional portfolio policies.
Fields§
§instances: Vec<PortfolioInstanceMsg>§exchange: String§data_type: Stringtick, or bar together with timeframe; every instance source declares the same bar duration.
timeframe: Option<String>§from: Option<String>§to: Option<String>§config: BacktestConfigMsg§policies: Option<Value>Portfolio policies as a JSON array, decoded strictly by the server; omitted or empty means the run has no supervisor.
groups: Option<Value>Correlation groups the policies refer to, as a JSON array.
Trait Implementations§
Source§impl Clone for PortfolioRunSpec
impl Clone for PortfolioRunSpec
Source§fn clone(&self) -> PortfolioRunSpec
fn clone(&self) -> PortfolioRunSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PortfolioRunSpec
impl Debug for PortfolioRunSpec
Source§impl<'de> Deserialize<'de> for PortfolioRunSpec
impl<'de> Deserialize<'de> for PortfolioRunSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortfolioRunSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortfolioRunSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PortfolioRunSpec
impl Serialize for PortfolioRunSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PortfolioRunSpec
impl RefUnwindSafe for PortfolioRunSpec
impl Send for PortfolioRunSpec
impl Sync for PortfolioRunSpec
impl Unpin for PortfolioRunSpec
impl UnsafeUnpin for PortfolioRunSpec
impl UnwindSafe for PortfolioRunSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more