github freqtrade/freqtrade 2021.8

latest releases: 2024.4, 2024.3, 2024.2...
2 years ago

Highlighted changes

  • startup-candles are available for populate_buy_trend() and populate_sell_trend().
  • Addition of buy_tag to classify buys based on the signal used.
  • Informative pairs are now limited to the selected timerange during backtesting.
  • Backtesting now caches informative pairs to speed up backtesting and hyperopt.
  • Support Environment Variables (e.g. export FREQTRADE__EXCHANGE__KEY=<yourExchangeKey>).
  • Hyperopt protections (warning: Configuring protections in the configuration is deprecated as part of this).
  • Add BooleanParameter() - a shorthand for CategoricalParameter([True, False]).
  • New callbacks custom_entry_price() and custom_exit_price() to specify custom order prices.

How to update

As always, you can update your bot using one of the following commands:

docker-compose

docker-compose pull
docker-compose up -d

Installation via setup script

# Deactivate venv and run 
./setup.sh --update

Plain native installation

git pull
pip install -U -r requirements.txt
Expand full changelog
b3a4b0fbd Version bump to 2021.8
2ce458810 rename default_hyperopt_loss file
07d71f014 Rename defaultStrategy file
6d96b1127 Rename DefaultStrategy
df1c0540a Rename Hyperopt Test Class
0d8e105a3 Rename legacystrategy file
58ecb34a6 Allow DefaultHyperopts as hyperopt name
fbf8eb452 Rename test-legacy strategy
1f3ccc258 DefaultStrategy does not need to be limited
c4be52d1c rename execute_sell to execute_trade_exit
63844d39f Rename execute_buy to execute_entry
7fb570cc5 hyperopt Fallback methods should not be used.
68dd34909 Update hyperopt docs regarding protections
3745966c6 Update help-docstring for hyperopt
23d21d8ac Fix wrong message if protection-space is missing
4b36276e4 Improve has_space test
8a9407bac Don't hard-fail when fetch_ticker doesn't return a value
60b476611 Simplify a number of tests by relying on default arguments
345c7ab64 Bump sqlalchemy from 1.4.22 to 1.4.23
90f1845ea Bump prompt-toolkit from 3.0.19 to 3.0.20
0f9bfcf8b Bump types-cachetools from 0.1.10 to 4.2.0
4ee467f85 Bump ccxt from 1.55.20 to 1.55.28
3026583ed Reduce verbosity of "is in blacklist" logging
04b4deab5 Update strategy-advanced.md
56759cea7 Add "high fee rate" blocker to fees from trades
127f470bc .* ADDED
40ad45101 Download-data log process added
695a1e21b Set gate.io download limit to 1000 candles
ba5abb20b Run compat ci for gate.io
dc0b4d07d Fix typo
9951f5107 Update test to ensure direction of movement is correct
d97fc1e48 Update docs/strategy-advanced.md
ffd60f392 add custom price max distance ratio option in configuration.md
9469c6dfa small cosmetic changes in doc related to custom entry and exit exemple
2fb9f6e2f rename custom price max distance option in config, update formula and test associated
acb00cd07 Use realistic threshold for "get_fee" test
6e41add40 Version bump ccxt
4164f9385 Simplify fiat_convert and handle multi-mappings
37e3d2035 Fix no-event-loop available
9758bed25 Fix refresh_latest_ohlcv bug
f47191582 Add test for refresh_latest_ohlcv caching
f08d673a5 add details and exemple of custom_price_max_distance_percent usage in doc
17daba321 add custom_price_max_distance_percent config option in constants
faff40577 fix test_execute_buy In case of custom entry price
3ea4b2ba0 add custom_price_max_distance_percent security to get_valid_price, update tests
0264d77d8 Fix test for fixed typo
f24a951ec fix: typo spelling grammar
4115121c2 Fix missing return statement in is_Relative_to
4b65206e6 Add compat code for is_relative_to
6b2ef36a5 Prevent directory traversal in UI Serving
abddb3ef2 Add test for directory traversal
108a6cb89 Bump pandas from 1.3.1 to 1.3.2
3878e5186 Bump numpy from 1.21.1 to 1.21.2
a10fd6690 Bump plotly from 5.1.0 to 5.2.1
d8607b2ce Bump flake8-tidy-imports from 4.3.0 to 4.4.1
712579324 Bump uvicorn from 0.14.0 to 0.15.0
e7b6a996d Bump mkdocs-material from 7.2.2 to 7.2.4
37d454512 Bump ccxt from 1.54.74 to 1.55.6
dda827658 Update documentation for sell_profit_offset
322ea2481 Add log-message for edge-case
ed6776c5c Fix disappearing pairlist bug
4f10a8852 Reduce verbosity when incompatible pairs are detected
123971d27 Don't change passed in parameter variable
0f7ddabec Slightly reword documentation
bb472ff98 Improve new-exchange documentation
db5a94439 Cleanup GHA node after building images
c7147311f Fix json syntax error in config template
0a6c0c429 add a note concerning default custom entry or exit price in documentation
20cc60bfd update get_valid_price function and test cases to handle inputs with try catch
dbf7f34ec add unit test to function get_valid_price
b098ce4e7 add function get_valid_price to validate type of custom entry or exit price and use default proposed price if invalid
ae11be397 manage None or string value returned by custom_entry_price and add unit test for those cases
e03784d98 Fix filled exception
fad253ad5 Version bump ccxt to 1.54.74
f6267c751 Fix buy_tag not being saved to trade object.
61c076563 Add max-slippage limiting for dry-run orders to avoid insane market order fills
65d025923 add code
039d6384e Stream hyperopt-result in small batches
3f160c714 Cache dataframe before cutting the first candle
cf27968b9 Properly preserve trade's low during backtesting
5bfb9edf0 Only query date once from list
895b912c7 Fix recently introduced lookahead bias in backtesting
a5f796bc9 refactor ohlcvdata_to_dataframe to advise_all_indicators
519c256b8 Fix kucoin typo in index.md as well
927ac24f8 Update README.md
f17942b68 Fix random test failure
5919992ad Bump types-requests from 2.25.1 to 2.25.6
47f641d12 Remove hyperopt-pickle result support
b89a99389 Bump types-filelock from 0.1.4 to 0.1.5
59626b4ff Bump types-tabulate from 0.1.1 to 0.8.2
bad25b753 Bump ccxt from 1.54.24 to 1.54.62
32e8e3b24 Bump types-cachetools from 0.1.9 to 0.1.10
3bd0c3d00 Remove legacy code from export to csv
be240566b Fix random test failure
faf16a64e Remove legacy hyperopt file support
0ae4eccea Refactor Hyperopt-list and hyperopt-show to reduce some duplicate code
7eaadb263 Add custom-* methods to bot-basics
cf70b34ff Add min_value to all volumepairlist samples
5393c55b5 Document min_value for VolumePairList
b9356a556 Autopep8 formatting
0985b1126 add doc for custom exit price
84d082033 fix default retval for strategy custom_entry_price
0aeebc9d5 add test for custom exit price
90c194de1 Align Readme and documentation index in supported exchange lists
eee5f174f update link
cb3b0cf31 add custom_exit_price in interface and freqtradebot
f243ad4af add custom_exit_price in strategy interface
f9f519fd3 add custom_exit_price function to interface
d9b9eecd4 remove entry price reached method
2cf781f3d add freqtradebot execute_buy test in custom entry price case
ad0e4a856 Add BooleanParameter
b73768acd Fix bug in property overwriting prevention
3c4122333 Add test for protections-hyperopt
a661e0db6 Deprecate protections from config
ceed3c663 Document using protections
a6454cfc3 Autoenable protections when protection-space is selected
091bf7c4d Output protection space
544e0da6c Add protection parameter space
800b2eeaf Load protections as part of backtest()
74a5cb3c2 Remove protections from full config
6410a6528 Add missing methods to advanced strategy template
bc3e6deb1 remove specific test for buy with custom entry
b644233ea rename custom_entry_price kwarg to align it to the interface
b3dafb378 remove use_custom_entry_price as a config option
16146357b reuse buy_limit_requested as rate input for custom entry price
42e24d8b4 remove price change cancel reason in contants, will be added in another PR
00939b63f flake 8 fixes
53fb8b05e remove short logic in entry_price_reached function
d9c9b7d7f restore interface test file
3d8c3ffd3 fix syntax error in unit test
5284112b6 fix in custom entry function output,remove changes related to outdated prices, doc exemple minor changes
f11f5d17e add feature custom entry price for live
dfc17f2bd Fix ci failure
4ab03f7e3 Don't load fallback methods for autohyperopt
e70a74200 Reorder space methods in hyperopt
c98164144 Don't fail if strategy doesn't contain sell signal
3c5f06d5c Update tests/exchange/test_exchange.py
b63eda3a2 Some minor cleanup and improved test coverage
3a19e1610 Bump mkdocs-material from 7.2.1 to 7.2.2
7fd3fc98c Bump types-requests from 2.25.0 to 2.25.1
849b8197a Bump scipy from 1.7.0 to 1.7.1
4afcea9a1 Bump fastapi from 0.67.0 to 0.68.0
4f05d31b9 Bump ccxt from 1.53.72 to 1.54.24
b3f057e7c Bump isort from 5.9.2 to 5.9.3
059c32b06 Check for and default to 'None'
056bc93bc backtesting needs startup_candle_count
047df0c21 Removed leverage references
e9ef9a6d2 Use .view() to convert dates to enums
90a61b176 Changed tests in tests/test_persistence.py to use usdt prices
6f8519d0a Add environment variable support
c5e3348b8 Migrations for indexes should run in a seperate session
1ccc89d1e Store fully analyzed dataframe
b1cbc75e9 Properly cache pair dataframe in backtesting (without startup-range).
6abd352c0 Add test for backtesting dataframe cache
ab3c75341 Fix develop_plot building
499af5c42 Update webservermode docs
35bf2a59a Improve test reliability (fix fluky test)
aa34889c0 Don't run migrations twice
25c527ee6  combined exchange.buy and exchange.sell, Adding dummy mock to create_order in tests in test_freqtradebot
34c8a5afa remove second filter, add max option
b7ba2f115 retrigger checks
0fcbe097c remove blankspace
7a0cb95ff fix testcase
b9c2489b7 remove SN
ba0fa1120 revert rename naming
acfaa39e5 revert back test_rpc_api_server
8032257fd revert test_pairlist
aea5da0c7 changes testcase
65fc094c9 add to webhook-config
5fe18be4b add note buy_tag and split 3 assignment for get_signal
dd923c347 Update docs/strategy-advanced.md
65b4705b6 Update docs/strategy-advanced.md
b01daa8bb expose  buy_tag to api
dd809f756 run mypy
643b6b950 run flake8
25e329623 change signature
46f2a20a9 run flake8
235c1afd0 add buy_tag on telegram
f5a660f84 caps BUY_TAG_IDX
49886874a rename to buy_tag
1ea29a918 Fix webserver timerange problem.
db1e67663 retrigger checks
66a707017 run linter
5d04d6ffa fix edge testcase
cbfedf8b2 fix backtest testcase
c558fc0b1 fix feedback
3d8b2d601 fix test persistance
ed30c023c fix some testcase
d31d38a85 add doc
ec526b3f9 fix testcase
7d0400521 add test and migration
104711a9b get_signal signature
9e63bdbac feat: add buy signal name
ab786abf7 Fix intendation.
f70529335  Dataprovider caching and trimming to timerange of historical informative.
365479f5e Remove startup-candles after populating buy/sell signals
8b0a02db8 Correct exception messages
8b485d197 Update Plugins doc
638bed3da Add RangeStabilityFilterMax pairlist filter

Don't miss a new freqtrade release

NewReleases is sending notifications on new releases.