Commit Graph

1856 Commits

Author SHA1 Message Date
Matthias
9d4ecb625a Allow numpy numbers as comparisons, too 2020-08-26 07:16:29 +02:00
Matthias
21f4aba4e3
Merge pull request #3055 from yazeed/verify_date_on_new_candle_on_get_signal
Verify date on last candle before producing signal
2020-08-25 20:22:48 +02:00
Matthias
605ed90567
Merge pull request #3592 from freqtrade/stoploss_distance
Add stoploss-distance (to current price) to /status output
2020-08-25 19:56:23 +02:00
Matthias
c272944834 Lock pair until a new candle arrives 2020-08-24 11:09:09 +02:00
Matthias
8b767eedfd Merge branch 'develop' into pr/yazeed/3055 2020-08-24 07:21:48 +02:00
Matthias
311b55fc24 Merge branch 'develop' into db_keep_orders 2020-08-23 19:31:59 +02:00
Matthias
a55dd8444d Fix loglevel of using_cached-rate 2020-08-23 19:31:35 +02:00
Matthias
4ecb67d1d1 Merge branch 'develop' into db_keep_orders 2020-08-23 10:36:56 +02:00
Matthias
674b510d23 Parametrize fetch_order retry counts 2020-08-22 17:35:42 +02:00
Matthias
f2b390a271 Add fetch_order_or_stoploss wrapper 2020-08-22 09:28:36 +02:00
Matthias
fc42d552ab Convert logs to fstrings 2020-08-22 08:59:50 +02:00
Matthias
0b6014fae3 update_trade_state should take the order id directly - not from the trade object 2020-08-21 07:17:52 +02:00
Matthias
838985f6a0 Don't reset open-order-id just yet
it's needed to get the fees
2020-08-21 07:13:13 +02:00
Matthias
4f1179d85c Test for empty case 2020-08-20 20:11:58 +02:00
Matthias
42273ae042
Merge pull request #3695 from freqtrade/fix_daily_rpc
Fix daily rpc for webservice
2020-08-19 14:16:24 +02:00
Matthias
3d515ed5bf
Merge pull request #3558 from freqtrade/bt_add_maxdrawdown
Revise backtesting export format, add some metrics
2020-08-19 06:39:47 +02:00
Matthias
e206cc9c21 Adjust tests 2020-08-18 20:15:41 +02:00
Matthias
4eb17b4daf Remove unneeded function 2020-08-18 15:20:37 +02:00
Matthias
1f153f51ee
Merge pull request #3660 from freqtrade/hyperopt_default_tests
Move DefaultHyperopt to tests
2020-08-17 06:49:55 +02:00
Matthias
56ca37fd8b Also provide stacktrace via log endpoints 2020-08-15 20:15:02 +02:00
Matthias
142f87b68c Adjust tests to new wordings 2020-08-15 09:11:46 +02:00
Matthias
1cb10d8f8e Merge branch 'develop' into pr/hroff-1902/3619 2020-08-15 09:08:59 +02:00
Matthias
89b9a8cb1f
Merge pull request #3396 from freqtrade/fix/broken_getpairs
Use dict for symbol_is_pair
2020-08-15 08:58:53 +02:00
Matthias
f3d4b114bb Skip windows test failure 2020-08-15 08:47:09 +02:00
Matthias
9659e516c8 Remove queue import
Improve tests
2020-08-14 20:35:15 +02:00
Matthias
c4f78203ab Initialize streamhandler early to have it apply to all logs 2020-08-14 20:08:55 +02:00
Matthias
251eb5aa96 Test for bufferingHandler too 2020-08-14 19:51:50 +02:00
Matthias
122c0e8ddc Readd accidentally dropped StreamHandler 2020-08-14 19:50:56 +02:00
Matthias
9ad8e74247 Add tests for log-endpoints 2020-08-14 19:41:27 +02:00
Matthias
5f79caa307 Implement /logs endpoints in telegram and restAPI 2020-08-14 15:44:36 +02:00
Matthias
1a305ea8b0 Fix migrations to use unique key 2020-08-14 09:52:46 +02:00
Matthias
2ca6547baf Update tests to have unique ordernumbers 2020-08-14 09:52:46 +02:00
Matthias
ebd755e36a Improve order handling 2020-08-14 09:52:46 +02:00
Matthias
0af9e913d4 Timestamps are in ms 2020-08-14 09:52:46 +02:00
Matthias
73182bb2dd Update migrations to populate Orders table for open orders 2020-08-14 09:52:46 +02:00
Matthias
4924d8487e Extract "update order from ccxt" to it's onw function 2020-08-14 09:52:46 +02:00
Matthias
ee7b235cdc Improve tests to use open_order mock where applicable 2020-08-14 09:52:46 +02:00
Matthias
420a8c2b1c Improve tests for rpc/forcebuy 2020-08-14 09:52:46 +02:00
Matthias
a66a3d047f Remove unneeded mocks 2020-08-14 09:52:46 +02:00
Matthias
044df880e6 Move persistence into it's own submodule 2020-08-14 09:52:46 +02:00
Matthias
93717cfef1
Merge pull request #3008 from yazeed/more_info_hyperopt_fixed
Wins/draws/losses/median profit in hyperopt output
2020-08-14 09:25:12 +02:00
Matthias
b98107375e Improve formatting of result string to be a bit conciser 2020-08-14 07:31:14 +02:00
Matthias
d76ee43246 Show wins / draws / losses in hyperopt table 2020-08-14 07:14:10 +02:00
Matthias
22f6e884ed
Merge pull request #3676 from freqtrade/stoploss_remove_unused_argument
[minor] Cleanup and exception hierarchy documentation
2020-08-14 07:11:56 +02:00
Matthias
05bd099f51 Merge branch 'develop' into pr/yazeed/3008 2020-08-14 06:58:09 +02:00
Matthias
e45e41adb4 Improve docs test to catch !!! errors 2020-08-13 08:05:05 +02:00
Matthias
c6741ea6c3 Merge branch 'develop' into fix/broken_getpairs 2020-08-12 20:13:06 +02:00
Matthias
3afd5b631e Remove erroneous import 2020-08-12 15:34:29 +02:00
Matthias
9999d0ffb5 Merge branch 'develop' into fix/3579 2020-08-12 15:28:51 +02:00
Matthias
faa2bbb555 Document exception hierarchy 2020-08-12 14:29:14 +02:00
Matthias
1f1a819b29 Remove unused 3rd argument to create_stoploss call 2020-08-12 11:21:00 +02:00
Matthias
f51c03aa86 Revert changes to color using --no-color 2020-08-11 20:29:47 +02:00
Matthias
77541935a8 Fix small merge mistake 2020-08-11 20:18:49 +02:00
Matthias
688d657fe2 Merge branch 'develop' into pr/yazeed/3091 2020-08-11 20:04:43 +02:00
Matthias
064928a0eb Merge branch 'develop' into improve_cancel_order_handling 2020-08-11 15:25:47 +02:00
Matthias
2663aede24 Update test to reflect new column naming 2020-08-09 10:28:11 +02:00
Matthias
b576e1d463 Merge branch 'develop' into bt_add_maxdrawdown 2020-08-09 10:25:57 +02:00
Matthias
87e4a82041 Merge branch 'develop' into bt_add_maxdrawdown 2020-08-09 08:34:36 +02:00
Matthias
3670be5dd2
Merge pull request #3641 from freqtrade/fix/edgeremovebumps
Fix edge with removebumps enabled
2020-08-08 17:33:08 +02:00
Matthias
d01070dba8 Increase coverage of edge_cli 2020-08-06 09:22:41 +02:00
Matthias
59370672b8 Fix more tests 2020-08-06 09:00:28 +02:00
Matthias
081625c5dc Have hyperopt tests use new hyperopt location 2020-08-06 08:51:01 +02:00
Matthias
8b6d10daf1 Move DefaultHyperopt to test folder (aligned to strategy) 2020-08-06 08:50:41 +02:00
Matthias
075c73b9e3 Improve formatting of telegram message 2020-08-04 19:56:49 +02:00
Matthias
817f5289db /delete should Cancel open orders (and stoploss orders) 2020-08-04 19:43:22 +02:00
Matthias
9163c7f3d3 Improve api response 2020-08-04 19:43:05 +02:00
Matthias
4b0164770c Add test for /delete 2020-08-04 14:49:59 +02:00
Matthias
26c7341b7d Add test for api-server DELETE trade 2020-08-04 14:41:38 +02:00
Matthias
c0083c4244 Merge branch 'develop' into pr/thopd88/3611 2020-08-04 07:00:54 +02:00
Matthias
a33346c6b6 Fix testing errors - which surfaced with pytest 6.0.1 2020-08-03 19:22:07 +02:00
Matthias
3915101d2d Add more backoff to fetch_order endpoint 2020-08-02 10:32:17 +02:00
Matthias
6c77feee85 Improve some exchange logs 2020-08-02 10:18:19 +02:00
Matthias
99bfa839eb Improve logging for sell exception 2020-08-02 10:12:15 +02:00
Matthias
071e82043a Better handle cancelled buy orders 2020-08-01 15:59:50 +02:00
Matthias
14cb29aae1 Add test for remove_pumps in edge 2020-07-28 08:16:55 +02:00
Matthias
db8f3a9e9b
Merge pull request #3609 from thopd88/develop
Add telegram /trades command
2020-07-25 16:45:09 +02:00
Matthias
edb582e522 Add more tests 2020-07-24 20:40:07 +02:00
Matthias
ae1c99bdd0 more tests 2020-07-24 20:36:30 +02:00
Matthias
ed33d4781d Add more hdf5 tests 2020-07-24 20:19:34 +02:00
Matthias
d9b339ee18 Add some more tests for hdf5 2020-07-24 20:09:59 +02:00
Matthias
0a28818b46 Add some tests for hdf5 2020-07-24 19:37:37 +02:00
Matthias
e26e658f99 Improve a few tests 2020-07-24 19:33:27 +02:00
Matthias
6a0c84b649 Add tests for hdf5 2020-07-24 19:23:56 +02:00
Matthias
fdc84eef59 /trades shall only return closed trades 2020-07-23 07:50:45 +02:00
Matthias
8300eb59d4 Extend create_mock_trades to create 4 trades
2 closed, and 2 open trades
2020-07-23 07:50:28 +02:00
Matthias
0f18b2a0d4 Add test and fix case where no trades were closed yet 2020-07-23 07:12:14 +02:00
hroff-1902
f48250b414 Make flake happy 2020-07-22 22:56:24 +03:00
hroff-1902
50767cd569 Adjust tests for AgeFilter 2020-07-22 22:48:29 +03:00
hroff-1902
5c2481082e Add tests for PriceFilter 2020-07-22 22:46:30 +03:00
Matthias
7e980037a4
Merge pull request #3554 from jblestang/Fix_#3544
Adding a dataprovider to the strategy before plotting
2020-07-22 15:56:16 +02:00
Matthias
f5f529cace Use correct initialization of DataProvider 2020-07-22 15:17:45 +02:00
Matthias
939f91734f Test confirming 0 division ... 2020-07-21 20:34:19 +02:00
Matthias
21dcef1134 Add trade_id to webhooks
allowing for easier corelation of different messages
2020-07-20 19:57:05 +02:00
Matthias
4c97527b04 FIx failing test 2020-07-20 19:11:15 +02:00
hroff-1902
b7c6f868b2
Merge pull request #3478 from hroff-1902/exchange-cosmetics-5
Minor: Exchange cosmetics
2020-07-20 18:58:46 +03:00
Matthias
ea1ddeb87d
Merge pull request #3570 from gambcl/develop
Added range checks to min_days_listed in AgeFilter
2020-07-19 09:37:17 +02:00
Matthias
de46744aa9 Use filled before amount for order data
closes #3579
2020-07-15 21:08:16 +02:00
Matthias
98f2e79f27 Adjust tests to use correctly trimmed amount 2020-07-15 20:55:33 +02:00
Matthias
c1c018d8fe Fix tests that require amount_requested 2020-07-15 20:27:00 +02:00
Matthias
c826f7a707 Add amount_requested to database 2020-07-15 20:15:29 +02:00
Matthias
d13cb4c055 Introduce safe_value_fallback_2 2020-07-15 19:50:09 +02:00
Matthias
5cebc9f39d Move stoploss_on_exchange_limit_ratio to configuration schema 2020-07-15 19:28:40 +02:00
Matthias
c1191400a4 Allow 0 fee value by correctly checking for None 2020-07-15 19:20:20 +02:00
gambcl
1051ab917a Replaced logging with OperationalException when AgeFilter given invalid parameters 2020-07-15 12:40:54 +01:00
Matthias
82c68f07cd Add stoploss-distance (to current price) to /status output 2020-07-14 20:16:18 +02:00
hroff-1902
0f4fc67b83
Merge pull request #3582 from freqtrade/data/list
List available backtesting data
2020-07-14 19:38:32 +03:00
Matthias
62c55b1863 Enhance formatting, Add pair filter 2020-07-14 06:55:34 +02:00
Matthias
01f325a9e4 Send timeframe min and ms in show_config response 2020-07-13 21:15:33 +02:00
Matthias
6ee6e51ab4 Merge branch 'develop' into pr/hroff-1902/3478 2020-07-13 07:22:43 +02:00
Matthias
5bb81abce2 Add test for start_list_data 2020-07-12 10:01:51 +02:00
Matthias
d4fc52d2d5 Add tests for ohlcv_get_available_data 2020-07-12 09:56:46 +02:00
Matthias
40bdc93653 Add test for short_desc of priceFilter 2020-07-10 20:28:29 +02:00
gambcl
14eab9be04 Added min_price, max_price to PriceFilter 2020-07-08 22:02:04 +01:00
gambcl
091285ba43 Fix flake8 error in test_pairlist.py 2020-07-08 18:32:14 +01:00
gambcl
2e45859aef Added range checks to min_days_listed in AgeFilter 2020-07-08 18:06:30 +01:00
hroff-1902
839b3340e6
Merge pull request #3497 from freqtrade/keep_dataframe_noapi
Analyze dataframe and keep it until the next analysis
2020-07-05 13:46:02 +03:00
Matthias
0d15a87af8 Remove old store_backtest method 2020-07-03 20:21:32 +02:00
Matthias
523437d970 Add tst for daily stats 2020-07-03 20:03:33 +02:00
Matthias
d999fa2a7e Test autogetting result filename 2020-07-03 06:58:27 +02:00
Matthias
2ed808da1f Extract .last_result.json to constant 2020-07-03 06:58:27 +02:00
Matthias
59e0ca0aaa Add pairlist to backtest-result 2020-07-03 06:58:27 +02:00
Matthias
59ac4b9c9a Test writing statistics 2020-07-03 06:58:27 +02:00
Matthias
5b1a7ba00f Test multistrat loading 2020-07-03 06:58:27 +02:00
Matthias
f952f74bf1 Add test for new format 2020-07-03 06:58:27 +02:00
Matthias
573502d972 Update test for load_trades_from_db 2020-07-03 06:58:27 +02:00
Matthias
afefe92523 Add multi-strategy loading logic 2020-07-03 06:58:27 +02:00
Matthias
1339479882 Have sell_type stringify correctly 2020-07-03 06:58:27 +02:00
Matthias
04eaf2c39c Add test for get_last_backtest_Result 2020-07-03 06:58:27 +02:00
Matthias
7727292861 Rename duration to trade_duration 2020-07-03 06:58:27 +02:00
Matthias
f368aabcc7 Add amount to backtest-result 2020-07-03 06:58:27 +02:00
Matthias
6e94734678 Add fee to backtestresult 2020-07-03 06:58:27 +02:00
Matthias
03ab61959b Add test for generate_backtest_stats 2020-07-03 06:58:27 +02:00
Matthias
0fa56be9d2 remove openIndex and closeIndex from backtest-report 2020-07-03 06:58:27 +02:00
Matthias
2881718733 Adapt tests for new column names 2020-07-03 06:58:27 +02:00
Matthias
5fce7f3b22 Add market Change
closes #2524 and #3518
2020-07-03 06:58:27 +02:00
Matthias
cf044d166e Tests should use new Datetime format too 2020-07-03 06:58:27 +02:00
Theagainmen
f32e522bd7 Update API test, removed 'ANY' 2020-07-02 20:03:15 +02:00
Theagainmen
39fa589735 Update API test, currently just with 'ANY' 2020-07-02 13:39:02 +02:00
Theagainmen
db965332b9 Update tests for AgeFilter message 2020-07-02 11:38:38 +02:00
Matthias
cf1bbb1afb
Merge pull request #3517 from freqtrade/rpc/winlossratio
Show winning vs. losing trades
2020-06-30 07:48:18 +02:00
Matthias
cf26ab1dd8
Merge pull request #3527 from Theagainmen/Warning_message2
Warning message bot is stopped and left open trades
2020-06-30 07:48:02 +02:00
Matthias
c2a6f70b4c Merge branch 'develop' into keep_dataframe_noapi 2020-06-30 07:46:52 +02:00
Matthias
efd6e4a875 Add test for check_for_open_trades 2020-06-30 07:16:27 +02:00
hroff-1902
8a2f631ddd
Merge pull request #3531 from freqtrade/exchange_errorhandling
Improve exchange errorhandling and API backoff
2020-06-30 07:53:09 +03:00
hroff-1902
02c0488d45
Merge pull request #3453 from freqtrade/fix/3363
Backtesting should load pairlists after the strategy
2020-06-29 21:53:33 +03:00
Matthias
4d9ecf137b Fix failing test in python 3.7
can't use Magicmock in 3.7 (works in 3.8 though).
2020-06-28 20:38:28 +02:00
Matthias
c6124180fe Fix bug when fetching orders fails 2020-06-28 19:45:42 +02:00
Matthias
6362bfc36e Fix calculate_backoff implementation 2020-06-28 19:41:21 +02:00
Matthias
cbcbb4bdb5 Rename get_stoploss_order to fetch_stoploss_order (align with fetch_order) 2020-06-28 16:30:24 +02:00
Matthias
92c70fb903 Rename get_order to fetch_order (to align to ccxt naming) 2020-06-28 16:27:35 +02:00
Matthias
e040c518ca Dynamic backoff on DDos errors 2020-06-28 16:19:12 +02:00
Matthias
29d3ff1bc9 Adjust tests to work with ExchangeError 2020-06-28 16:04:04 +02:00
Matthias
5bd4798ed0 Add retrier to stoploss calls (but without retrying) 2020-06-28 11:56:29 +02:00
Matthias
2c45114a64 Implement DDos backoff (1s) 2020-06-28 11:17:06 +02:00
Matthias
865b73a456
Merge pull request #3520 from freqtrade/rpc/cors_setting
Fix RPC Cors
2020-06-27 15:38:40 +02:00
hroff-1902
cc24f44636
Merge pull request #3519 from freqtrade/fix/trades_download_older
dl-trades should also support increasing download span
2020-06-27 00:08:10 +03:00
gambcl
ab7f5a2bcf Added pairslist AgeFilter 2020-06-24 23:58:12 +01:00
Matthias
5423d8588e Test for cors settings 2020-06-24 20:32:35 +02:00
Matthias
676006b99c --dl-trades should also support increasing download span
(by downloading the whole dataset again to avoid missing data in the
middle).
2020-06-24 17:40:23 +02:00
Matthias
0509b9a8fc Show winning vs. losing trades 2020-06-24 06:43:19 +02:00
Matthias
45ffb26910 Merge branch 'develop' into pr/hroff-1902/3478 2020-06-18 19:54:46 +02:00
Matthias
eef3c01da7 Fix function header formatting 2020-06-18 19:49:05 +02:00
Matthias
f1993fb2f4 Pass analyzed dataframe to get_signal 2020-06-18 08:09:52 +02:00
Matthias
f2a778d294 Combine tests for empty dataframe 2020-06-18 07:03:30 +02:00
Matthias
ab9382434f Add test for get_analyzed_dataframe 2020-06-18 06:50:06 +02:00
Matthias
8b186dbe0e Add additional test scenarios 2020-06-18 06:50:06 +02:00
Matthias
1c1a7150ae ensure confirm_trade_entry is called and has the desired effect 2020-06-18 06:50:06 +02:00
Matthias
7c3fb111f2 Confirm execute_sell calls confirm_trade_exit 2020-06-18 06:50:06 +02:00
Matthias
6d6e7196f4 Test trade entry / exit is called correctly 2020-06-18 06:50:06 +02:00
Matthias
dea7e3db01 Use supress_errors in strategy wrapper - ensure it's called once 2020-06-18 06:50:06 +02:00
Matthias
c047e48a47 Add errorsupression to safe wrapper 2020-06-18 06:50:06 +02:00
Matthias
bc821c7c20 Add documentation for bot_loop_start 2020-06-18 06:50:06 +02:00
Matthias
7da955556d Add test for empty pair case 2020-06-18 06:50:06 +02:00
Matthias
55fa514ec9 Adapt most tests 2020-06-18 06:50:05 +02:00
Matthias
273aaaff12 Introduce .analyze() function for Strategy
Fixing a few tests along the way
2020-06-18 06:50:05 +02:00
Matthias
e2465f979b Correctly mock out async_reload 2020-06-17 08:33:53 +02:00
Matthias
d4fb5af456 Also reload async markets
fixes #2876 - Logs and Empty ticker history  for new pair
2020-06-17 07:23:20 +02:00
Matthias
3517c86fa2 Fail if both ticker_interval and timeframe are present in a
configuration

