pub struct PortfolioConfig {
pub use_mark_prices: bool,
pub use_mark_xrates: bool,
pub bar_updates: bool,
pub convert_to_account_base_currency: bool,
pub debug: bool,
}
Expand description
Configuration for Portfolio
instances.
Fields§
§use_mark_prices: bool
§use_mark_xrates: bool
§bar_updates: bool
If external bars should be considered for updating unrealized pnls.
convert_to_account_base_currency: bool
If calculations should be converted into each account’s base currency. This setting is only effective for accounts with a specified base currency.
debug: bool
If debug mode is active (will provide extra debug logging).
Trait Implementations§
Source§impl Clone for PortfolioConfig
impl Clone for PortfolioConfig
Source§fn clone(&self) -> PortfolioConfig
fn clone(&self) -> PortfolioConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PortfolioConfig
impl Debug for PortfolioConfig
Source§impl Default for PortfolioConfig
impl Default for PortfolioConfig
Source§impl<'de> Deserialize<'de> for PortfolioConfig
impl<'de> Deserialize<'de> for PortfolioConfig
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 PortfolioConfig
impl RefUnwindSafe for PortfolioConfig
impl Send for PortfolioConfig
impl Sync for PortfolioConfig
impl Unpin for PortfolioConfig
impl UnwindSafe for PortfolioConfig
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