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: usize

completed safeties (not including manual)

completed_manual_safety_orders_count: usize

completed 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: Strategy

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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