From 38e7b0e8aedcb49d0ac154ddd178110244009edf Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 28 Mar 2024 06:55:45 +0100 Subject: [PATCH] Update bot basics logs to align with reality --- docs/bot-basics.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/bot-basics.md b/docs/bot-basics.md index 9fe357297..1c88559c0 100644 --- a/docs/bot-basics.md +++ b/docs/bot-basics.md @@ -33,7 +33,6 @@ For spot pairs, naming will be `base/quote` (e.g. `ETH/USDT`). For futures pairs, naming will be `base/quote:settle` (e.g. `ETH/USDT:USDT`). - ## Bot execution logic Starting freqtrade in dry-run or live mode (using `freqtrade trade`) will start the bot and start the bot iteration loop. @@ -42,8 +41,6 @@ This will also run the `bot_start()` callback. By default, the bot loop runs every few seconds (`internals.process_throttle_secs`) and performs the following actions: * Fetch open trades from persistence. - * Update trades open order state from exchange - * Call `order_filled()` strategy callback for filled orders. * Calculate current list of tradable pairs. * Download OHLCV data for the pairlist including all [informative pairs](strategy-customization.md#get-data-for-non-tradeable-pairs) This step is only executed once per Candle to avoid unnecessary network traffic. @@ -52,10 +49,12 @@ By default, the bot loop runs every few seconds (`internals.process_throttle_sec * Call `populate_indicators()` * Call `populate_entry_trend()` * Call `populate_exit_trend()` -* Check timeouts for open orders. - * Calls `check_entry_timeout()` strategy callback for open entry orders. - * Calls `check_exit_timeout()` strategy callback for open exit orders. - * Calls `adjust_entry_price()` strategy callback for open entry orders. +* Update trades open order state from exchange. + * Call `order_filled()` strategy callback for filled orders. + * Check timeouts for open orders. + * Calls `check_entry_timeout()` strategy callback for open entry orders. + * Calls `check_exit_timeout()` strategy callback for open exit orders. + * Calls `adjust_entry_price()` strategy callback for open entry orders. * Verifies existing positions and eventually places exit orders. * Considers stoploss, ROI and exit-signal, `custom_exit()` and `custom_stoploss()`. * Determine exit-price based on `exit_pricing` configuration setting or by using the `custom_exit_price()` callback.