From 07f0e3803ab456b6e0f36d903b9761162b81d7b4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 5 Nov 2024 07:19:39 +0100 Subject: [PATCH] docs: add stake_amount_filled documentation --- docs/strategy-callbacks.md | 2 +- docs/trade-object.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 6ba225007..a158a80ff 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -890,7 +890,7 @@ class DigDeeperStrategy(IStrategy): # Hope you have a deep wallet! try: # This returns first order stake size - stake_amount = filled_entries[0].stake_amount + stake_amount = filled_entries[0].stake_amount_filled # This then calculates current safety order size stake_amount = stake_amount * (1 + (count_of_entries * 0.25)) return stake_amount, "1/3rd_increase" diff --git a/docs/trade-object.md b/docs/trade-object.md index 7434b826d..8a6e3b1a7 100644 --- a/docs/trade-object.md +++ b/docs/trade-object.md @@ -143,6 +143,7 @@ Most properties here can be None as they are dependent on the exchange response. | `remaining` | float | Remaining amount | | `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.*) | | `stake_amount` | float | Stake amount used for this order. *Added in 2023.7.* | +| `stake_amount_filled` | float | Filled Stake amount used for this order. *Added in 2024.11.* | | `order_date` | datetime | Order creation date **use `order_date_utc` instead** | | `order_date_utc` | datetime | Order creation date (in UTC) | | `order_fill_date` | datetime | Order fill date **use `order_fill_utc` instead** |