From 7c7b0d1fcce15a4b622c01b9bb7bacb86cb2c1c9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 7 Mar 2022 20:10:54 +0100 Subject: [PATCH] Update documentation for time_in_force migration --- docs/strategy_migration.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/strategy_migration.md b/docs/strategy_migration.md index 71225b84f..422dceff5 100644 --- a/docs/strategy_migration.md +++ b/docs/strategy_migration.md @@ -22,6 +22,8 @@ If you intend on using markets other than spot markets, please migrate your stra * `@informative` decorator now takes an optional `candle_type` argument * helper methods `stoploss_from_open` and `stoploss_from_absolute` now take `is_short` as additional argument. * `INTERFACE_VERSION` should be set to 3. +* Strategy/Configuration settings + * `time_in_force` buy -> entry, sell -> exit ## Extensive explanation @@ -166,3 +168,22 @@ This should be given the value of `trade.is_short`. ``` +### Strategy/Configuration settings + +#### `order_time_in_force` + +`order_time_in_force` attributes changed from `"buy"` to `"entry"` and `"sell"` to `"exit"`. + +``` python + order_time_in_force: Dict = { + "buy": "gtc", + "sell": "gtc", + } +``` + +``` python hl_lines="2 3" + order_time_in_force: Dict = { + "entry": "gtc", + "exit": "gtc", + } +```