From 357d7714ec9fa6da153c3ca1d87599ea2adc7419 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 21 Aug 2020 07:31:22 +0200 Subject: [PATCH] Add docstring to update_trade_state --- freqtrade/freqtradebot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 3305bb584..4a660d867 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -1312,6 +1312,11 @@ class FreqtradeBot: """ Checks trades with open orders and updates the amount if necessary Handles closing both buy and sell orders. + :param trade: Trade object of the trade we're analyzing + :param order_id: Order-id of the order we're analyzing + :param action_order: Already aquired order object + :param order_amount: Order-amount - only used in case of partially cancelled buy order + TODO: Investigate if this is really needed, or covered by getting filled in here again. :return: True if order has been cancelled without being filled partially, False otherwise """ if not order_id: