Struct three_commas_client::Deal [−][src]
pub struct Deal {Show 53 fields
pub id: usize,
pub bot_id: usize,
pub max_safety_orders: usize,
pub deal_has_error: bool,
pub account_id: usize,
pub active_safety_orders_count: usize,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
pub closed_at: Option<DateTime<Utc>>,
pub is_finished: bool,
pub current_active_safety_orders_count: usize,
pub completed_safety_orders_count: usize,
pub completed_manual_safety_orders_count: usize,
pub pair: Pair,
pub status: DealStatus,
pub take_profit: Decimal,
pub base_order_volume: Decimal,
pub safety_order_volume: Decimal,
pub safety_order_step_percentage: Decimal,
pub bought_amount: Option<Decimal>,
pub bought_volume: Option<Decimal>,
pub bought_average_price: Option<Decimal>,
pub sold_amount: Option<Decimal>,
pub sold_volume: Option<Decimal>,
pub sold_average_price: Option<Decimal>,
pub take_profit_type: TakeProfitType,
pub final_profit: Decimal,
pub martingale_coefficient: Decimal,
pub martingale_volume_coefficient: Decimal,
pub martingale_step_coefficient: Decimal,
pub profit_currency: ProfitCurrency,
pub stop_loss_type: StopLossType,
pub safety_order_volume_type: VolumeType,
pub base_order_volume_type: VolumeType,
pub from_currency: SmolStr,
pub to_currency: SmolStr,
pub current_price: Decimal,
pub take_profit_price: Option<Decimal>,
pub stop_loss_price: Option<Decimal>,
pub final_profit_percentage: Decimal,
pub actual_profit_percentage: Decimal,
pub bot_name: String,
pub account_name: String,
pub usd_final_profit: Decimal,
pub actual_profit: Decimal,
pub actual_usd_profit: Decimal,
pub failed_message: Option<String>,
pub reserved_base_coin: Decimal,
pub reserved_second_coin: Decimal,
pub trailing_deviation: Decimal,
pub trailing_max_price: Option<Decimal>,
pub tsl_max_price: Option<Decimal>,
pub strategy: Strategy,
}Fields
id: usizebot_id: usizemax_safety_orders: usizedeal_has_error: boolaccount_id: usizeactive_safety_orders_count: usizecreated_at: DateTime<Utc>updated_at: Option<DateTime<Utc>>closed_at: Option<DateTime<Utc>>is_finished: boolcurrent_active_safety_orders_count: usizecompleted_safety_orders_count: usizecompleted safeties (not including manual)
completed_manual_safety_orders_count: usizecompleted manual safeties
pair: Pairstatus: DealStatustake_profit: Decimalbase_order_volume: Decimalsafety_order_volume: Decimalsafety_order_step_percentage: Decimalbought_amount: Option<Decimal>bought_volume: Option<Decimal>bought_average_price: Option<Decimal>sold_amount: Option<Decimal>sold_volume: Option<Decimal>sold_average_price: Option<Decimal>take_profit_type: TakeProfitTypefinal_profit: Decimalmartingale_coefficient: Decimalmartingale_volume_coefficient: Decimalmartingale_step_coefficient: Decimalprofit_currency: ProfitCurrencystop_loss_type: StopLossTypesafety_order_volume_type: VolumeTypebase_order_volume_type: VolumeTypefrom_currency: SmolStrto_currency: SmolStrcurrent_price: Decimaltake_profit_price: Option<Decimal>stop_loss_price: Option<Decimal>final_profit_percentage: Decimalactual_profit_percentage: Decimalbot_name: Stringaccount_name: Stringusd_final_profit: Decimalactual_profit: Decimalactual_usd_profit: Decimalfailed_message: Option<String>reserved_base_coin: Decimalreserved_second_coin: Decimaltrailing_deviation: Decimaltrailing_max_price: Option<Decimal>Highest price met in case of long deal, lowest price otherwise
tsl_max_price: Option<Decimal>Highest price met in TSL in case of long deal, lowest price otherwise
strategy: StrategyImplementations
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Deal, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Deal, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Deal
impl UnwindSafe for Deal
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more