From 7cd844865661de5509ffda31c040081bc7fa3658 Mon Sep 17 00:00:00 2001 From: Reigo Reinmets Date: Wed, 12 Jan 2022 06:09:06 +0200 Subject: [PATCH] Fix documentation example. --- docs/strategy-callbacks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 1adb06ae7..fb4dc2594 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -642,7 +642,7 @@ class DigDeeperStrategy(IStrategy): return None # Obtain pair dataframe (just to show how to access it) - dataframe, _ = self.dp.get_analyzed_dataframe(pair, self.timeframe) + dataframe, _ = self.dp.get_analyzed_dataframe(trade.pair, self.timeframe) # Only buy when not actively falling price. last_candle = dataframe.iloc[-1].squeeze() previous_candle = dataframe.iloc[-2].squeeze() @@ -662,7 +662,7 @@ class DigDeeperStrategy(IStrategy): if 0 < count_of_buys <= self.max_dca_orders: try: # This returns max stakes for one trade - stake_amount = self.wallets.get_trade_stake_amount(pair, None) + stake_amount = self.wallets.get_trade_stake_amount(trade.pair, None) # This calculates base order size stake_amount = stake_amount / self.max_dca_multiplier # This then calculates current safety order size