[−][src]Struct investments::broker_statement::BrokerStatement
Fields
broker: BrokerInfo
period: (Date, Date)
cash_assets: MultiCurrencyCashAccount
historical_cash_assets: BTreeMap<Date, MultiCurrencyCashAccount>
fees: Vec<Fee>
cash_flows: Vec<CashAssets>
idle_cash_interest: Vec<IdleCashInterest>
forex_trades: Vec<ForexTrade>
stock_buys: Vec<StockBuy>
stock_sells: Vec<StockSell>
dividends: Vec<Dividend>
stock_splits: StockSplitController
open_positions: HashMap<String, Decimal>
Implementations
impl BrokerStatement
[src]
pub fn read(
broker: BrokerInfo,
statement_dir_path: &str,
symbol_remapping: &HashMap<String, String>,
instrument_names: &HashMap<String, String>,
tax_remapping: TaxRemapping,
strict_mode: bool
) -> GenericResult<BrokerStatement>
[src]
broker: BrokerInfo,
statement_dir_path: &str,
symbol_remapping: &HashMap<String, String>,
instrument_names: &HashMap<String, String>,
tax_remapping: TaxRemapping,
strict_mode: bool
) -> GenericResult<BrokerStatement>
pub fn last_date(&self) -> Date
[src]
pub fn check_date(&self)
[src]
pub fn check_period_against_tax_year(&self, year: i32) -> EmptyResult
[src]
pub fn get_instrument_name(&self, symbol: &str) -> String
[src]
pub fn batch_quotes(&self, quotes: &Quotes)
[src]
pub fn emulate_sell(
&mut self,
symbol: &str,
quantity: Decimal,
price: Cash,
commission_calc: &mut CommissionCalc
) -> EmptyResult
[src]
&mut self,
symbol: &str,
quantity: Decimal,
price: Cash,
commission_calc: &mut CommissionCalc
) -> EmptyResult
pub fn emulate_commissions(
&mut self,
commission_calc: CommissionCalc
) -> MultiCurrencyCashAccount
[src]
&mut self,
commission_calc: CommissionCalc
) -> MultiCurrencyCashAccount
pub fn process_trades(&mut self) -> EmptyResult
[src]
pub fn merge_symbols(
&mut self,
symbols_to_merge: &HashMap<String, HashSet<String>>,
strict: bool
) -> EmptyResult
[src]
&mut self,
symbols_to_merge: &HashMap<String, HashSet<String>>,
strict: bool
) -> EmptyResult
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BrokerStatement
impl Send for BrokerStatement
impl Sync for BrokerStatement
impl Unpin for BrokerStatement
impl UnwindSafe for BrokerStatement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,