You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/trade-object.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@ The following attributes / properties are available for each individual trade -
23
23
|`open_trade_value`| float | Value of the open trade including fees. |
24
24
|`close_rate`| float | Close rate - only set when is_open = False. |
25
25
|`close_rate_requested`| float | The close rate that was requested. |
26
-
|`safe_close_rate`| float | Close rate or close_rate_requested or 0.0 if neither is available. |
26
+
|`safe_close_rate`| float | Close rate or `close_rate_requested` or 0.0 if neither is available. Only makes sense once the trade is closed. |
27
27
|`stake_amount`| float | Amount in Stake (or Quote) currency. |
28
-
|`max_stake_amount`| float | Maximum stake amount that was used in this trade (including DCA orders). |
28
+
|`max_stake_amount`| float | Maximum stake amount that was used in this trade (sum of all filled Entry orders). |
29
29
|`amount`| float | Amount in Asset / Base currency that is currently owned. Will be 0.0 until the initial order fills. |
30
-
|`amount_requested`| float | Amount that was originally requested for this trade in the first entry order. |
30
+
|`amount_requested`| float | Amount that was originally requested for this trade as part of the first entry order. |
31
31
|`open_date`| datetime | Timestamp when trade was opened **use `open_date_utc` instead**|
32
32
|`open_date_utc`| datetime | Timestamp when trade was opened - in UTC. |
33
33
|`close_date`| datetime | Timestamp when trade was closed **use `close_date_utc` instead**|
@@ -68,8 +68,7 @@ The following attributes / properties are available for each individual trade -
68
68
|`stop_loss_pct`| float | Relative value of the stop loss. |
69
69
|`initial_stop_loss`| float | Absolute value of the initial stop loss. |
70
70
|`initial_stop_loss_pct`| float | Relative value of the initial stop loss. |
71
-
|`is_stop_loss_trailing`| boolean | True if the stop loss is trailing. |
72
-
|`stoploss_last_update_utc`| datetime | Timestamp of the last stoploss update. |
71
+
|`stoploss_last_update_utc`| datetime | Timestamp of the last stoploss on exchange order update. |
73
72
|`stoploss_or_liquidation`| float | Returns the more restrictive of stoploss or liquidation price and corresponds to the price a stoploss would trigger at. |
0 commit comments