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§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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