[−][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>
tax_agent_withholdings: Vec<TaxWithholding>
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) -> EmptyResult
[src]
pub fn net_value(
&self,
converter: &CurrencyConverter,
quotes: &Quotes,
currency: &str
) -> GenericResult<Cash>
[src]
&self,
converter: &CurrencyConverter,
quotes: &Quotes,
currency: &str
) -> GenericResult<Cash>
pub fn emulate_sell(
&mut self,
symbol: &str,
quantity: Decimal,
price: Cash,
commission_calc: &mut CommissionCalc,
converter: &CurrencyConverter
) -> EmptyResult
[src]
&mut self,
symbol: &str,
quantity: Decimal,
price: Cash,
commission_calc: &mut CommissionCalc,
converter: &CurrencyConverter
) -> 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
[src]
impl Send for BrokerStatement
[src]
impl Sync for BrokerStatement
[src]
impl Unpin for BrokerStatement
[src]
impl UnwindSafe for BrokerStatement
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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.
pub 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>,