Commit Graph

1482 Commits

Author SHA1 Message Date
Matthias 05466d318a Modify test to check for this condition 2019-03-23 14:50:18 +01:00
hroff-1902 b448890210 test_main.py adjusted (only beginning) 2019-03-22 22:03:15 +03:00
Matthias 35d65bc7d7 Merge branch 'develop' into 'validate_whitelist' 2019-03-21 06:22:48 +01:00
hroff-1902 aa15312670 wallets cleanup 2019-03-19 20:51:27 +03:00
Matthias c8617e70a8
Merge pull request #1668 from freqtrade/fix/1658_no_telegram_updates
No telegram rate updates when orderbook is enabled
2019-03-18 19:40:32 +01:00
Matthias 8d173efe2d reword stopbuy message 2019-03-18 06:29:08 +01:00
Matthias 9373d0c915 Add tests for /stopbuy 2019-03-17 19:36:02 +01:00
iuvbio 937399606e fix flake8 2019-03-17 18:24:29 +01:00
iuvbio c2076af43b update tests 2019-03-17 18:18:44 +01:00
Matthias 8afce7e651 Add testcase for Testcase 2 2019-03-17 16:26:38 +01:00
iuvbio 8386496456 remove tests that are no longer applicable 2019-03-17 16:04:09 +01:00
Matthias 8c7e8255bb Add detailed test for trailing stop 2019-03-17 16:01:34 +01:00
Matthias f0e5113a7f Use Magicmock instead of lambda for mocking 2019-03-17 15:39:05 +01:00
Matthias a830bee9c7 Enable trailing_stop for BTContainer tests 2019-03-17 15:28:04 +01:00
Matthias a77d513513 Fix backteest detail numbering ... 2019-03-17 13:27:32 +01:00
Matthias a0e6cd93b6 Use bids, not asks for sell-rate detection 2019-03-17 11:27:01 +01:00
Matthias fc360608b7 Rename function to adjust_min_max 2019-03-16 20:14:45 +01:00
Matthias 01733c94fa Split up tests for adjust_stoploss and adjust_highlow 2019-03-16 20:04:55 +01:00
Matthias 7166a474ae Add min_rate - always update min/max rates 2019-03-16 19:54:16 +01:00
Matthias e7f6df46e8 Add missing bt file 2019-03-16 19:15:20 +01:00
Matthias a123246ac9 Add test for load_backtest_data 2019-03-16 17:50:57 +01:00
Matthias ddb9933c91 Remove duplicate-check from test - it's in btanalysis 2019-03-16 17:28:28 +01:00
Matthias 29aa159827 Add test for get_sell_rate 2019-03-16 13:32:26 +01:00
Matthias d42ebab575 Rename function and add test 2019-03-16 10:38:25 +01:00
misagh edf2cd0b92 configuration test fixed 2019-03-14 09:26:31 +01:00
misagh 29305dd070 config validation moved to configuration file 2019-03-14 09:01:03 +01:00
misagh 3c99e3b7c7 test adapted to new market refactoring 2019-03-14 09:00:28 +01:00
misagh 9a226ec7e6 conflict with develop resolved 2019-03-14 07:56:21 +01:00
Matthias 6b8f5963a8
Merge pull request #1623 from iuvbio/markets_refactor
Markets refactor
2019-03-14 06:22:18 +01:00
Matthias 9054165e8a Adjust test, since rpc_message is now called on buy and sel 2019-03-12 21:55:18 +01:00
iuvbio 7ffe65770e fix test 2019-03-12 17:54:16 +01:00
iuvbio 0ffefe44a7 reorder vars 2019-03-12 16:31:22 +01:00
iuvbio deddbda26e delete markets patch from conftest 2019-03-12 16:31:22 +01:00
iuvbio 1a92bf9e8e add test 2019-03-12 16:31:22 +01:00
iuvbio 8741017819 remove get_markets 2019-03-12 16:31:22 +01:00
iuvbio e234158cc9 update tests 2019-03-12 16:31:22 +01:00
iuvbio c30fb7f590 return markets as dict 2019-03-12 16:31:22 +01:00
misagh f55d75e7fc TSL validation tests added 2019-03-12 15:35:44 +01:00
misagh f1f311e456 Merge branch 'develop' into trailing_only_offset 2019-03-12 12:32:10 +01:00
Matthias 4705b7da0e Add time_in_force test for sell 2019-03-11 20:30:16 +01:00
Matthias c0f276a892 Move kraken specific tests to their own file 2019-03-11 20:22:51 +01:00
Matthias e666c6850e Fix tests so Market orders should not send timeInForce 2019-03-11 20:20:51 +01:00
misagh ca496c13b8 TSL only offset test added 2019-03-10 17:11:28 +01:00
Matthias 4cd70138b6 Add test to make sure this ain't reintroduced 2019-03-08 21:26:21 +01:00
Matthias e67ffd2d87 Fix issue that backtest is broken when stoploss_on_exchange is on 2019-03-06 19:55:34 +01:00
Matthias 3c5deb9aaf Add test for precision_remove ...
BTT should not be in the list when that is enabled.
2019-03-03 15:31:48 +01:00
iuvbio 786244c0d3 Merge branch 'develop' into feature/volume-precision-pairlist 2019-03-02 18:55:40 +01:00
iuvbio e1ae0d7e90 remove markets changes 2019-03-02 18:53:42 +01:00
hroff-1902 4df44d8b32 wallets cleanup 2019-03-01 01:26:29 +03:00
Matthias 79aac473b3 Remove market_url from tests 2019-02-26 19:27:28 +01:00
Matthias ee0e381d65
Merge pull request #1595 from freqtrade/binance_subclass
Create binance Subclass and parametrize exchange-tests
2019-02-26 19:26:23 +01:00
Misagh cee4116b80
Merge pull request #1576 from hroff-1902/patch-10
Minor: code cleanup in _process()
2019-02-26 10:17:21 +01:00
Matthias 0c53bd6dd4 Complete refactor, moving query_trades to persistance as get_open_trades 2019-02-25 20:00:17 +01:00
Matthias 31be4d2454 Add parametrized tests 2019-02-24 20:08:27 +01:00
Matthias e0b634ba3b Parametrize exchanges and test multiple exchanges 2019-02-24 19:59:45 +01:00
Matthias a05155cb75 Adapt failing test 2019-02-24 19:41:47 +01:00
Matthias 2531961bf8
Merge pull request #1571 from hroff-1902/patch-9
multiple --config options
2019-02-24 13:50:39 +01:00
Matthias 9b288c6933 Add test to specifically test for merged dict 2019-02-24 13:29:22 +01:00
iuvbio 71774bce6f Merge branch 'develop' of https://github.com/freqtrade/freqtrade into order_creation 2019-02-22 19:02:31 +01:00
iuvbio b79d967371 add tests, further consolidate orders 2019-02-22 01:48:35 +01:00
Matthias be754244a3 Only resolve exchanges from correct location 2019-02-21 07:07:45 +01:00
Matthias e0f426d863 Allow import freqtrade.exchange.* 2019-02-21 06:59:52 +01:00
Matthias 4315c157c7 Move exception handling to resolver, add test 2019-02-20 20:13:23 +01:00
hroff-1902 4fbba98168 tests adjusted for multiple --config options 2019-02-20 17:54:20 +03:00
iuvbio bb31e64752 add test_sell_kraken_trading_agreement 2019-02-19 21:56:20 +01:00
iuvbio 481cf02db9 add test and fix exchange_resolver 2019-02-19 19:15:22 +01:00
Matthias e0c420b93f
Merge pull request #1550 from hroff-1902/patch-2
execute_buy, handle_trade: do not use ticker if use_order_book:true is set in config
2019-02-16 13:55:33 +01:00
Matthias 98bd713624 iUpdate orderbook_bid_test 2019-02-14 19:15:16 +01:00
Matthias f852be1a9b Fix tests for get_ticker fix 2019-02-14 07:27:13 +01:00
hroff-1902 b87e15774b
test adjusted 2019-02-13 13:02:57 +03:00
hroff-1902 69f69d965c
test asserts aligned accordingly to new log messages 2019-02-10 23:37:24 +03:00
Matthias 1d940041e3 Add log test for cancelled order 2019-02-03 13:52:05 +01:00
Matthias 40fea4593f Add log_has_re 2019-02-03 13:52:05 +01:00
Matthias 91ed02134e Add tests for cancelled on exchnage 2019-02-03 13:52:05 +01:00
Samuel Husso e3ae8d3f69 flake8 3.7.1 fixes 2019-01-31 07:51:03 +02:00
Misagh 421be5da86
Merge pull request #1511 from freqtrade/fix/more_settings_strategy
add more settings to strategy
2019-01-30 11:22:10 +01:00
Misagh 22e82f5e47
Merge pull request #1507 from xmatthias/feat/dataprovider
Data Provider
2019-01-27 12:32:18 +01:00
Matthias 38f73dafb3 Fix indexing error 2019-01-27 10:47:24 +01:00
Matthias 1d08ada939 Fix backtest-test with timestamp-conversion 2019-01-27 10:40:52 +01:00
Matthias 3446dd1792 Add test informative_pairs_added 2019-01-26 20:05:49 +01:00
Matthias 02d13645b0 Merge branch 'develop' into feat/dataprovider 2019-01-26 19:29:41 +01:00
Matthias da5210ef5b
Merge branch 'develop' into feature/plot_df_refactoring_multiple_pairs 2019-01-26 11:04:35 +01:00
AxelCh eec7276393 fix crash when backtest-result.json not exist 2019-01-26 11:00:04 +01:00
Matthias 74b03d0529 Add tests and default values for all experimental features 2019-01-24 07:03:41 +01:00
Gianluca Puglia 896c9d34fd Added total profit column do backtest result 2019-01-22 22:41:53 +01:00
Matthias a06593e6e9 Fix test 2019-01-22 19:17:21 +01:00
Matthias c77607b997 Fix tests after rebase 2019-01-22 07:38:15 +01:00
Matthias 1e7431a7b8 Blackify 2019-01-22 07:07:15 +01:00
Matthias e66808bb02 Add additional pairs to refresh call 2019-01-22 07:07:15 +01:00
Matthias d6cdfc58af Fix mypy hickup after changing list to tuples 2019-01-22 07:07:15 +01:00
Matthias f0af4601f9 Adopt plot_dataframe to work with --live 2019-01-22 07:07:15 +01:00
Matthias a9abc25785 Improve data-provider tests 2019-01-22 07:07:15 +01:00
Matthias 5f61da30ed Adjust tests to 3tuple return value from async method 2019-01-22 07:06:30 +01:00
Matthias e503d811bd Change logmessages to match functions called 2019-01-22 07:05:09 +01:00
Matthias a206777fe5 Rename refresh_tickers to refresh_latest_ohlcv 2019-01-22 07:05:09 +01:00
Matthias 646e98da55 Always return dataframe 2019-01-22 07:04:19 +01:00
Matthias 2b029b2a86 Only return ohlcv if available (Live and dry modes) 2019-01-22 07:04:19 +01:00
Matthias d3a37db79a Provide available pairs 2019-01-22 07:04:19 +01:00
Matthias f034235af4 Tests for RunMode 2019-01-22 07:04:19 +01:00
Matthias 1340b71633 Add RunMode setting to determine bot state 2019-01-22 07:04:19 +01:00
Matthias a7db4d74cb Add some simple dataprovider tests 2019-01-22 07:04:19 +01:00
Matthias 4e760e1a5e Test for errors found in 1491
fixes #1491
2019-01-19 20:03:04 +01:00
misagh 87329a393c adding stop loss last update to test persistence 2019-01-18 12:14:00 +01:00
misagh 5e2e96acd2 compatibility with edge added 2019-01-16 18:38:20 +01:00
misagh 611b48dbb9 fix return value from info hash: value is in string 2019-01-16 16:15:36 +01:00
misagh a44f781284 Merge branch 'develop' into tsl_on_exchange 2019-01-16 14:56:27 +01:00
misagh cffc9ce890 last step: stop loss on exchange added to trailing 2019-01-16 14:49:47 +01:00
misagh 6d588b3b0b trailing stop loss on exchange extracted to a separate function 2019-01-16 14:28:52 +01:00
misagh e31fa8721f Merge branch 'develop' into tsl_on_exchange 2019-01-16 11:52:23 +01:00
misagh 29439c05d6 adding update beat test 2019-01-16 11:51:54 +01:00
misagh 1cd5abde37 removing unnecessary guard 2019-01-16 11:22:25 +01:00
misagh 12e8108015 checking params of cancel order and stop loss order 2019-01-15 15:36:41 +01:00
misagh f0cfab7940 flaking 8 2019-01-15 11:10:28 +01:00
misagh cfe00c2f0c initial test added for TSL on exchange 2019-01-15 11:04:32 +01:00
Matthias cd2bccd441 Have backtest use the same logic to get the ROI entry 2019-01-12 13:45:43 +01:00
Matthias 9e0902e72f Add test for case for odd ROI dict - #1478 2019-01-12 13:38:49 +01:00
misagh e025ad3918 temp test commit 2019-01-09 16:23:13 +01:00
Matthias 99e2d795c5
Merge pull request #1475 from freqtrade/feat/hyperopt_sell
Feat/hyperopt sell
2019-01-08 21:19:53 +01:00
Matthias f620449bec Add test for hyperoptresolver 2019-01-06 19:38:32 +01:00
Matthias 440a7ec9c2 fix pytest 2019-01-06 19:31:25 +01:00
Gianluca Puglia 13800701ce Fix custom db_url ignored if provided by conf.json 2019-01-06 13:47:36 +01:00
Matthias 2147bd8847 Fix problem when no experimental dict is available 2019-01-06 13:29:14 +01:00
Matthias 5e23442032 Simplify StrategyResolver by code deduplication 2019-01-05 07:20:38 +01:00
Matthias 4599c80e79 Add trailing-stop to strategy 2019-01-05 07:10:25 +01:00
Misagh 26a77e193e
Merge pull request #1454 from freqtrade/feat/interpolate_missing
interpolate missing candles
2019-01-04 22:33:53 +01:00
Misagh 3b5785884f
Merge pull request #1460 from freqtrade/fix/stop_loss_result
Stop loss should also be shown when trailing is active
2019-01-02 16:41:15 +01:00
Misagh dcdd7d7436
Merge pull request #1456 from freqtrade/fix/refresh_pairs_cached
Fix bug on --refresh-pairs-cached
2019-01-02 14:02:11 +01:00
Matthias 516217b6cb Stop loss should also be shown when trailing is active 2019-01-02 13:34:08 +01:00
Matthias 1b84aa82eb dont use 55 for regular check as that's a key in the dict 2019-01-01 16:54:44 +01:00
Matthias da6f1a3945 Sequence of minroi dict must be irrelevant 2019-01-01 16:32:45 +01:00
Matthias a54d8f0e16 Create datadir when not exists 2019-01-01 14:07:40 +01:00
Matthias dd1d3430b9 Add explicit test for ohlcv fillup 2018-12-31 19:40:14 +01:00
Matthias fae875f588 Implement missing_data_fillup to tests and operations 2018-12-31 19:15:49 +01:00
Matthias d409211908 add test to verify data does not contain missing data afterwards 2018-12-31 09:24:04 +01:00
Matthias 03389d961f ADd test for data_interpolate 2018-12-31 09:18:22 +01:00
Matthias 61f8ce5c0e remove unused imports 2018-12-28 10:44:24 +01:00
Matthias 7dc40cdac5 refactor file_load_json to be standalone 2018-12-28 10:25:41 +01:00
Matthias 065b469a10 rename test to avoid naming collision 2018-12-28 10:04:07 +01:00
Matthias c955415cc3 Switch from ujson to rapidjson 2018-12-28 10:01:16 +01:00
Matthias 9af2fca718 Add handling for market orders
fixes #1427 and #1428
2018-12-27 11:19:26 +01:00
Matthias 20cdabbe9c Add test for market order 2018-12-27 09:31:21 +01:00
misagh 7243da3afe tests added for klines copy=True 2018-12-22 19:03:42 +01:00
misagh a13b30b2de removing test 2018-12-21 10:21:31 +01:00
misagh 215ded2e0a returning last candle close price for a pair 2018-12-17 21:30:58 +01:00
Misagh 1dbcab0b09
Merge pull request #1413 from freqtrade/feat/data_helpers
Feat/data helpers
2018-12-17 09:14:10 +01:00
Matthias b3bb98777b
Merge branch 'develop' into time_in_force 2018-12-17 06:37:46 +01:00
Matthias eb7034c7a7 Rename download_backtest_testdata to download_pair_history 2018-12-16 10:33:08 +01:00
Matthias 50938d410a Remove tests for download_pairs 2018-12-16 10:30:13 +01:00
Matthias 8826a1df5f Add missing tests for trim_tickerlist 2018-12-16 10:19:49 +01:00
Matthias 043cefd60a allow reloading single pair 2018-12-16 10:17:11 +01:00
Matthias 8a3c2a0c63 allow only loading 1 pair if necessary
* simplify tests nad remove unnecessary mocking
2018-12-15 20:32:55 +01:00
Matthias 429f846ad1 Switch load_data to kwargs 2018-12-15 20:31:05 +01:00
Matthias d0c9791ca6 Fix tests to support load_data with dataframe 2018-12-15 15:38:40 +01:00
Matthias 34ea214f7c Fix some tests to use dataframe 2018-12-15 14:42:21 +01:00
Matthias 6c02cc5993 Adjust test to pathlib 2018-12-15 14:14:38 +01:00
Matthias a34c2cf64b Add missing test-module __init__.py 2018-12-15 13:40:02 +01:00
Matthias 17a820e5c0 Move tests from test_optimize to test_history 2018-12-14 06:32:49 +01:00
Matthias 92c800d925 Adjust tests to data.history 2018-12-14 06:32:49 +01:00
Matthias 0250a96feb Sort imports 2018-12-14 06:32:49 +01:00
Matthias b38195e9b3 Rename to converter 2018-12-14 06:32:49 +01:00
Matthias 453f62cdfa Adjust imports 2018-12-14 06:32:49 +01:00
Matthias 030ecbfc17 move exchange_helpers to data module 2018-12-14 06:32:49 +01:00
Matthias 5c3dcf3e2b Test for wrong inputs (empty / none-dataframes) in get_signal 2018-12-12 19:35:51 +01:00
Matthias d6ba4f0e81 Fix last 2 tests to use DF as data container 2018-12-12 19:17:09 +01:00
Matthias 7a533de1a8 Use list ticker history for backtesting 2018-12-12 19:17:09 +01:00
Matthias fe3990af3d Adjust some tests to dataframe passing 2018-12-12 19:17:09 +01:00
misagh 8d8b53f4d1 added tests for IOC and FOK 2018-12-12 13:05:55 +01:00
Matthias 81b4940eef Adjust tests to new fiat-convert location 2018-12-11 20:27:54 +01:00
Matthias 0f2c547805 Move fiat-convert to subfolder 2018-12-11 20:26:53 +01:00
Matthias 0ab8ac1c1d Add test to verify downloading history does not modify
_pairs_last_refresh_time
2018-12-11 19:18:28 +01:00
Matthias e2bff9d5cb Remove assigning klines from download method 2018-12-10 20:22:21 +01:00
misagh adcaa8439e test_strategy_override_order_tif added 2018-12-10 19:17:56 +01:00
misagh e6fd7da43f adding test: create order should consider TIF 2018-12-10 19:09:20 +01:00
misagh 866b7aee8e tests fixed 2018-12-09 16:22:21 +01:00
Matthias 3b951c3817 Drop indexes on renamed table
avoid naming conflicts on recreate (indexes are not renamed, and keeping
them on backup tables does not really make sense).

