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
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,15 +134,17 @@ Most properties here can be None as they are dependent on the exchange response.
134
134
|------------|-------------|-------------|
135
135
|`trade`| Trade | Trade object this order is attached to |
136
136
|`ft_pair`| string | Pair this order is for |
137
-
|`ft_is_open`| boolean | is the order filled? |
137
+
|`ft_is_open`| boolean | is the order still open? |
138
138
|`order_type`| string | Order type as defined on the exchange - usually market, limit or stoploss |
139
-
|`status`| string | Status as defined by ccxt. Usually open, closed, expiredor canceled|
140
-
|`side`| string |Buy or Sell|
139
+
|`status`| string | Status as defined by [ccxt's order structure](https://docs.ccxt.com/#/README?id=order-structure). Usually open, closed, expired, canceled or rejected|
140
+
|`side`| string |buy or sell|
141
141
|`price`| float | Price the order was placed at |
142
142
|`average`| float | Average price the order filled at |
143
143
|`amount`| float | Amount in base currency |
144
-
|`filled`| float | Filled amount (in base currency) |
145
-
|`remaining`| float | Remaining amount |
144
+
|`filled`| float | Filled amount (in base currency) (use `safe_filled` instead) |
145
+
|`safe_filled`| float | Filled amount (in base currency) - guaranteed to not be None |
|`safe_remaining`| float | Remaining amount - either taken from the exchange or calculated. |
146
148
|`cost`| float | Cost of the order - usually average * filled (*Exchange dependent on futures, may contain the cost with or without leverage and may be in contracts.*) |
147
149
|`stake_amount`| float | Stake amount used for this order. *Added in 2023.7.*|
148
150
|`stake_amount_filled`| float | Filled Stake amount used for this order. *Added in 2024.11.*|
0 commit comments