Commit Graph

2001 Commits

Author SHA1 Message Date
Matthias e1c3b7fd8c Merge branch 'develop' into feat/short 2021-08-25 20:31:40 +02:00
Matthias 4b36276e4f Improve has_space test 2021-08-25 19:54:26 +02:00
Matthias 8a9407bac9 Don't hard-fail when fetch_ticker doesn't return a value
closes #5477
2021-08-25 07:13:59 +02:00
Matthias f4242106d9 Merge branch 'develop' into feat/short 2021-08-24 20:53:21 +02:00
Matthias 60b476611c Simplify a number of tests by relying on default arguments 2021-08-24 20:51:59 +02:00
Matthias 957551ea97 Merge branch 'develop' into feat/short 2021-08-24 06:25:06 +02:00
Masoud Azizi 127f470bc3 .* ADDED 2021-08-20 19:29:33 +02:00
Masoud Azizi 40ad451019 Download-data log process added
Download-data log process added

pytest assert solved
2021-08-20 14:52:56 +00:00
Matthias ba5abb20bd Run compat ci for gate.io 2021-08-20 06:30:27 +02:00
Sam Germain e2d5299116 Name changes for strategy 2021-08-18 13:22:54 -06:00
Matthias f7087feeb1
Merge pull request #5347 from Axel-CH/custom_order_price
Custom order price
2021-08-18 20:59:40 +02:00
Matthias 9951f51079 Update test to ensure direction of movement is correct 2021-08-18 20:24:19 +02:00
axel 2fb9f6e2f4 rename custom price max distance option in config, update formula and test associated 2021-08-18 05:07:37 -04:00
Matthias acb00cd072 Use realistic threshold for "get_fee" test 2021-08-18 06:25:52 +02:00
Matthias 4164f93853 Simplify fiat_convert and handle multi-mappings 2021-08-17 20:50:52 +02:00
Matthias f471915828 Add test for refresh_latest_ohlcv caching 2021-08-17 06:44:36 +02:00
axel 6ab99369f2 Merge branch 'develop' of https://github.com/freqtrade/freqtrade into custom_order_price 2021-08-16 23:26:29 -04:00
axel faff40577a fix test_execute_buy In case of custom entry price 2021-08-16 15:33:05 -04:00
axel 3ea4b2ba00 add custom_price_max_distance_percent security to get_valid_price, update tests 2021-08-16 15:18:57 -04:00
Matthias 0264d77d86 Fix test for fixed typo 2021-08-16 20:02:25 +02:00
slowy07 f24a951ec5 fix: typo spelling grammar 2021-08-16 19:16:24 +07:00
Matthias 6b2ef36a56 Prevent directory traversal in UI Serving
Checking for directory base

closes #5427
2021-08-16 06:47:53 +02:00
Matthias abddb3ef25 Add test for directory traversal 2021-08-16 06:45:23 +02:00
Matthias fa4ec9f83e Add explicit test for get_sell_trade_entry 2021-08-15 14:52:24 +02:00
Matthias 3406b889b6 First test 2021-08-14 17:06:28 +02:00
Matthias c456cfc312 Merge branch 'develop' into pr/Axel-CH/5347 2021-08-14 09:13:30 +02:00
axel 20cc60bfde update get_valid_price function and test cases to handle inputs with try catch 2021-08-13 11:06:15 -04:00
axel dbf7f34ecb add unit test to function get_valid_price 2021-08-12 15:30:49 -04:00
axel ae11be3970 manage None or string value returned by custom_entry_price and add unit test for those cases 2021-08-12 14:47:01 -04:00
Matthias e03784d98d Fix filled exception
closes #5404
2021-08-12 05:02:56 +00:00
Matthias bfc3968ab3
Merge pull request #5400 from freqtrade/limit_dry_market_slippage
Add max-slippage limiting for dry-run orders to avoid insane market o…
2021-08-12 06:54:55 +02:00
Rokas Kupstys f6267c7514 Fix buy_tag not being saved to trade object.
Column is mistakenly excluded because advise_buy() creating this column runs after code detecting presence of buy_tag column.
2021-08-11 15:21:23 +03:00
Matthias 61c076563f Add max-slippage limiting for dry-run orders to avoid insane market order fills 2021-08-11 12:11:29 +02:00
Matthias 0b6aedbc4c
Merge pull request #5395 from freqtrade/fix/hyperopt-show
Stream hyperopt-result in small batches
2021-08-10 19:54:02 +02:00
Matthias 039d6384ed Stream hyperopt-result in small batches
Avoiding memory-exhaustion on huge hyperopt results