fixes #1396
2018-12-09 09:03:17 +01:00
Matthias 2c27736dfe
Merge pull request #1390 from freqtrade/feat/dynamic_provider
Dynamic Pairlist provider
2018-12-09 08:39:53 +01:00
Matthias aa579bafa4
Merge pull request #1365 from mishaker/edge_position
Fix edge position sizing.
2018-12-06 20:02:31 +01:00
Matthias a63f123b6d Check if number_assets is defined, as it's required by VolumePairList 2018-12-06 19:36:33 +01:00
misagh 0ea7dc9272 test added for total open trade stake amount from schalchemy 2018-12-06 13:51:06 +01:00
Matthias 0c10719037 Specify JsonValidatorversion explicitly
without doing that, it exclusiveMaximum raises an exception
as jsonschema defaults to the latest version (Draft6)
which changes behaviour of this property.

fixes #1233
2018-12-06 06:57:07 +01:00
Matthias 2f0d7a1aea Add specific test 2018-12-05 20:45:11 +01:00
Matthias 6ab907bef1 Rename config whitelist to pairlist 2018-12-04 20:24:45 +01:00
Matthias 4143e2c032 adapt tests to send sell-reason in sell-message 2018-12-04 19:58:43 +01:00
misagh 24f9ea29c6 tests fixed 2018-12-04 17:13:46 +01:00
Matthias bf678164c7 remove default param - fix tests 2018-12-04 07:16:34 +01:00
Matthias 0929f59680 Refactor pairlist-tests 2018-12-03 20:48:51 +01:00
Matthias 18ad3388b4 Some more tests adapted to pairlists 2018-12-03 20:38:15 +01:00
Matthias ef1208b366 Fix rpc messages 2018-12-03 20:31:25 +01:00
Matthias 1b3ecb8343 Deprecate --dynamic-whitelist 2018-12-03 20:00:18 +01:00
Matthias 3360e777a1 Fix flake adn mypy 2018-12-03 19:29:35 +01:00
Matthias 26187ef6c7 patch exchange_has 2018-12-02 22:18:14 +01:00
Matthias d09dbfe2e6 Add volumePairList - refactor tests to correct file 2018-12-02 22:07:09 +01:00
Matthias 58c7adae0a Test for blacklist 2018-12-02 22:07:09 +01:00
Matthias 8fd713f3ae validate_whitelist should return the list again 2018-12-02 22:07:09 +01:00
Matthias 1738633efc Fix refresh_whitelist tests 2018-12-02 22:07:09 +01:00
Matthias bb828c308f Remove unnecessary test-file 2018-12-02 16:03:34 +01:00
misagh 237dc8290f conflict resolved0 2018-12-01 12:00:03 +01:00
misagh bd673178ce constants removed 2018-12-01 11:56:53 +01:00
misagh 33f1cc13b3 fixing tests 2018-12-01 11:56:16 +01:00
misagh b1c81acfcb another futile one 2018-12-01 10:53:21 +01:00