Otherwise the wrong might be used, as it's unclear which one the intend
of the user is
2020-06-16 16:02:38 +02:00
Matthias
a3506f4d8e Merge branch 'develop' into timeframe 2020-06-15 06:35:55 +02:00
Matthias
d337fb6c6a Update some comments 2020-06-15 06:35:31 +02:00
Matthias
f80b5f9410
Merge pull request #3438 from freqtrade/ftx_stoploss
Ftx stoploss
2020-06-14 07:02:15 +02:00
Matthias
534c242d1b Apply typography to test too 2020-06-14 06:33:08 +02:00
hroff-1902
4660909e95 Validate stoploss_on_exchange_limit_ratio at startup time 2020-06-14 01:07:00 +03:00
hroff-1902
1bf333d320 Minor: fix test 2020-06-14 00:57:13 +03:00
Matthias
d52198d15e
Merge pull request #3468 from hroff-1902/cleanup_async_markets
Cleanup async markets
2020-06-13 17:28:11 +02:00
hroff-1902
37bc2d28ad Revert "Remove _load_async_markets"
This reverts commit 6744f8f052.
2020-06-13 13:34:29 +03:00
hroff-1902
12d3a234c1
Merge pull request #3471 from freqtrade/fix/3465
Fix exception with stacktrace in test-pairlist
2020-06-12 07:57:37 +03:00
Matthias
c66ca957d9 Add test verifying this behaviour 2020-06-10 19:57:47 +02:00
Theagainmen
4f643f8481 Fix Flake8 error: line too long 2020-06-10 19:28:02 +02:00
Theagainmen
8c9dea988c Now supports both commands & fixed test 2020-06-10 19:28:02 +02:00
Theagainmen
04fa597695 Test with multiple commands in one line 2020-06-10 19:28:02 +02:00
Theagainmen
ac92834693 reload_conf & reload_config now both accepted, code is more consistent now 2020-06-10 19:28:02 +02:00
hroff-1902
7d451638a8 Make _reload_markets() public 2020-06-10 01:39:23 +03:00
hroff-1902
6744f8f052 Remove _load_async_markets 2020-06-10 01:22:55 +03:00
Matthias
ab0003f565 fix #3463 by explicitly failing if no stoploss is defined 2020-06-09 14:33:57 +02:00
Matthias
72ae4b1500 Load pairlist after strategy to use strategy-config
fail in certain conditions when using strategy-list

