List of things TODO to add margin trading Files to edit freqtrade/freqtradebot.py freqtrade/wallets.py freqtrade/data/btanalysis.py configuration freqtrade/commands/deploy_commands.py freqtrade/commands/arguments.py freqtrade/strategy freqtrade/constants.py Tests tests/test_persistence.pys init with lev & bor lev bor neither lev nor bor adjust_stop_loss short leverage is_opening_trade short long shortBuy longSell is_closing_trade short long shortBuy longSell update, close, update fee possible to test? calc_profit * * create a few shorts, a few leveraged longs test correct ratio calc_profit_ratio * create a few shorts, a few leveraged longs test correct ratio get_open_trades * create a short, check if exists tests/test_freqtradebot.py later freqtrade/commands/build_config_commands.py freqtrade/commands/cli_options.py freqtrade/commands/list_commands.py freqtrade/commands/hyperopt_commands.py config_binance.json.example config_kraken.json.example freqtrade/enums/selltype.py Did not look at these files freqtrade/plot/plotting.py freqtrade/plugins freqtrade/resolvers/strategy_resolver.py freqtrade/rpc Already Edited freqtrade/persistence/migrations.py freqtrade/persistence/models.py