Elffuss BraidHub

kikocis/freqtrade public

develop · 3.3 KiBSourceRawPermalink

Freqtrade basics

This page provides you some basic concepts on how Freqtrade works and operates.

Freqtrade terminology

Fee handling

All profit calculations of Freqtrade include fees. For Backtesting / Hyperopt / Dry-run modes, the exchange default fee is used (lowest tier on the exchange). For live operations, fees are used as applied by the exchange (this includes BNB rebates etc.).

Bot execution logic

Starting freqtrade in dry-run or live mode (using freqtrade trade) will start the bot and start the bot iteration loop. By default, loop runs every few seconds (internals.process_throttle_secs) and does roughly the following in the following sequence:

This loop will be repeated again and again until the bot is stopped.

Backtesting / Hyperopt execution logic

backtesting or hyperopt do only part of the above logic, since most of the trading operations are fully simulated.

!!! Note Both Backtesting and Hyperopt include exchange default Fees in the calculation. Custom fees can be passed to backtesting / hyperopt by specifying the --fee argument.