closes #5305
closes #5149
2021-08-10 10:12:57 +02:00
Matthias 3f160c7144 Cache dataframe before cutting the first candle
This allows providing the "current closed" candle in all cases.
2021-08-10 09:14:29 +02:00
Matthias cf27968b97 Properly preserve trade's low during backtesting 2021-08-09 19:38:56 +02:00
Matthias 895b912c71 Fix recently introduced lookahead bias in backtesting
closes #5388
2021-08-09 14:54:47 +02:00
Matthias a5f796bc97 refactor ohlcvdata_to_dataframe to advise_all_indicators 2021-08-09 14:53:18 +02:00
Matthias 599ae15460 Parametrize tests 2021-08-09 11:35:27 +02:00
Matthias f17942b68f Fix random test failure 2021-08-09 11:18:18 +02:00
Sam Germain de4b0d1f7c Merged with feat/short 2021-08-09 00:24:25 -06:00
Sam Germain 06206335d9 Added tests for interest_function 2021-08-09 00:00:50 -06:00
Matthias 47f641d12f Remove hyperopt-pickle result support 2021-08-09 07:04:18 +02:00
Sam Germain 8e941e6836 Changed interest implementation 2021-08-08 17:09:17 -06:00
Sam Germain 0545a0ed3c Replaced the term margin with leverage when it should say leverage 2021-08-08 17:04:24 -06:00
Matthias 756112c84d
Merge pull request #5374 from freqtrade/rem_legacy_hyperopt
Remove legacy hyperopt
2021-08-08 12:42:52 +02:00
Matthias be240566ba Fix random test failure 2021-08-08 10:57:20 +02:00
Matthias faf16a64e5 Remove legacy hyperopt file support 2021-08-08 10:22:45 +02:00
Matthias 92ed7c0bf8 Merge branch 'develop' into feat/short 2021-08-07 09:42:25 +02:00
Matthias 6532aba765
Merge pull request #5360 from freqtrade/hyperopt_protections
Hyperopt protections and Boolean parameter
2021-08-07 09:42:05 +02:00
Sam Germain b9356a5564 Autopep8 formatting 2021-08-06 16:35:39 -06:00
axel 0aeebc9d53 add test for custom exit price 2021-08-05 17:57:45 -04:00
axel 2cf781f3dd add freqtradebot execute_buy test in custom entry price case 2021-08-04 18:32:39 -04:00
Matthias ad0e4a8567 Add BooleanParameter 2021-08-04 20:52:56 +02:00
Matthias b73768acd1 Fix bug in property overwriting prevention 2021-08-04 20:21:56 +02:00
Matthias 3c41223333 Add test for protections-hyperopt 2021-08-04 20:01:28 +02:00
Matthias a661e0db6e Deprecate protections from config 2021-08-04 19:43:16 +02:00
Matthias 091bf7c4d2 Output protection space 2021-08-04 06:50:14 +02:00
axel bc3e6deb1c remove specific test for buy with custom entry 2021-08-03 17:09:52 -04:00
axel b3dafb378e remove use_custom_entry_price as a config option 2021-08-03 16:54:28 -04:00
axel 00939b63f2 flake 8 fixes 2021-08-03 16:25:18 -04:00
axel d9c9b7d7fc restore interface test file 2021-08-03 16:02:10 -04:00
axel 3d8c3ffd38 fix syntax error in unit test 2021-08-03 15:57:23 -04:00
axel f11f5d17e9 add feature custom entry price for live 2021-08-03 15:57:23 -04:00
Sam Germain d88e2ae603 Merge branch 'develop' into margin-db 2021-08-02 23:58:44 -06:00
Matthias adb33e763b
Merge pull request #5350 from freqtrade/environment_vars
Add environment variable support
2021-08-02 20:48:23 +02:00
Matthias c981641441 Don't fail if strategy doesn't contain sell signal 2021-08-02 20:30:46 +02:00
Matthias d8d8261f1b
Merge pull request #5318 from samgermain/combined_exchange_buy_sell
combined exchange.buy and exchange.sell
2021-08-02 20:11:09 +02:00
Matthias 3c5f06d5c0
Update tests/exchange/test_exchange.py 2021-08-02 08:31:33 +02:00
Matthias 5ead95b06b
Merge pull request #5245 from sauces1313/RangeStabilityFilterMax
Range stability filter max
2021-08-02 08:06:36 +02:00
Matthias b63eda3a2b Some minor cleanup and improved test coverage 2021-08-02 07:15:09 +02:00
Sam Germain 047df0c212 Removed leverage references 2021-08-01 03:01:47 -06:00
Sam Germain 90a61b1765 Changed tests in tests/test_persistence.py to use usdt prices 2021-07-31 20:44:49 -06:00
Matthias 6f8519d0a3 Add environment variable support 2021-07-31 19:26:56 +02:00
Matthias c5e3348b89 Migrations for indexes should run in a seperate session
closes #5349
2021-07-31 16:36:28 +02:00
Sam Germain bc42516f68 test_update_limit_order has both a buy and sell leverage short order 2021-07-31 01:05:37 -06:00
Matthias 6abd352c0f Add test for backtesting dataframe cache 2021-07-31 08:44:09 +02:00
Sam Germain 26be620f71 Removed LocalTrade.set_is_short 2021-07-31 00:20:25 -06:00
Sam Germain fadb0de7c7 Removed excess modes stop_loss method, removed models.is_opening_side models.is_closing_side 2021-07-31 00:12:53 -06:00
Matthias 35bf2a59a8 Improve test reliability (fix fluky test) 2021-07-30 21:02:55 +02:00
Matthias 138b126d03
Merge pull request #5299 from kevinjulian/feat/kevinjulian/add-buy-signal-name
Add buy signal name
2021-07-30 08:23:11 +02:00
Matthias 71838dc51a
Merge pull request #5285 from freqtrade/backtest_startup_afte_populates
Remove startup-candles after populating buy/sell signals
2021-07-30 07:01:26 +02:00
Matthias cf4d1875dd Use prohibitedIn instead of isRestricted 2021-07-29 06:56:37 +02:00
Sam Germain 25c527ee67 combined exchange.buy and exchange.sell, Adding dummy mock to create_order in tests in test_freqtradebot 2021-07-28 14:55:06 -06:00
Sam Germain 3fb7f983f8 Added is_short and leverage to __repr__ 2021-07-28 12:25:56 -06:00
Sam Germain 195badeb80 Changed liquidation_price to isolated_liq 2021-07-28 12:25:56 -06:00
Sam Germain 6ad9b535a9 persistence all to one test file, use more regular values like 2.0 for persistence tests 2021-07-28 12:25:56 -06:00
Sam Germain a900570f1a Added enter_side and exit_side computed variables to persistence 2021-07-28 12:25:56 -06:00
Sam Germain b801eaaa54 Changed the name of a test to match it's equivelent
Removed test-analysis-lev
2021-07-28 12:25:56 -06:00
Sam Germain af8875574c updated mkdocs and leverage docs
Added tests for set_liquidation_price and set_stop_loss
updated params in interestmode enum
2021-07-28 12:25:56 -06:00
Sam Germain 256160740e Updated interest and ratio calculations to correct functions 2021-07-28 12:25:56 -06:00
Sam Germain 8e52a3a29c updated ratio_calc_profit function 2021-07-28 12:25:55 -06:00
Sam Germain b0476ebd3e All persistence margin tests pass
Flake8 compliant, passed mypy, ran isort .
2021-07-28 12:25:55 -06:00
Sam Germain 60572c9e0d Took liquidation price out of order completely 2021-07-28 12:25:55 -06:00
Sam Germain 0fc9d6b6ac Moved leverage and is_short variables out of trade constructors and into conftest 2021-07-28 12:25:55 -06:00
Sam Germain b7b6d87c27 Pass all but one test, because sqalchemy messes up 2021-07-28 12:25:55 -06:00
Sam Germain b1098f0120 Added liquidation_price check to test_stoploss_reinitialization_short 2021-07-28 12:25:55 -06:00
Sam Germain 811cea288d Added checks for making sure stop_loss doesn't go below liquidation_price 2021-07-28 12:25:55 -06:00
Sam Germain 0bd71f87d0 made leveraged test names unique
test_adjust_stop_loss_short, test_update_market_order_shortpasses
2021-07-28 12:25:55 -06:00