pub struct DcaPlan {Show 22 fields
pub plan_id: String,
pub status: DCAStatus,
pub symbol: String,
pub member_id: String,
pub aaid: String,
pub account_channel: String,
pub display_account: String,
pub market: Market,
pub per_invest_amount: Decimal,
pub invest_frequency: DCAFrequency,
pub invest_day_of_week: String,
pub invest_day_of_month: String,
pub allow_margin_finance: bool,
pub alter_hours: String,
pub created_at: String,
pub updated_at: String,
pub next_trd_date: String,
pub stock_name: String,
pub cum_amount: Option<Decimal>,
pub issue_number: i64,
pub average_cost: Option<Decimal>,
pub cum_profit: Option<Decimal>,
}Expand description
One DCA (dollar-cost averaging) investment plan
Fields§
§plan_id: StringPlan ID
status: DCAStatusStatus
symbol: StringSecurity symbol
member_id: StringMember ID
aaid: StringAccount ID
account_channel: StringAccount channel
display_account: StringDisplay account
market: MarketMarket
per_invest_amount: DecimalInvestment amount per period
invest_frequency: DCAFrequencyInvestment frequency
invest_day_of_week: StringDay of week for weekly plans (e.g. "Mon")
invest_day_of_month: StringDay of month for monthly plans
allow_margin_finance: boolWhether margin finance is allowed
alter_hours: StringReminder notification hours before execution (API may return integer or string)
created_at: StringCreation time
updated_at: StringLast updated time
next_trd_date: StringNext investment date
stock_name: StringSecurity name
cum_amount: Option<Decimal>Cumulative invested amount
issue_number: i64Number of completed investment periods
average_cost: Option<Decimal>Average cost
cum_profit: Option<Decimal>Cumulative profit/loss
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DcaPlan
impl<'de> Deserialize<'de> for DcaPlan
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 DcaPlan
impl RefUnwindSafe for DcaPlan
impl Send for DcaPlan
impl Sync for DcaPlan
impl Unpin for DcaPlan
impl UnsafeUnpin for DcaPlan
impl UnwindSafe for DcaPlan
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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