Fix #3363
2020-06-07 16:15:26 +02:00
Matthias
54226b45b1 Add test verifying failure 2020-06-07 16:02:54 +02:00
Matthias
0f373e6bb9 Update unrelated tests 2020-06-07 15:39:59 +02:00
Matthias
3f9ab0846d Rename profitperc to profit_percent 2020-06-07 15:39:59 +02:00
Matthias
070913f327 Rename text_table generation 2020-06-07 11:35:02 +02:00
Matthias
499c6772d1 Rename tabulate methods
they don't "generate" anything
2020-06-07 11:31:33 +02:00
Matthias
8d8cf5a2fd Improve code formatting of telegram 2020-06-06 17:28:00 +02:00
Matthias
ed1268cf39 Merge branch 'develop' into ask_strategy_verbosity 2020-06-06 17:23:19 +02:00
Matthias
6aed16c146
Merge pull request #3448 from Theagainmen/Telegram_emojis_V2
Added emoji's to the Telegram RPC
2020-06-06 17:22:56 +02:00
Theagainmen
d20762aa01 Fixed typo 'emoij' in test file too 2020-06-06 17:11:47 +02:00
Matthias
b2316cdd00 Extract sell_smoij logic into it's own function 2020-06-06 17:11:47 +02:00
hroff-1902
a86863c032
Merge pull request #3440 from freqtrade/rpc_status_fields
Rpc status fields
2020-06-05 23:59:01 +03:00
Matthias
8c32d691c7 Add information about bid and ask strategy to /showconfig 2020-06-05 20:31:40 +02:00
Theagainmen
6694ac5077
Splitted a line that was too long, resulting in flake8 error 2020-06-05 20:10:52 +02:00
Theagainmen
08b9abed3a
Removed '.encode', unecessary 2020-06-05 20:05:55 +02:00
Theagainmen
ff289a7177
Updated tests to work with Telegram emojis 2020-06-05 19:08:54 +02:00
Matthias
6a88eb603b Update failing test 2020-06-04 07:20:50 +02:00
Matthias
7bd55aa2f1 Use correct calcuation for "locked in profit" 2020-06-04 07:04:32 +02:00
Matthias
412b50dac5 Add current stoploss calculations 2020-06-04 06:59:48 +02:00
Matthias
5c5dc6fffe Update test to reflect real trade after one cycle 2020-06-04 06:56:30 +02:00
Matthias
6997524a04 Fix tests for additional info 2020-06-03 19:40:49 +02:00
Matthias
f0eb0bc350 Support limit orders 2020-06-03 06:11:34 +02:00
Matthias
77a62b845a Fix some comments 2020-06-03 06:11:34 +02:00
Matthias
3174f37b41 adapt tests to use stoploss_* methods 2020-06-03 06:11:34 +02:00
Matthias
cf50c1cb7b Add tests for new exchange methods 2020-06-03 06:11:34 +02:00
Matthias
d90d6ed5d0 Add ftx to tested exchanges 2020-06-03 06:11:34 +02:00
Matthias
78dea19ffb Implement first version of FTX stop 2020-06-03 06:11:34 +02:00
Matthias
ad61673d6f Fix missing key in test order 2020-06-02 21:10:12 +02:00
Matthias
ea954b4338 Add failing test with testcase from incident
Full problem in #3431
2020-06-02 20:54:14 +02:00
Matthias
08049d23b4 Use "market_is_tradable" for whitelist validation 2020-06-02 20:41:29 +02:00
Matthias
b74a3addc6 Update tests 2020-06-02 20:30:31 +02:00
Matthias
02fca141a0 Readd ticker_interval to trade api response 2020-06-02 19:43:15 +02:00
Matthias
1a5dba9a79 Revert "Fix tests after merge"
This reverts commit edf8e39bc1.
2020-06-02 19:39:17 +02:00
hroff-1902
edf8e39bc1 Fix tests after merge 2020-06-02 17:57:45 +03:00
hroff-1902
64881a94e2
Merge branch 'develop' into timeframe 2020-06-02 15:56:34 +03:00
hroff-1902
4c82f127b3
Merge pull request #3419 from freqtrade/api_trade_response
Api trade response
2020-06-02 15:53:58 +03:00
hroff-1902
2cc47f651d
Merge pull request #3408 from freqtrade/apiserver_logging
Apiserver logging
2020-06-02 14:32:44 +03:00
Matthias
b106c88630 Add test case for strategy overwriting 2020-06-02 13:08:21 +02:00
Matthias
8e1a664a48 Add test for deprecation updating 2020-06-02 10:11:50 +02:00
Matthias
f9bb1a7f22 Update more occurances of ticker_interval 2020-06-02 10:02:55 +02:00
Matthias
af0f29e6b7 Update persistence to use timeframe 2020-06-02 10:02:36 +02:00
Matthias
09fe3c6f5e create compatibility code 2020-06-02 09:52:30 +02:00
Matthias
3e895ae74a Some more replacements of ticker_interval 2020-06-02 09:41:42 +02:00
Matthias
947903a4ac Use timeframe from within strategy 2020-06-02 09:36:04 +02:00
hroff-1902
aff80d7331
Merge pull request #3417 from freqtrade/bt_result_store_metrics
Refactor result store metrics
2020-06-02 04:31:37 +03:00
hroff-1902
5435df84bd
Merge pull request #3387 from freqtrade/rpc_blacklist
Improve RPC Blacklist by adding feedback
2020-06-02 04:10:33 +03:00
hroff-1902
7b9bb5ba3d
Merge pull request #3425 from freqtrade/sell_rate_raise_empty
Verify sell-rate returns a value.
2020-06-02 02:22:56 +03:00
Matthias
cadc50ce9b Replace more occurances of ticker_interval with timeframe 2020-06-01 20:49:40 +02:00
Matthias
950f358982 Replace occurances in test files 2020-06-01 20:47:27 +02:00
Matthias
b2c241e607 Replace ticker_interval in all rpc files 2020-06-01 20:43:20 +02:00
Matthias
898def7f6c Remove ticker_interval from exchange 2020-06-01 20:39:01 +02:00
Matthias
009ea0639f Exchange some occurances of ticker_interval 2020-06-01 20:33:26 +02:00
Matthias
3139343946 Remove capital_available_percentage and raise instead 2020-06-01 19:58:28 +02:00
Matthias
f6f75072ba Fix linelength 2020-06-01 19:54:05 +02:00
Matthias
c35f9f8d39 Verify sell-rate got a value - otherwise downstream code does not work.
Using PricingException here will cease operation for this pair for this
iteration - postponing handling to the next iteration - where hopefully
a price is again present.
2020-06-01 19:45:37 +02:00
Matthias
d2b7016dff Add stop_loss_abs ... 2020-06-01 11:05:37 +02:00
Matthias
6dec508c5e Add new fields to tests 2020-06-01 10:57:29 +02:00
Matthias
091693308a Correctly call show_backtest_results 2020-06-01 09:25:26 +02:00
Matthias
4087161d2b fix broken test 2020-05-31 10:16:56 +02:00
Matthias
dc7f0f1187 Add api-server to default config samples 2020-05-31 09:57:31 +02:00
hroff-1902
84c50bf16c
Merge pull request #3390 from freqtrade/rpc/profit
improve /profit to not raise an exception if no trade is closed
2020-05-30 22:06:22 +03:00
hroff-1902
a162b911b6
Merge pull request #3398 from freqtrade/ccxt_config_combine
combine CCXT configurations ...
2020-05-30 21:49:44 +03:00
Matthias
cc90e7b413 Show "No trades yet." when no trade happened yet 2020-05-30 19:49:16 +02:00
Matthias
91f84f1a43 Fix typo in close trade message 2020-05-30 19:28:30 +02:00
hroff-1902
36c7089a03
Merge pull request #3394 from freqtrade/disable_dataframechecks
Allow changing severity of strategy-validations to log only.
2020-05-30 19:28:38 +03:00
Matthias
97905f86be Add missing fields to to_json output of trade 2020-05-30 11:34:39 +02:00
Matthias
f187753f8f Add ccxt_sync_config to simplify ccxt configuration 2020-05-30 10:45:50 +02:00
Matthias
7ea59b6d8e Update comment
(to trigger CI)
2020-05-30 09:43:50 +02:00
Matthias
ea5daee505 Allow changing severity of strategy-validations to log only. 2020-05-29 19:37:18 +02:00
Matthias
9f8b21de4a
Merge pull request #3358 from hroff-1902/refactor_generate_pairlist
Split the pairlist generation logic and filtering
2020-05-29 14:16:15 +02:00
hroff-1902
a4cf9ba85b Move check for position for StaticPairList to init 2020-05-29 12:40:05 +03:00
Matthias
1d6e3fea85 Update /profit telegram message to support non-closed trades 2020-05-29 09:38:12 +02:00
Matthias
6261aef314 Return /profit even if no trade is closed 2020-05-29 09:03:48 +02:00
Matthias
7399c7e70c Provide blacklist feedback to telegram 2020-05-28 07:04:06 +02:00
Matthias
0e8f95effd Improve blacklist adding with proper feedback 2020-05-28 06:51:53 +02:00
hroff-1902
0234e4d293
Merge pull request #3369 from freqtrade/align_trade_outputs
Improve some api results
2020-05-27 22:56:15 +03:00
Matthias
04eb11bb5d
Merge pull request #3377 from freqtrade/btreport_refactor
Refactor BTReport
2020-05-27 19:33:08 +02:00
Matthias
8c87fcdae3 Rename PricingException to PricingError 2020-05-26 20:35:11 +02:00
Matthias
16cd1f06b2 Rename get_order_book to fetch_l2_order_book (aligning to ccxt) 2020-05-26 20:27:35 +02:00
Matthias
d09a347853 Add tests for pricingexception 2020-05-26 20:24:44 +02:00
Matthias
7a7b26e840 Add exception handlers for orderbook logic 2020-05-26 20:14:05 +02:00
Matthias
3e3cce4559 Use pct instead of _perc 2020-05-26 19:25:03 +02:00
hroff-1902
a484124272 Raise exception if StaticPairList on a non-first position 2020-05-25 23:14:51 +03:00
Matthias
6a9a8f927e Rename some methods, improve some testing 2020-05-25 20:46:31 +02:00
Matthias
46f1470e28 Fix failing test 2020-05-25 20:00:05 +02:00
Matthias
027ea64d48 Fix docstrings, extract strategy-list results 2020-05-25 19:55:02 +02:00
Matthias
db257e9f7f Rename method to be public 2020-05-25 19:50:23 +02:00
Matthias
18a2dad684 Extract data generation from generate_text_table 2020-05-25 19:35:32 +02:00
Matthias
e1362755d2 Add test for sell_reason_stats 2020-05-25 07:14:21 +02:00
Matthias
876a9e4f44 finish refactor of sell_reason table 2020-05-25 07:08:15 +02:00
Matthias
bbd7579aa8 Fix more tests 2020-05-24 09:07:24 +02:00
Matthias
859b619a0b Align tests to new output 2020-05-24 08:47:10 +02:00
hroff-1902
0e416dc4f5 Simplify tests 2020-05-22 16:42:02 +03:00
hroff-1902
8e89802b2d Split the generation logic and filtering 2020-05-22 15:03:49 +03:00
Matthias
74056e768a
Merge pull request #3352 from hroff-1902/improve_pairlist_tests
Improve pairlist tests
2020-05-21 15:06:22 +02:00
hroff-1902
cd0bf96c0e Improve pairlist tests 2020-05-21 12:52:10 +03:00
Matthias
1f386c570d Don't start plotting profit without trades
plotting profit only makes sense when trades are available
2020-05-21 07:13:08 +02:00
Matthias
1a984ac677 Explicitly raise ValueError if trades are empty 2020-05-21 07:12:53 +02:00
Matthias
a11651ae67 Correctly test cors 2020-05-20 19:43:52 +02:00
hroff-1902
7b2bb73a12
Merge branch 'develop' into verify_date_on_new_candle_on_get_signal 2020-05-19 21:34:58 +03:00
Matthias
d438af342c
Merge pull request #3339 from hroff-1902/cleanup-pairlistmanager
Cleanup in pairlistmanager
2020-05-19 14:04:39 +02:00
hroff-1902
4c4fb0c9be Cleanup in pairlistmanager 2020-05-19 03:56:31 +03:00
hroff-1902
d8352bd632 Fix tests for SpreadFilter 2020-05-18 23:48:06 +03:00
hroff-1902
e1e8293a67 Merge remote-tracking branch 'upstream/develop' into pairlists-shuffle 2020-05-18 23:18:41 +03:00
hroff-1902
6fa8750fea
Merge branch 'develop' into refactor-informative 2020-05-18 14:00:09 +03:00
hroff-1902
f54dc7affd
Make flake happy 2020-05-18 13:18:05 +03:00
Matthias
5a9a31351a Adjust empty f-strings to be non-fstrings 2020-05-18 11:40:25 +02:00
hroff-1902
51c0639e6d
Update tests/pairlist/test_pairlist.py
Co-authored-by: Matthias <xmatthias@outlook.com>
2020-05-18 11:54:52 +03:00
hroff-1902
287e8bafce Add/adjust tests 2020-05-18 02:37:03 +03:00
hroff-1902
fd7fa3116a
Merge pull request #3321 from freqtrade/rpc/improve_daily
Improve daily API format
2020-05-18 01:29:28 +03:00
hroff-1902
889d07900a
Merge pull request #3320 from freqtrade/fix_sell_spamming
Fix sell spamming
2020-05-17 21:54:08 +03:00
Matthias
9d63fada24
Merge pull request #3313 from hroff-1902/refactor-pairlists
Cleanup in pairlists
2020-05-17 20:15:39 +02:00
Matthias
943a2a08f8 Improve daily API format 2020-05-17 20:12:01 +02:00
Matthias
285bc2511e Improve testcov for default check_*_timeout methods 2020-05-17 11:23:55 +02:00
Matthias
2074d986a6 Update test to verify we're not spamming messages 2020-05-17 11:12:30 +02:00
Matthias
1e76bff1bd Add sell_order_status to keep track of cancellations 2020-05-17 10:52:20 +02:00
hroff-1902
318e435a8f
Merge branch 'develop' into refactor-informative 2020-05-16 22:14:50 +03:00
Matthias
fed75d8718 remove --cancel_open_orders cli switch 2020-05-16 13:23:40 +02:00
Matthias
2a1fcc0f06 Merge branch 'develop' into pr/jpribyl/3210-1 2020-05-16 13:09:38 +02:00
Matthias
22a08768f7 Add test for cancel_open_order 2020-05-16 12:40:25 +02:00
hroff-1902
facaaabc1e Rename _refresh_whitelist() 2020-05-16 12:27:56 +03:00
Matthias
c3f3242f28 Add tests for cancel_open_orders_on_exit 2020-05-16 11:05:34 +02:00
hroff-1902
9d6a41aa7a
Merge pull request #3315 from freqtrade/flask_cors
Add cors support - needed for UI
2020-05-16 09:07:38 +03:00
Matthias
61f6acb5c9 Add cors support - needed for UI 2020-05-16 07:07:24 +02:00
hroff-1902
72165a1926
Merge pull request #3238 from hroff-1902/dataprovider-add-ticker
Add ticker to dataprovider
2020-05-15 22:03:01 +03:00
hroff-1902
d84cb3be77 Improve test 2020-05-15 19:19:52 +03:00
Matthias
ba68c42aae
Merge pull request #3297 from bmoulkaf/develop
Fix stoploss on binance bug
2020-05-15 08:23:18 +02:00
Matthias
a7b469e83d Add test verifying correct price reduction on limit stoploss orders 2020-05-15 08:09:53 +02:00
Matthias
92b6d3e2fa Adjust test to reflect correct behaviour 2020-05-15 08:04:14 +02:00
hroff-1902
f0c3a0d2f8 Simplify VolumePairList 2020-05-15 03:59:13 +03:00
hroff-1902
2924b70fd7 Cosmetics in tests/pairlist/ 2020-05-15 03:41:41 +03:00
hroff-1902
8e4ffea52b
Merge pull request #3239 from freqtrade/feat/fee_handling
Improve fee handling
2020-05-14 18:48:48 +03:00
hroff-1902
78b81bac48 Add test for dp.ticker() 2020-05-14 16:43:16 +03:00
hroff-1902
b4d2433fc1
Merge pull request #3267 from GrilledChickenThighs/develop
Method for accessing current pairlist inside strategy.
2020-05-13 21:29:39 +03:00
Matthias
60f26ba501 use update_trade_state also for closed stoploss orders 2020-05-13 20:25:32 +02:00
Matthias
d86855f2f3
Merge pull request #3129 from freqtrade/trades_to_list
convert dl-trades datadownload to list
2020-05-13 09:41:26 +02:00
Paul D. Mendes
87d9388a9c Merge branch 'develop' of https://github.com/freqtrade/freqtrade into develop 2020-05-13 00:32:46 +04:00
Matthias
e864db1843 Update test for dp.current_whitelist 2020-05-12 06:38:14 +02:00
hroff-1902
c8f3ef884b Minor: Add filterwarning for DeprecationWarning in test 2020-05-11 20:22:19 +03:00
Paul D. Mendes
9fbe135790 attached pairlist manager onto dataprovider init for unified access to dynamic whitelist 2020-05-11 20:17:03 +04:00
Paul D. Mendes
bc9efc31ad Added Method for accessing current pair list on initialization for dynamic informative pairs
moved import into function to avoid circular import with hyperopt
2020-05-11 19:45:15 +04:00
hroff-1902
bbb609c927
Merge pull request #3278 from freqtrade/api/jwt
API server - support JWT
2020-05-10 21:33:41 +03:00
Matthias
9eca268a49 Fix test 2020-05-10 20:00:19 +02:00
Matthias
80faa5feb1 Add test to cancel sell order 2020-05-10 16:24:00 +02:00
Matthias
bc64619f30 Tests for JWT implementation 2020-05-10 10:43:13 +02:00
Matthias
0bd2fca40b
Update tests/test_integration.py
Co-authored-by: hroff-1902 <47309513+hroff-1902@users.noreply.github.com>
2020-05-10 09:55:41 +02:00
hroff-1902
b6a2c38941 Adjust tests 2020-05-10 02:39:22 +03:00
Matthias
80d367fa08 Add test for keyboardinterrupt 2020-05-08 14:24:30 +02:00
Matthias
5272ec85ea Add additional test 2020-05-08 12:34:24 +02:00
Matthias
c560de4111 Improve exception handling on critical errors 2020-05-08 11:44:24 +02:00
hroff-1902
5b92387732
Merge pull request #3259 from freqtrade/fix/filled
Fix handling of partially or non-filled timedout orders
2020-05-07 09:58:26 +03:00
Matthias
1ba2df79c6 Ause isclose for comparison, assign filled to variable
add some comments
2020-05-07 06:51:02 +02:00
hroff-1902
06313cdddf
Merge pull request #3264 from freqtrade/api_improvements
Api improvements
2020-05-07 00:05:36 +03:00
Matthias
e4023a6567 Add some minor things to show_config 2020-05-05 21:19:35 +02:00
Matthias
ffef4bc474 Humanize show-trades error when no database is specified 2020-05-05 19:48:28 +02:00
hroff-1902
1b448f57b9
Merge pull request #3242 from freqtrade/feat/trade_show
New subcommand show-trades
2020-05-05 19:26:59 +03:00
Matthias
d3a0ab8096 Change mock-status to be open when testing unfilled... 2020-05-05 07:12:49 +02:00
Matthias
981976681a Use filled, it's the safer choice when determining the filled amount. 2020-05-05 07:09:12 +02:00
Matthias
b4aeb93a18 Add test testing the different ways exchanges may return data 2020-05-05 07:07:42 +02:00
Matthias
f040c20688 Use filled in tests 2020-05-05 06:41:01 +02:00
Matthias
b38f9ed5e7 Increase cache for rate limit to avoid delays
Helps when calling /status or /status table frequently on slowish
exchanges
2020-05-03 20:44:18 +02:00
Matthias
1c9c72937e Adjust trade-ids param 2020-05-03 15:32:09 +02:00
Matthias
e92d3867cf Fix failing test 2020-05-03 15:25:54 +02:00
Matthias
81397874eb Remove commented mock 2020-05-03 11:29:51 +02:00
Matthias
72282a2239 Add explicit test for fee_conditional 2020-05-03 11:28:29 +02:00
Matthias
58168336e1 Add test for apply_fee_conditional 2020-05-03 11:13:59 +02:00
Matthias
38c4949360 Align applying of fee when comming from orders or trades 2020-05-03 10:50:59 +02:00
Matthias
1066a4504b Add test for show_trades 2020-05-02 11:44:18 +02:00
Matthias
021e2b58ca Support partially cancelled orders for fee calculation 2020-05-01 20:24:26 +02:00
Matthias
737fc6d198 Fix bug when querying side 2020-05-01 20:05:13 +02:00
Matthias
71c90422ba Add explicit test for fee_updated 2020-05-01 20:02:38 +02:00
Matthias
6d620ba1f6 Verify if fee for this side has been updated 2020-05-01 19:54:16 +02:00
jpribyl
bd51cd332b Cancel all open orders after receiving /stop or ctrl+c 2020-05-01 10:36:11 -06:00
Matthias
a2ff632647 Add update_fee method to persistence 2020-05-01 16:01:12 +02:00
Matthias
fdcc507f06 Fix integration tests 2020-05-01 15:50:02 +02:00
Matthias
b93d33a93a Fix mock order dicts 2020-05-01 15:50:02 +02:00
Matthias
59bafc8d02 Implement fee rate calculation 2020-05-01 15:50:02 +02:00
Matthias
f8f794a803 Simplify fee-related tests 2020-05-01 15:49:52 +02:00
Matthias
e74ed0ba7b Add tests for fee extraction methods 2020-04-30 20:05:27 +02:00
Matthias
7936120afc Adapt tests to support new db fields 2020-04-30 06:58:55 +02:00
Matthias
dec1b10743 Add fee_cost and currency columns 2020-04-30 06:57:39 +02:00
hroff-1902
c26835048c Hyperopt cleanup, do not use 'trials' 2020-04-28 22:56:19 +03:00
hroff-1902
a01ed170f5 Improve hyperopt-list logging 2020-04-28 17:33:07 +03:00
hroff-1902
fedcf1db52
Merge pull request #3217 from freqtrade/remove_deprecation
Remove deprecated pairlist and binary
2020-04-27 19:41:54 +03:00
hroff-1902
9ebc997e9d
Merge pull request #3215 from freqtrade/backtest_use_pairlists
Backtest use pairlists
2020-04-27 13:34:06 +03:00
Matthias
fb8a85da01 Disallow VolumePairList from backtesting for now 2020-04-27 07:56:17 +02:00
hroff-1902
485e324d36
Merge pull request #2872 from freqtrade/interface_ordertimeoutcallback
Buy order timeout callback
2020-04-25 19:02:15 +03:00
Matthias
9fa21628d7 Deprecate keys other than quoteVolume
fixes #2981
2020-04-25 16:29:17 +02:00
Matthias
d1a24db6b7 Remove deprecated pairlist and binary 2020-04-25 16:04:10 +02:00
Matthias
8987859044 Enable pairlist parsing for backtesting and hyperopt 2020-04-25 15:37:13 +02:00
Yazeed Al Oyoun
72b088d85f added test 2020-04-25 11:31:51 +02:00
Matthias
9627604ec3 change wording of log message 2020-04-24 07:58:18 +02:00
Matthias
461b0ef738 Add test verifying we're not reintroducing this in the future
Tests case of FTX, which returns mostly empty ticker info
2020-04-23 20:04:14 +02:00
Matthias
87f1060abc Default docker to log into log-dir 2020-04-21 19:47:49 +02:00
Matthias
431b244f43 Merge branch 'develop' into interface_ordertimeoutcallback 2020-04-19 06:58:44 +02:00
Matthias
c775d65126 Update typehint for cancel_order 2020-04-18 06:55:25 +02:00
Matthias
1069cb3616 Use cancel_order_with_result when cancelling orders after timeout 2020-04-17 17:53:56 +02:00
Matthias
5e3e0e819f Add tests for cancel_order_with_result 2020-04-17 17:53:18 +02:00
Matthias
800891a475 Add tests for cancel_order_with_result 2020-04-17 07:18:46 +02:00
hroff-1902
68be239a0e
Merge pull request #3146 from freqtrade/buy_order_timeout_logging
Improve handling for buy order cancels
2020-04-16 23:41:45 +03:00
hroff-1902
9364a9c4c4
Merge pull request #3168 from freqtrade/fix_pairlist_caching
Fix pairlist caching
2020-04-16 18:39:00 +03:00
hroff-1902
df79011aba
Merge pull request #3112 from freqtrade/trade_state_updates
Trade state updates
2020-04-16 12:05:19 +03:00
hroff-1902
b07d61f3d9
Merge pull request #3169 from freqtrade/fix_pricefilter
Fix pricefilter
2020-04-15 20:53:59 +03:00
hroff-1902
8b6a7e685e
Merge pull request #3133 from freqtrade/backtesting_filenameexpanding
[minor] Fix filename handling with --strategy-list
2020-04-15 12:02:19 +03:00
Matthias
33b6c7de5b Add tests for price_one_pip 2020-04-15 07:53:31 +02:00
Matthias
ac008a4758 Remove obsolete comment in tests 2020-04-15 06:58:54 +02:00
Matthias
1b2bf2c9b6 Add test for cached log method 2020-04-14 20:39:54 +02:00
Matthias
cfe1e4876a Improve testcase for cancel_order_empty 2020-04-14 19:20:47 +02:00
hroff-1902
f2b1802666
Merge pull request #3137 from freqtrade/fix_maxdrawdown
[minor] Fix maxdrawdown
2020-04-14 16:03:25 +03:00
Matthias
ddf37ef059 Add test to demonstrate that the dataframe is not changed 2020-04-14 08:02:42 +02:00
hroff-1902
4d80f52db4
Merge pull request #3134 from freqtrade/backtesting_memory
Backtesting memory and dataframe
2020-04-13 23:08:45 +03:00
Matthias
c03f637f5b Improve safe_value_fallback test 2020-04-09 20:01:21 +02:00
Matthias
cbf5bf6735 Add safe_value_fallback function 2020-04-09 19:34:48 +02:00
Matthias
346e09fed1 Add test verifying that cancel_order with empty remaining is causing the
bug
2020-04-09 19:32:10 +02:00
Matthias
296c616ce7 Add test for api-trades call 2020-04-07 19:50:13 +02:00
Matthias
bdc85ec89b Move create_mock_tests to conftest and add test for test_trade-history 2020-04-07 19:42:16 +02:00
Ork Blutt
2444fb9cd6 fix broken tests: remove duplicated value 2020-04-06 15:56:57 +02:00
Ork Blutt
c1f9595086 fix broken tests 2020-04-06 15:49:24 +02:00
Ork Blutt
815660c070 fix tests 2020-04-06 11:32:00 +02:00
Matthias
41d5c40f10 Correctly test drawdown plot 2020-04-05 14:44:44 +02:00
Matthias
a99c53f1ec Add test showing that high is before low 2020-04-05 14:29:03 +02:00
Matthias
d4dde01140 Add test 2020-04-02 20:23:20 +02:00
Matthias
cf6e6488c7 Fix filename handling with --strategy-list 2020-04-02 17:29:18 +02:00
Matthias
46f1d1f39f Failing test might be incompatibility 2020-04-02 11:54:30 +02:00
Matthias
9d7ad23d42 Fix test leakage 2020-04-02 08:20:50 +02:00
Matthias
0d51383b57 Format logmessages correctly 2020-04-01 20:31:21 +02:00
Matthias
5739ee6e15 Add test for trades data conversation 2020-04-01 20:12:28 +02:00
Matthias
437d4cda5d Add test data for trades 2020-04-01 20:12:13 +02:00
Matthias
ba03d96961 Test 5s offset on since 2020-04-01 20:04:36 +02:00
Matthias
0506caf986 Implement trades_remove_dulicates 2020-04-01 19:45:38 +02:00
Matthias
59f1a061f7 adapt exchange tests to use lists instead of dicts 2020-04-01 19:45:38 +02:00
Matthias
b95e9fe351 Fix mocks to return correct things 2020-04-01 19:45:38 +02:00
Matthias
1659ddcc5d Add conversion function from fetch_trades to list 2020-04-01 19:45:21 +02:00
hroff-1902
2915917680
Merge pull request #3107 from orehunt/check_dataframe_after_signals
check that the strategy dataframe matches the one given by the bot
2020-03-31 20:08:03 +03:00
Matthias
83cc121b70 Add tsts for assert_df (ensuring it raises when it should) 2020-03-29 11:44:36 +02:00
Matthias
cd2e738e35 Add test for assert error 2020-03-29 11:40:13 +02:00
Matthias
0887a0212c Adjust tests to pass validation 2020-03-29 11:29:31 +02:00
Matthias
78aa658255 Remove unnecessary test (it's a copy of the remaining test) 2020-03-29 11:27:40 +02:00
Matthias
95011919d3 Remove questionable handling of orders 2020-03-25 11:18:33 +01:00
Matthias
1e2fadbc02 Fix failing test 2020-03-25 09:43:04 +01:00
Matthias
19e5dbddc6 Add filled to all orders 2020-03-25 09:43:04 +01:00
Matthias
f3103be15c Fix test 2020-03-25 09:43:04 +01:00
Matthias
270ac2e8c1 Add check_order_cancelled_empty method to exchange 2020-03-25 09:43:04 +01:00
Matthias
9c351007f5 Provide reason for cancelled sell order 2020-03-25 09:43:04 +01:00
Matthias
91b058cf11 Fix typo in tests 2020-03-25 09:43:04 +01:00
hroff-1902
be5b68627c
Merge pull request #3093 from freqtrade/trades_abs_profit
Add close_profit_abs column
2020-03-25 11:13:56 +03:00
Matthias
4ea6f9d7eb
Merge pull request #3110 from freqtrade/fix_random_test
[minor] Test warnings with filter always on
2020-03-25 08:32:45 +01:00
Matthias
be41981ef0 Test warnings with filter always on 2020-03-24 20:10:15 +01:00
Matthias
8f7e113d79 Add additional test 2020-03-23 07:54:27 +01:00
Matthias
6c55b40fe0 Add test verifying config printing 2020-03-22 20:15:33 +01:00
Matthias
2c434e9b11 Add close_proit_abs column 2020-03-22 11:16:23 +01:00
Yazeed Al Oyoun
1976aaf13e initial push 2020-03-22 02:22:06 +01:00
Matthias
f320c0a410
Merge pull request #3087 from hroff-1902/edge-cosmetics-1
minor: Edge cosmetics
2020-03-20 08:12:21 +01:00
hroff-1902
3e0ffdce75 Adjust tests 2020-03-20 04:21:17 +03:00
Matthias
ecf3a3e070 Add test validating different return values 2020-03-19 19:44:10 +01:00
Matthias
ac6eef6922
Merge pull request #3062 from Fredrik81/plot-trades
Plotting: Fix if no file exists and new skip option
2020-03-18 20:00:50 +01:00
Matthias
3e1bef888a Fix flake8 error 2020-03-18 19:40:13 +01:00
Fredrik81
8c33e07dc6 Update based on comments 2020-03-15 21:20:32 +01:00
Matthias
3d4664c2a6 Remove unnecessary import 2020-03-15 15:40:12 +01:00
Matthias
fe50a0f3a1 Move test for store_bt_results to optimize_reports 2020-03-15 15:36:53 +01:00
Matthias
328dbd3930 Remove unnecessary parameter to generate_text_table_sell_reason 2020-03-15 15:04:48 +01:00
Matthias
a1bbeaa668 Merge branch 'develop' into interface_ordertimeoutcallback 2020-03-15 14:56:14 +01:00
hroff-1902
57ff3ff450
Merge branch 'develop' into plot-trades 2020-03-15 13:31:00 +03:00
Matthias
0f1640bed4 convert exportfilename to Path when config parsing 2020-03-15 09:39:45 +01:00
Fredrik81
2c0980aa3a Tests 2020-03-15 00:09:08 +01:00
Fredrik81
27faf12fde Fix if no file exists 2020-03-14 22:15:03 +01:00
Matthias
308d8fe2a9 Remove deprecation warnings due to date conversion 2020-03-14 10:44:46 +01:00
hroff-1902
51f52c8609
Merge branch 'develop' into no-ticker-2 2020-03-13 16:43:52 +03:00
Yazeed Al Oyoun
d752586b32 added test 2020-03-11 17:44:03 +01:00
Matthias
14e7f0bb13
Merge pull request #3049 from hroff-1902/hyperopt-no-unlimited
Do not allow unlimited stake_amount for hyperopt
2020-03-10 11:46:22 +01:00
hroff-1902
1b6e77649a Add test for hyperopt 2020-03-10 12:42:31 +03:00
hroff-1902
81b6a950ac Adjust test for backtesting 2020-03-10 12:42:11 +03:00
hroff-1902
52d89eadde
Merge pull request #3021 from Fredrik81/print-csv
Hyperopt: Add export CSV-file option
2020-03-10 10:46:58 +03:00
Fredrik81
2f5fc731bb Removed overwrite option 2020-03-09 18:53:30 +01:00
Matthias
c049651784 whitelist_for_active_markets should not remove blacklisted items 2020-03-09 11:30:28 +01:00
hroff-1902
3208faf7ed Do not use ticker where it's not a ticker 2020-03-08 20:47:02 +03:00
Matthias
acea49beaf Fix tests / test mocks 2020-03-07 13:01:26 +01:00
Matthias
df5adb6ca5 Exchange coingekko for coinmarketcap 2020-03-07 11:53:08 +01:00
Fredrik81
f0d56e23a3 PEP8 fix 2020-03-05 19:58:01 +01:00
Fredrik81
91db75a707 Added tests and updated doc 2020-03-05 19:43:43 +01:00
hroff-1902
7a3660cd6b Adjust webhook tests 2020-03-05 17:44:21 +03:00
hroff-1902
34093d1208
Merge branch 'develop' into no-percent-1 2020-03-05 14:27:12 +03:00
Matthias
97b194a454 Throttle may take longer than .10s on slow machines
This made this test fluky on windows CI ...
2020-03-05 06:20:36 +01:00
hroff-1902
57523d58df
Merge pull request #2994 from Fredrik81/hyperopt-table
Added dynamic print table function to hyperopt
2020-03-04 23:44:53 +03:00
Fredrik81
090d1e8a70 Alignment and cleanups 2020-03-04 20:51:09 +01:00
hroff-1902
33c1c8f726
Merge pull request #3018 from freqtrade/max_drawdown
Max drawdown in plot-profit
2020-03-04 20:42:57 +03:00
hroff-1902
dea4ef957e
Merge pull request #2982 from freqtrade/rate_side_optional
Rate side configurable
2020-03-04 16:07:08 +03:00
Fredrik81
7652a2bb95 Updated table layout and aligning better for hyperopt 2020-03-04 00:10:47 +01:00
Matthias
9d8970a76b Add test and formatting to drawdown 2020-03-03 20:23:44 +01:00
Matthias
720ed0eddd Remove flucky test assert 2020-03-03 09:36:04 +01:00
Matthias
e050511ddc Add test for max_drawdown calculation 2020-03-03 07:20:41 +01:00
Fredrik81
4aca8d7fcc PEP8 fix 2020-03-03 01:35:18 +01:00
Fredrik81
399c419163 Changed table formating. Adding some code to align hyperopt table generation. WIP 2020-03-03 01:14:56 +01:00
Matthias
6e2290c4f0 Allow last to be empty -
closes #3005
2020-03-02 20:05:54 +01:00
hroff-1902
8475baba4e
Merge pull request #2995 from freqtrade/stake_curr_empty
Allow Stake currency empty when using download-data
2020-03-02 00:53:09 +03:00
Matthias
7736f8d018 Add tests for fallkback 2020-03-01 09:34:42 +01:00
Fredrik81
379275e2d6 Updated tests 2020-03-01 03:24:04 +01:00
Fredrik81
267416eced Changed test for new table printing 2020-03-01 03:11:00 +01:00
Matthias
9336d8ee02 Try fix random testfailure 2020-02-29 15:44:45 +01:00
Matthias
5277d71913 Add test for empty stake-currency 2020-02-29 14:56:04 +01:00
hroff-1902
0528af1700
Merge pull request #2879 from freqtrade/sortino_hyperopt_loss
Sortino hyperopt loss
2020-02-29 11:36:27 +03:00
hroff-1902
e411717de9 No percent where ratio is to be used 2020-02-28 12:36:39 +03:00
Matthias
ac7fa8252b
Merge pull request #2985 from Fredrik81/pretty-backtesting
Changed table style of backtesting and alignment of headers
2020-02-28 06:20:34 +01:00
Matthias
5a02026f82 Add test validating behaviour 2020-02-27 19:35:58 +01:00
Fredrik81
55d471190a Changed table style of backtesting and alignment of headers 2020-02-27 13:28:28 +01:00
hroff-1902
893d9cde8d
Merge pull request #2943 from Fredrik81/add-print-table
Added function to print hyperopt-list as table using tabulate
2020-02-27 05:22:41 +03:00
Matthias
0fea3a7ea7 Some final polish to configurable_side 2020-02-26 19:50:17 +01:00
Matthias
e1cb6f4ae3 fix and improve tests in test_freqtradebot 2020-02-26 19:39:12 +01:00
Matthias
e7b9891335 Adapt rpc tests to corrected price side 2020-02-26 19:39:12 +01:00
hroff-1902
e6d003f8f2
Merge pull request #2973 from freqtrade/support_non_pairs
Support non pairs
2020-02-26 12:20:45 +03:00
Matthias
f38accb77b Return empty string if no quote / base currency can be found 2020-02-26 07:09:54 +01:00
hroff-1902
5a900858d8
Merge branch 'develop' into rate_caching 2020-02-26 04:04:20 +03:00
Matthias
31ac4598ba Fix last occurances of pair splitting 2020-02-25 07:16:37 +01:00
Matthias
d34515a5de Remove constraint to have pairs in base/quote format 2020-02-25 07:04:20 +01:00
Matthias
e9448dc5e2 Add tsts for quote and base currency 2020-02-25 07:01:23 +01:00
Matthias
61037ab7b8 Implement get_pair_base_curr and get_pair_quote_curr 2020-02-24 21:50:27 +01:00
Matthias
3e4f663418 Move pairlist validation to exchange (we need to use .quote) from
markets
2020-02-24 21:33:42 +01:00
Matthias
83959f0e56
Merge pull request #2959 from hroff-1902/throttling
Better throttling
2020-02-24 06:54:52 +01:00
Fredrik81
7eb62ed32e Remove old print option for hyperopt-list and made table as default 2020-02-24 00:33:01 +01:00
Matthias
e37f055dad Improve some tests 2020-02-23 13:12:00 +01:00
Matthias
9301f81fc8 Add test for user-sell_timeout handling 2020-02-23 13:09:46 +01:00
Matthias
634e7cc34a Implement handle_buy_trade_customcallback 2020-02-23 13:08:11 +01:00
hroff-1902
d2181bdd94 Adjust tests 2020-02-23 01:55:07 +03:00
Matthias
8cd77b2e27 Add some tests for strategy_wrapper 2020-02-22 11:55:40 +01:00
Matthias
2fe7b683cb Add tests for cached rates 2020-02-22 11:23:13 +01:00
Matthias
97e6e5e976 Implement caching in the correct place 2020-02-22 11:12:33 +01:00
Matthias
f5b4a6d3d7 Remove fetch_ticker caching 2020-02-22 11:10:05 +01:00
Matthias
135d9ddf7a Fix test due to changed dry-run cancel order 2020-02-21 20:35:54 +01:00
Matthias
bf556c8678 Merge branch 'develop' into interface_ordertimeoutcallback 2020-02-21 20:35:07 +01:00
Fredrik81
09226fd5d5 PEP8 correction 2020-02-20 19:18:42 +01:00
Fredrik81
e7b12704de Added test for details 2020-02-20 19:12:55 +01:00
hroff-1902
bee28a1061
Merge pull request #2944 from freqtrade/move_defaultstrategy
Move defaultstrategy
2020-02-20 08:52:24 +03:00
Matthias
10668bb249
Update tests/strategy/test_strategy.py
Co-Authored-By: hroff-1902 <47309513+hroff-1902@users.noreply.github.com>
2020-02-20 06:22:36 +01:00
Matthias
a7342bd910 Fix non-existing strategy loading 2020-02-19 19:42:04 +01:00
Matthias
09d89fbfb3 Fix last test 2020-02-19 07:15:55 +01:00
Yazeed Al Oyoun
3fb6818bd8
Merge branch 'develop' into sortino_hyperopt_loss 2020-02-19 02:37:25 +01:00
Fredrik Rydin
585545405d Changed tests 2020-02-19 00:51:44 +01:00
Fredrik Rydin
2058b492eb Added function to print hyperopt-list as table using tabulate 2020-02-18 22:46:53 +01:00
Matthias
d91b9d1253 Fix some tests, don't default to freqtrade/strategy for imports 2020-02-18 20:26:20 +01:00
Matthias
1634297685 Move strategies to test subfolder 2020-02-18 20:12:10 +01:00
Matthias
6335d81ceb Merge branch 'develop' into data_handler 2020-02-16 15:12:14 +01:00
Matthias
44ac2409ff
Merge pull request #2923 from hroff-1902/status-strategies
Add printing statuses for enlisted strategies and hyperopts
2020-02-15 19:43:02 +01:00
hroff-1902
6139239b86 Address points stated in comments 2020-02-15 20:43:11 +03:00
hroff-1902
ddea4b9300 Fix test 2020-02-15 06:54:18 +03:00
hroff-1902
1cf19133f4 Added missing failing strategy 2020-02-15 05:41:58 +03:00
hroff-1902
29d9b6a46a Add test for enum failed 2020-02-15 04:32:10 +03:00
hroff-1902
93f9ff1b63 Fix existing test 2020-02-15 04:22:21 +03:00
Matthias
f024cc40d3 Fix windows test failure 2020-02-14 20:21:09 +01:00
Matthias
ecca7164d9 Fix small issue 2020-02-14 20:13:36 +01:00
Matthias
5efbdd25a7 Properly default to user_data/config.json if it exists 2020-02-14 20:04:05 +01:00
hroff-1902
4cdcf00ddc
Merge branch 'develop' into rpc_notification_fixes 2020-02-14 00:10:50 +03:00
Yazeed Al Oyoun
007cc94474 fixed tests to send refresh, since its no longer defaulted 2020-02-12 22:03:56 +01:00
Matthias
9a22ce69bd
Merge pull request #2908 from hroff-1902/tests_load_default_strategy
Do not instantiate directly DefaultStrategy in tests
2020-02-12 06:37:19 +01:00
hroff-1902
4f3376e2a1 Do not instantiate directly DefaultStrategy in tests 2020-02-12 01:39:15 +03:00
hroff-1902
e73dac8d91
Merge pull request #2905 from Fredrik81/hyperopt-more-filters
Adding --min-trades, --max-trades, --max-avg-profit, --max-total-profit for hyperopt-list
2020-02-11 23:46:48 +03:00
Fredrik Rydin
539343b20d Adding 2 more filter options for completeness 2020-02-11 21:29:55 +01:00
Yazeed Al Oyoun
899de8b27c modified tests for double partial call 2020-02-11 16:50:18 +01:00
Yazeed Al Oyoun
5f4c209fca fixed one more occurence of executed buy, and test 2020-02-11 16:14:49 +01:00
Fredrik Rydin
5b4d8d69ef Adding --min-trades and --max-trades for hyperopt-list 2020-02-11 16:02:08 +01:00
Yazeed Al Oyoun
fc29564974 Fixed messages and readability 2020-02-11 15:58:40 +01:00
Matthias
59a576ef3e
Merge pull request #2903 from hroff-1902/fix/tests_history-2
Minor: Fix tests_history.py
2020-02-11 07:14:13 +01:00
Matthias
81997cba8a
Merge pull request #2902 from hroff-1902/fix/tests_hyperopt_loss
Minor: Fix tests for hyperopt_loss
2020-02-11 07:13:29 +01:00
Matthias
57fcca9696
Merge pull request #2904 from hroff-1902/fix/tests_backtesting_container
Minor: Fix usage of an item from BTContainer in tests
2020-02-11 07:02:28 +01:00
hroff-1902
29f7c5071b Fix usage of an item from BTContainer in tests 2020-02-11 04:17:10 +03:00
hroff-1902
62bcb3d766 Fix tests in test_history.py 2020-02-11 03:43:20 +03:00
hroff-1902
2bcce33f23
Merge pull request #2888 from Fredrik81/hyperopt-filters
Added filter options to "hyperopt-list" in order to easier find epochs.
2020-02-10 23:59:40 +03:00
hroff-1902
d07c69809d Fix tests for hyperopt_loss 2020-02-10 18:32:41 +03:00
Matthias
83644ce5d8 Fix mypy type errors in tests 2020-02-10 10:35:48 +01:00
hroff-1902
0ba8d13de9
Merge pull request #2831 from xmatthias/feat/new_config
introduce new-config subcommand
2020-02-09 22:11:37 +03:00
Matthias
d65a06947d Merge branch 'develop' into data_handler 2020-02-09 15:16:43 +01:00
Fredrik Rydin
eb3783dc00 Fixed a blank line issue :-( 2020-02-09 14:30:29 +01:00
Fredrik Rydin
c648ec7c0c Added test cases and fixed a minor bug 2020-02-09 14:18:56 +01:00
Yazeed Al Oyoun
2796d3d8a0 added missing tests to increase coverage 2020-02-09 00:11:58 +01:00
Yazeed Al Oyoun
f3b1161640 wide notifications fixes 2020-02-08 21:02:52 +01:00
Matthias
abf10aec98 Merge branch 'develop' into feat/new_config 2020-02-07 17:02:14 +01:00
Yazeed Al Oyoun
6b279f297c fixed test 2020-02-07 16:45:07 +03:00
Yazeed Al Oyoun
a46b7bcd6d more fixes... 2020-02-07 16:44:43 +03:00
Yazeed Al Oyoun
951a19fb00 added tests for both sortino methods 2020-02-07 16:44:30 +03:00
Yazeed Al Oyoun
aa2cb937b1 flake8 :) 2020-02-07 03:54:47 +01:00
Yazeed Al Oyoun
ff819386e1 added draws to backtesting tables, reduced len of some labels to help fit this without increasing total width 2020-02-07 03:51:50 +01:00
Matthias
2816b96650 Create strategy_wrapper to call user-defined code with 2020-02-06 20:26:04 +01:00
Matthias
97e48080e8
Merge pull request #2839 from hroff-1902/list-hyperopts-2
Add list-hyperopts subcommand
2020-02-06 07:06:36 +01:00
Yazeed Al Oyoun
5b00eaa42d
Updated Strategy Summary table to match other backtesting tables (#2864) 2020-02-06 06:58:58 +01:00
Yazeed Al Oyoun
9639ffb140
added daily sharpe ratio hyperopt loss method, ty @djacky (#2826)
* more consistent backtesting tables and labels

* added rounding to Tot Profit % on Sell Reasosn table to be consistent with other percentiles on table.

* added daily sharpe ratio hyperopt loss method, ty @djacky

* removed commented code

* removed unused profit_abs

* added proper slippage to each trade

* replaced use of old value total_profit

* Align quotes in same area

* added daily sharpe ratio test and modified hyperopt_loss_sharpe_daily

* fixed some more line alignments

* updated docs to include SharpeHyperOptLossDaily

* Update dockerfile to 3.8.1

* Run tests against 3.8

* added daily sharpe ratio hyperopt loss method, ty @djacky

* removed commented code

* removed unused profit_abs

* added proper slippage to each trade

* replaced use of old value total_profit

* added daily sharpe ratio test and modified hyperopt_loss_sharpe_daily

* updated docs to include SharpeHyperOptLossDaily

* docs fixes

* missed one fix

* fixed standard deviation line

* fixed to bracket notation

* fixed to bracket notation

* fixed syntax error

* better readability, kept np.sqrt(365) which results in  annualized sharpe ratio

* fixed method arguments indentation

* updated commented out debug print line

* renamed after slippage profit_percent so it wont affect _calculate_results_metrics()

* Reworked to fill leading and trailing days

* No need for np; make flake happy

* Fix risk free rate

Co-authored-by: Matthias <xmatthias@outlook.com>
Co-authored-by: hroff-1902 <47309513+hroff-1902@users.noreply.github.com>
2020-02-06 06:49:08 +01:00
hroff-1902
d2cac1d8fd
Merge branch 'develop' into spreadfilter 2020-02-04 16:54:46 +03:00
untoreh
aa54fd2251 - added spread filter
- minimum value to volume pairlist
2020-02-04 14:49:59 +01:00
Matthias
54303880d3
Merge pull request #2849 from freqtrade/dependabot/pip/develop/pandas-1.0.0
Bump pandas from 0.25.3 to 1.0.0
2020-02-03 20:34:17 +01:00
Matthias
cbabc295c7 Don't convert to datetime - but convert to datetime64 instead 2020-02-03 20:25:43 +01:00
hroff-1902
64f04845b6
Merge pull request #2850 from freqtrade/try_fix_randoM-test
make sure asyncio_loop is not initialized within ccxt code
2020-02-03 17:45:49 +03:00
Matthias
f6c09160ab make sure asyncio_loop is not initialized within ccxt code 2020-02-03 15:17:36 +01:00
Matthias
2b69e7830d Fix failing CI test 2020-02-02 20:08:50 +01:00
hroff-1902
d12e03e50d Fix test inconsistency in test_freqtradebot.py 2020-02-02 20:01:25 +03:00
hroff-1902
cd0534efcc Add test 2020-02-02 19:41:22 +03:00
hroff-1902
e8c1abc509
Merge pull request #2799 from freqtrade/fix_stoploss_recreated
Fix stoploss recreated
2020-02-02 16:59:45 +03:00
hroff-1902
6594679e52
Merge pull request #2779 from freqtrade/stoploss_market
Stoploss on exchange for Kraken
2020-02-02 14:48:45 +03:00
Matthias
12317b1c53 Add some rudimentary tests for questions 2020-02-01 14:46:43 +01:00
Matthias
d1a3a2d000 Add tests for build_config 2020-02-01 14:22:40 +01:00
Matthias
cfa6a3e3d3 Don't overwrite files 2020-02-01 14:12:21 +01:00
Yazeed Al Oyoun
e2b3907df5 more consistent backtesting tables and labels 2020-01-31 04:39:18 +01:00
Matthias
83baa6ee2e Add test stub 2020-01-29 22:47:15 +01:00
Matthias
2f0775fa1b Extract build-config tests to new file 2020-01-29 21:31:09 +01:00
Matthias
940bfbee96 Move start_config out of build_commands file 2020-01-29 21:28:01 +01:00
Matthias
49c9258a08 enhance test 2020-01-29 20:43:10 +01:00
Matthias
dd83cb1b95 Extract selection generation to a seperate method 2020-01-29 20:27:38 +01:00
hroff-1902
68771a7861 Remove state attr from Worker 2020-01-29 17:08:36 +03:00
Matthias
1ef148317d Merge branch 'develop' into stoploss_market 2020-01-26 20:33:41 +01:00
Matthias
1b9af9d2d8 Merge branch 'develop' into data_handler 2020-01-26 20:31:13 +01:00
Matthias
02563019fc move setup_utils_config to configuration module 2020-01-26 14:15:53 +01:00
Matthias
a3e9d04383 Adjust imports to new place for arguments 2020-01-26 13:46:01 +01:00
Matthias
f347e5934a Small adjustments for moved commands 2020-01-26 13:46:01 +01:00
Matthias
b254bdfea3 Move plot_utils to plot_commands 2020-01-26 13:46:01 +01:00
Matthias
70a0346b0a Move data-stuff to data-commands 2020-01-26 13:46:01 +01:00
Matthias
7e23304187 Adjust tests to new paths 2020-01-26 13:46:01 +01:00
Matthias
6e85280467 Adjust imports 2020-01-26 13:46:01 +01:00
Matthias
a3ac05cc16 Fix missed mock 2020-01-25 13:38:13 +01:00
hroff-1902
52f0ed5310 Adjust tests 2020-01-25 12:49:37 +01:00
Matthias
72c273aaed Add test for closed trade case 2020-01-23 21:07:21 +01:00
Matthias
70b9bd9c0e Verify if trade is closed before acting on Stoploss_on_exchange 2020-01-23 20:36:48 +01:00
Matthias
f5a44e4fc4 open_order_id should be None when handling stoploss orders 2020-01-23 19:38:35 +01:00
Matthias
1d141cd406 Merge branch 'develop' into stoploss_market 2020-01-23 19:35:05 +01:00
Matthias
bc4c469797 Merge branch 'develop' into stoploss_market 2020-01-22 20:51:52 +01:00
Matthias
f36bc80ad1 Add parametrized tests for get_buy_rate 2020-01-22 19:43:02 +01:00
Matthias
8a940eb0c1 Align price finding function name on buy side with get_sell_rate 2020-01-22 14:46:28 +01:00
Matthias
fc2970f41b Merge branch 'develop' into data_handler 2020-01-21 06:58:48 +01:00
hroff-1902
66415d48d4
Merge pull request #2787 from freqtrade/dry_run_optional
remove default value calls for dry_run
2020-01-20 23:08:17 +03:00
Matthias
1bf475fa1a Remove .get calls for dry_run - it's a mandatory property 2020-01-20 20:24:40 +01:00
Matthias
6e3336cb30 Adapt test to verify behaviour of stoploss_on_exchange in dry-run 2020-01-20 20:10:06 +01:00
Matthias
10d9db72a8 Adjust tests slightly 2020-01-19 20:06:04 +01:00
Matthias
cf9331919f move exchange-specific order-parsing to exchange class
Related to stoploss_on_exchange in combination with trailing stoploss.

Binance contains stopPrice in the info, while kraken returns the same
value as "price".
2020-01-19 19:54:30 +01:00
Matthias
f1629c907a Implement stoploss for kraken 2020-01-19 14:40:09 +01:00
Matthias
e6f1912443 Use named arguments for stoploss create_order call 2020-01-19 14:40:09 +01:00
Matthias
16b34e11ca Complete rename of stoploss_limit to stoploss 2020-01-19 14:40:09 +01:00
Matthias
256fc2e78c Rename stoploss_limit to stoploss 2020-01-19 13:30:56 +01:00
Matthias
da0af489a2 Adjust tests to pass in order_types instead of rate 2020-01-19 13:25:41 +01:00
hroff-1902
2f82122fc4
Merge pull request #2763 from freqtrade/fix/precision_rounding
Fix/precision rounding
2020-01-17 01:25:30 +03:00
Matthias
fa1e9dd70d Adjust tests to allow updating within safe_sell_amount 2020-01-15 21:53:04 +01:00
Matthias
90ed4c665b Cover equal case via test 2020-01-15 19:59:08 +01:00
Matthias
c8806a16a1 Allow wallet update from /balance 2020-01-15 06:43:41 +01:00
Matthias
1e58cd70ad Adapt tests to round price up 2020-01-14 20:16:47 +01:00
Matthias
d7957bd791 add advanced tests for price_to_precision 2020-01-14 16:04:39 +01:00
Matthias
425ec53b28 Combine amount_to_precision tests into one 2020-01-14 16:01:35 +01:00
Matthias
797dc8a4da Add more detailed tests for amount_to_precision 2020-01-14 15:54:53 +01:00
Matthias
d12a2a5888
Merge pull request #2752 from freqtrade/plotting/indicator_strategy
Allow enhanced plot-dataframe configuration
2020-01-13 19:53:15 +01:00
Matthias
5fcab1eee8 Align method names to internal ccxt names
These methods are reimplemented from ccxt so we can test their behaviour.
2020-01-12 14:55:05 +01:00
Matthias
b60d7ad42f Use ccxt.decimal_to_precision instead of our own calculation 2020-01-12 14:41:09 +01:00
Matthias
fa1f9bcdbd expose precisionMode from exchange class 2020-01-12 14:37:45 +01:00
Matthias
3519cebf66 Add test for failing stake_validation 2020-01-11 13:14:19 +01:00
Matthias
60b47b6eec Add tests for get_quote_currencies 2020-01-11 12:01:34 +01:00
Matthias
ca2880537d Modify tests to skip stake_currency validations 2020-01-11 11:54:11 +01:00
Matthias
13274964a9 Implement validation for valid stake currency 2020-01-11 11:54:00 +01:00
Matthias
235a10ab86 Don't suppport <1m timeframes 2020-01-11 11:36:28 +01:00
Matthias
90a9052377
Merge pull request #2734 from freqtrade/relative_stake
Relative stake maximum tradable amount
2020-01-11 08:18:35 +01:00
Matthias
fab19ae3a7 Implement last_stake_amount_min_ratio 2020-01-10 06:36:28 +01:00
Matthias
785cd2a640 Rename test module 2020-01-09 06:53:51 +01:00
Matthias
c475729c13 Extract edge reporting to optimize_reports 2020-01-09 06:52:34 +01:00
Matthias
989ab646a9 Add profit % to sell_reason table 2020-01-09 06:46:39 +01:00
Matthias
b25f28d1ad
Merge pull request #2730 from freqtrade/extract_bt_reporting
Extract backtest reporting
2020-01-09 06:09:05 +01:00
Matthias
888ea58df2 Add tests for new behaviour 2020-01-05 19:51:12 +01:00
Matthias
ca054799d0 Add tests for amend_last_stake_amount 2020-01-05 13:25:21 +01:00
Matthias
a75420f75f Merge branch 'develop' into relative_stake 2020-01-05 12:55:55 +01:00
Matthias
7daa5bc338 Don't return None from unlimited_stake - 0 handles this just as well 2020-01-05 12:50:44 +01:00
Matthias
4eaaec9d1a Implement pair_to_filename to datahandler
includes tests - taken from #2744 and modified to adapt to new structure
2020-01-05 10:36:08 +01:00
Matthias
53499e01de Clearly differentiate trade buys sells (positive and negative)
* Swap trade buys to cyan circles
* Show sell-reason description on buy too
* Green positive sells - red negative / 0 sells
2020-01-04 20:27:27 +01:00
Matthias
2409261cb7 Merge branch 'develop' into data_handler 2020-01-04 11:36:27 +01:00
Matthias
b5a806dec7 Fix typo and add tests for create_plotconfig 2020-01-04 11:30:21 +01:00
Matthias
4628024de6 Adapt tests to new add_indicator methodology 2020-01-04 11:18:51 +01:00
hroff-1902
3798f94d4c
Merge pull request #2732 from freqtrade/config_validation_split
Config validation split
2020-01-03 23:41:44 +03:00
Matthias
7e7c82cf4a Small adjustments to relative_stake PR 2020-01-03 11:34:17 +01:00
Matthias
f3beaa3374 Deprecate capital_available_percentage 2020-01-03 10:58:31 +01:00
Matthias
6d01653bfe Adapt test to test more cases with reduced tradable_balance 2020-01-03 10:41:34 +01:00
Matthias
455838648d Apply get_available_balance logic to regular trades, too 2020-01-03 10:41:10 +01:00
Matthias
a8d56b2850 IMplement check for unlimited settings
verifying that either max_open_trades or stake_amount is set for
operations without edge
2020-01-03 07:07:59 +01:00
hroff-1902
b24d359a27
Merge pull request #2737 from freqtrade/plotting_percent
show percent in sell hover message.
2020-01-02 22:04:34 +03:00
Matthias
90744ff5ab show percent instead of ratio (!) 2020-01-02 19:36:31 +01:00
Matthias
94afb7cb1d Improve integration test with a few additional tests 2020-01-02 13:45:03 +01:00
Matthias
bfef3cf497 Add additional test case for lower balance ratios 2020-01-02 13:38:08 +01:00
Matthias
64db1f6736 Prepare tests to valiate reduced full amount. 2020-01-02 13:16:18 +01:00
Matthias
9325880fe5 Split config-validation requires 2020-01-02 10:39:32 +01:00
Matthias
2c8e8d8ef6 Align columns for btanalysis loading 2020-01-02 09:51:47 +01:00
Matthias
8cc48cf4b0 Fix tests where mocks fail now 2020-01-02 09:31:53 +01:00
Matthias
10ee23622a Extract tests for backtest_reports to their own test module 2020-01-02 09:31:53 +01:00
Matthias
904e1647e1 Extract generate_text_table_strategy to seperate module 2020-01-02 09:31:53 +01:00
Matthias
caec345c0b Extract generate_text_table_sell_reason from backtesting class 2020-01-02 09:31:53 +01:00
Matthias
18a53f4467 Extract generate_text_table from backtesting class 2020-01-02 09:31:47 +01:00
Matthias
3327ebf2b1
Merge pull request #2720 from hroff-1902/refactor-create-trades
Refactor create trades
2019-12-31 15:34:12 +01:00
Matthias
26a2395aeb Include Pair name in exception log message 2019-12-31 07:11:09 +01:00
Matthias
9d518b9d29 Add comment and don't hardcode 4 in test 2019-12-31 07:05:21 +01:00
Matthias
6ebb9017c7 Improve test enter_positions 2019-12-31 07:03:57 +01:00
Matthias
a88464de3a Improve some test code 2019-12-31 07:01:58 +01:00
hroff-1902
fd7af587da Rename process_maybe_execute_buys() --> enter_positions() 2019-12-30 22:50:56 +03:00
hroff-1902
84918ad424 Rename process_maybe_execute_sells() --> exit_positions() 2019-12-30 22:08:36 +03:00
Matthias
699c0d6bc3 Merge branch 'develop' into data_handler 2019-12-30 19:40:43 +01:00
Matthias
2537b8cb0c
Merge pull request #2725 from freqtrade/minor_fix
[Minor] Edge-cli should use exchangeresolver
2019-12-30 19:27:40 +01:00
Matthias
8e9a3e8fc8 Capture FtBaseException at the outermost level 2019-12-30 15:11:07 +01:00
Matthias
1ffda29fd2 Adjust improts to new exception location 2019-12-30 15:02:17 +01:00
Matthias
20abf67779 Add Debug "code" for randomly failing test 2019-12-30 14:29:36 +01:00
Matthias
df7ceb4ccb Fix misinformation in /status table 2019-12-29 19:53:02 +01:00
hroff-1902
ce84f74528 Adjust tests 2019-12-29 05:00:22 +03:00
hroff-1902
433fd2a7c3
Merge pull request #2652 from freqtrade/safe_sell_amount
Safe sell amount
2019-12-29 00:09:21 +03:00
Matthias
ae1b28aab7 Remove get_datahandlerclass from package exposes 2019-12-28 14:32:11 +01:00
hroff-1902
09b77d9f14
Merge pull request #2718 from hroff-1902/minor-freqtrade-2
Minor: code cleanup in freqtradebot
2019-12-28 14:55:42 +03:00
Matthias
9e4fc00a0f Add test for convert_ohlcv 2019-12-28 11:03:06 +01:00
Matthias
70f3ff0461 Add test for convert_trades_Format 2019-12-28 11:03:06 +01:00
Matthias
e7054adc49 Add tests for start_convert_data 2019-12-28 11:03:06 +01:00
Matthias
28787a001c Move convert functions to convert module 2019-12-28 11:02:34 +01:00
Matthias
6860491189 Rename datahandler module to history module
Also move previous history.py into this module - so everything is
bundled
2019-12-28 11:01:42 +01:00
Matthias
65f539e9d8 More tests for datahandler 2019-12-28 11:01:42 +01:00
Matthias
d65c1eea7a Add some tests for datahandler 2019-12-28 11:01:42 +01:00
Matthias
a3144cb2f0 remove trim_tickerlist 2019-12-28 11:01:42 +01:00
Matthias
baa942ff98 Don't use function to resolve pairname for test 2019-12-28 11:01:42 +01:00
Matthias
32c2ce146e Remove last usage of load_tickerlist 2019-12-28 11:01:42 +01:00
Matthias
4b277afc52 Remove test for load_tickerdata 2019-12-28 11:01:42 +01:00
Matthias
5479c67178 Clean up some codes which use list-based tests 2019-12-28 11:01:41 +01:00
Matthias
80dbba1280 Remove unnecessary mocks 2019-12-28 11:01:41 +01:00
Matthias
aa39f2160b Use load_data instead of a sequence of calls
in tests which don't test this
2019-12-28 11:01:41 +01:00
Matthias
a2567bea64 Remove unnecessary mock 2019-12-28 11:01:41 +01:00
Matthias
7a6476c9ba Update tests 2019-12-28 11:01:41 +01:00
Matthias
e4f185f357 Remove 'line' from load_cached_data tests
Users are unable to use line anyway, it's only there for tests
2019-12-28 11:01:41 +01:00
Matthias
df085a6f15 Fix small bug and test 2019-12-28 11:01:41 +01:00
Matthias
e861f05b75 Move dataframe trim to within jsondatahandler 2019-12-28 11:01:41 +01:00
Matthias
b7c1d55491 Modify tests to point to datahandlers 2019-12-28 11:01:41 +01:00
Matthias
9876d126ca Use handler for trades 2019-12-28 11:01:41 +01:00
Matthias
416517b0c9 Move trim_dataframe from history to converter 2019-12-28 11:01:41 +01:00
Matthias
9d8ea2f13b Replace calls to load_tickerdata_file with DataHandler calls 2019-12-28 11:01:41 +01:00
hroff-1902
004993583b
Merge pull request #2712 from freqtrade/strategylist
add list-strategies subcommand
2019-12-28 12:32:06 +03:00
Matthias
443fd8f7dd Merge branch 'develop' into safe_sell_amount 2019-12-28 09:42:52 +01:00
Matthias
b2fb28453f Fix tests after changing output 2019-12-28 06:39:25 +01:00
hroff-1902
6db75bc244
Merge pull request #2706 from freqtrade/data_dir
Convert datadir within config to Path
2019-12-28 05:14:48 +03:00
hroff-1902
b6d1c5b17a _get_trade_stake_amount() is not private 2019-12-28 01:44:51 +03:00
Matthias
e51ac2c973 Remove unavailable pair ... 2019-12-27 16:22:41 +01:00
Matthias
cadde3ab6d Check if markets.info is a dict before using it 2019-12-27 16:15:44 +01:00
Matthias
e5aed098b5 Enhance backtest results with sell reason profit / loss table 2019-12-25 09:39:29 +01:00
hroff-1902
5e6e625694
Merge pull request #2710 from freqtrade/rpc_balance_output
/balance should not convert to BTC
2019-12-24 23:59:05 +03:00
hroff-1902
a95454d338
Merge pull request #2709 from freqtrade/dry_wallet_fix
Fix bug in dry-run wallet
2019-12-24 23:55:22 +03:00
Matthias
ad75048678 Fix testing with path in windows 2019-12-24 15:53:40 +01:00
Matthias
27b8617077 Add tests 2019-12-24 15:35:38 +01:00
Matthias
5a11ca86bb Move instanciation out of search_object 2019-12-24 14:01:28 +01:00
Matthias
25e6d6a7bf Combine load_object methods into one 2019-12-24 13:54:46 +01:00
Matthias
eb1040ddb7 Convert resolvers to classmethods 2019-12-24 13:34:37 +01:00
Matthias
a105e5664a Align /balance output to show everything in stake currency
the conversation to BTC does not make sense
2019-12-24 06:58:30 +01:00
Matthias
b8442d536a Update integration test to also test dry-run-wallets 2019-12-24 06:47:25 +01:00
Matthias
6688a2c112 Merge branch 'develop' into doc/pricing_reasons 2019-12-24 06:33:51 +01:00
Matthias
bb8acc61db Convert datadir within config to Path
(it's used as Path all the time!)
2019-12-23 15:11:29 +01:00
Matthias
90cabd7c21 Wrap line 2019-12-23 10:46:35 +01:00
Matthias
c6d2233978 Convert StrategyLoader to static loader 2019-12-23 10:23:48 +01:00
Matthias
6d5aca4f32 Convert hyperoptloss resolver to static loader 2019-12-23 10:09:08 +01:00
Matthias
248ef5a0ea Convert HyperoptResolver to static loader 2019-12-23 10:06:19 +01:00
Matthias
560acb7cea Convert ExchangeResolver to static loader class 2019-12-23 10:03:18 +01:00
Matthias
5fefa9e97c Convert PairlistResolver to static loader 2019-12-23 09:56:12 +01:00
hroff-1902
98eed4f2ed
Merge pull request #2695 from freqtrade/custom_pairlock
Improve pairlocking mechanism to allow usage from within strategy
2019-12-22 15:03:24 +03:00
Matthias
ffd7034c00 Persist dry-run trade per default 2019-12-22 10:16:16 +01:00
Matthias
9835312033 Improve pair_lock handling 2019-12-22 09:46:00 +01:00
Matthias
6507a26cc1 Fix some tests after merge 2019-12-18 20:16:53 +01:00
Matthias
834a0ed620 Merge branch 'develop' into safe_sell_amount 2019-12-18 19:45:31 +01:00
Matthias
21622ac313 Rename get_ticker to fetch_ticker 2019-12-18 16:34:30 +01:00
hroff-1902
cf4c3642ce Minor improvements in data.history 2019-12-18 01:06:03 +03:00
hroff-1902
021fa1ca1a
Merge pull request #2678 from hroff-1902/dataprovider-history-split-refresh
Dataprovider history: split refresh part
2019-12-18 00:30:47 +03:00
hroff-1902
3a542bce62
Merge pull request #2674 from freqtrade/bt_trade_open_price
Pre-calculate open_trade_price
2019-12-17 21:51:13 +03:00
hroff-1902
b07d29b1af
Merge pull request #2676 from freqtrade/investigate_random_test_fail
Fix random test failure.
2019-12-17 14:23:30 +03:00
hroff-1902
b2796f99b6 Remove redundant refresh_pair_history 2019-12-17 14:06:21 +03:00
hroff-1902
60f89c8c01 Split refresh from load_data/load_pair_history 2019-12-17 13:43:42 +03:00
Matthias
8513a5e2d6 Fix failures in test_main 2019-12-17 11:35:39 +01:00
Matthias
2e2f084f66 Try to clear caplog ... 2019-12-17 11:07:59 +01:00
Matthias
86de88ed48 Align usage of history import in test 2019-12-17 09:36:26 +01:00
Matthias
a2964afd42 Rename profit_percent to profit_ratio to be consistent 2019-12-17 08:53:30 +01:00
Matthias
cbd10309f5 Add mid-state test 2019-12-17 07:13:08 +01:00
Matthias
861a7834fc Call calc_open_price() whenever necessary 2019-12-17 07:08:36 +01:00
Matthias
307ade6251 Cache open_trade_price 2019-12-17 07:02:02 +01:00
Matthias
0b5354f13d Add required arguments to Trade method 2019-12-17 06:58:10 +01:00
hroff-1902
4cd45b6535 Rename download_*_history as non-public 2019-12-16 21:57:03 +03:00
hroff-1902
2af9ffa7f2 Align refresh_backtest_ to each other 2019-12-16 21:43:33 +03:00
hroff-1902
39197458f4
Merge pull request #2661 from freqtrade/wallet_dry
Introduce Dry-Run Wallet
2019-12-16 14:00:11 +03:00
Matthias
c741b67c3c Adjust tests for dry_run wallet simulation 2019-12-15 10:39:52 +01:00
Matthias
5a5741878c Improve dry-run calculations 2019-12-15 10:26:56 +01:00
Matthias
52b212db64 Fix tests after changing dry_run_wallet amount 2019-12-15 09:38:06 +01:00
hroff-1902
1cc174c007
Merge pull request #2624 from freqtrade/backtest_refactor
handle and document ROI=-1
2019-12-14 23:11:36 +03:00
hroff-1902
e26f563f4b
Merge pull request #2655 from freqtrade/avoid_keyerror_backtest
Use first pair of pairlist to get fee
2019-12-14 23:10:40 +03:00
Matthias
2275a1539e Remove default symbol from get_fee() 2019-12-14 13:22:42 +01:00
Matthias
e4cc5c479f Test new show_config branch 2019-12-13 20:27:39 +01:00
hroff-1902
6c4f424887
Merge pull request #2651 from freqtrade/dry_amount
Round amount to precision also for dry-runs
2019-12-13 13:13:20 +03:00
Matthias
04257d8ecc Add tests for safe_sell_amount 2019-12-13 07:06:54 +01:00
Matthias
b69f5afaaf Round amount to precision also for dry-runs 2019-12-13 06:59:10 +01:00
Matthias
703924d6c4
Merge pull request #2643 from freqtrade/mins
Remove min (plural) from codebase
2019-12-12 14:27:39 +01:00
Matthias
f44e3dc319
Merge pull request #2642 from hroff-1902/fix-hyperopt-trailing
Fix generation of hyperopt trailing params
2019-12-11 19:53:42 +01:00
Matthias
d8b2d39f2f
Merge pull request #2628 from freqtrade/rpc/sell_duration
Telegram / sell duration
2019-12-11 07:15:00 +01:00
Matthias
7c7ca1cb90 Remove min (plural) from codebase 2019-12-11 07:12:37 +01:00
Matthias
1058e5fb72 No plural for min 2019-12-11 06:48:40 +01:00
Matthias
390db9503f Show humanized and minutes version of duration 2019-12-10 15:12:36 +01:00
hroff-1902
3252654ed3 Test adjusted 2019-12-10 14:06:17 +03:00
hroff-1902
0e4ef33d6a
Merge pull request #2581 from hroff-1902/hyperopt-list
Add hyperopt-list and hyperopt-show commands
2019-12-10 00:30:26 +03:00
hroff-1902
18c73ceb90 Add tests for the last commit 2019-12-10 00:22:11 +03:00
Matthias
de33ec4250 use sell_row.open also when the active ROI value just changed 2019-12-09 16:52:12 +01:00
hroff-1902
a9f7e9fb7a Fix NO_CONF; fix tests 2019-12-09 12:49:04 +03:00
hroff-1902
4b560880fd Add tests for hyperopt-list, hyperopt-show 2019-12-09 04:37:58 +03:00
Matthias
88a24da272 Adapt tests to sending open / close date 2019-12-08 14:10:04 +01:00
hroff-1902
a7d6dc9d3a
Merge pull request #2625 from freqtrade/validate_stakecurrency
Validate stake-currency against pairlist
2019-12-07 22:08:46 +03:00
Matthias
ed7207d4c8 Show pairs which are wrong ... 2019-12-07 19:31:15 +01:00
Matthias
bb9235c715 Validate stake-currency against pairlist - making sure only correct
pairs are in the whitelist
2019-12-07 15:42:47 +01:00
Matthias
1e6f9f9fe2 Add testcase for negative ROI sell using open 2019-12-07 15:18:09 +01:00
Matthias
703458f365 Add test for loading ticker-interval from strategy 2019-12-05 20:35:54 +01:00
hroff-1902
017a94adc1 Merge develop 2019-12-05 01:08:38 +03:00
hroff-1902
b20bea8492 Adjust tests 2019-12-04 23:15:19 +03:00
hroff-1902
8dd9b5c6fb
Merge pull request #2606 from freqtrade/volume_tester
Subcommand: test-pairlist
2019-12-04 18:31:37 +03:00
Matthias
054484ad73 load_pair_history should not return None, but an empty dataframe if no
data is found
2019-12-04 06:57:44 +01:00
Matthias
298e8b2332 Add testcase for test_pairlist 2019-12-03 15:10:27 +01:00