Matthias
3c451e0677
Add test for bugreport #1111
2018-08-08 21:54:52 +02:00
Nullart2
c9c0e108ab
refactor
2018-08-07 18:29:37 +08:00
Matthias
255f303850
Fix tests and flake8
2018-08-07 08:56:06 +02:00
Matthias
131d268721
Fix failing tests when metadata in analyze_ticker
is actually used
2018-08-06 19:15:30 +02:00
Samuel Husso
199bd7bc50
Merge pull request #1123 from freqtrade/fix-db_migration
...
Fix db migration
2018-08-06 12:00:22 +03:00
Axel Cherubin
65f7b75c34
fix flake8 issue
2018-08-05 17:52:06 -04:00
Axel Cherubin
0b825e96aa
fix talib bug on bollinger bands and other indicators when working on small assets, rise talib prescision and add test associated
2018-08-05 16:08:49 -04:00
Nullart2
1309c2b14f
tests update
2018-08-05 22:56:14 +08:00
Nullart2
7143b64fb7
tests for coverage
2018-08-05 22:41:58 +08:00
Nullart2
4a9bf78770
Order Book with tests
2018-08-05 12:41:06 +08:00
Matthias
ea506b05c6
Add test for failing database migration
2018-08-04 20:22:16 +02:00
Matthias
337d9174d9
Flake8 fixes
2018-08-02 20:11:27 +02:00
misagh
05ca78d2a3
ticker_history changed to candle_history naming
2018-08-02 17:10:38 +02:00
misagh
2ec2f1abce
async branch updated to reflect develop branch changes
2018-08-02 16:48:21 +02:00
Janne Sinivirta
e282d57a91
fix broken test
2018-08-02 12:57:47 +03:00
Janne Sinivirta
3a5b435dfa
Merge pull request #1089 from freqtrade/feat/backtest_multi_strat
...
Allow multi strategy backtest without data reload
2018-08-02 12:35:47 +03:00
Janne Sinivirta
17d78b7807
Merge pull request #1115 from creslinux/candlesnottickers
...
renamed/refactored get_ticker_history to get_candle_history to stop confusion
2018-08-02 12:33:09 +03:00
creslin
1f97d0d78b
fix
2018-08-02 09:15:02 +00:00
creslin
a741f1144a
missing __init__.py
2018-08-02 08:58:04 +00:00
creslin
f619cd1d2a
renamed/refactored get_ticker_history to get_candle_history
...
as it does not fetch any ticker data only candles
and is causing confusion when developer are talking about candles /tickers
incorreclty.
OHLCV < candles and Tickers are two seperate datafeeds from the exchange
2018-08-02 08:45:28 +00:00
Matthias
915160f21f
Add tests for tickers-history
2018-08-01 21:44:02 +02:00
Matthias
c466a028e0
Add a first async test
2018-08-01 21:40:54 +02:00
Matthias
5b8ee214f9
Adapt to pair_to_strat methology
2018-08-01 07:28:12 +02:00
Matthias
038e97667f
Merge branch 'develop' into BASE64
2018-08-01 07:26:13 +02:00
Matthias
40ee86b357
Adapt after rebase
2018-07-31 21:08:03 +02:00
Matthias
765d1c769c
Add test for stratgy summary table
2018-07-31 21:04:03 +02:00
Matthias
a8b55b8989
Add test for strategy-name injection
2018-07-31 21:04:03 +02:00
Matthias
bd3563df67
Add test for new functionality
2018-07-31 21:04:03 +02:00
Matthias
9a42aac0f2
Add testcase for --strategylist
2018-07-31 21:04:03 +02:00
Matthias
12417cc303
fix tests
2018-07-31 20:54:51 +02:00
Janne Sinivirta
1044d15b17
Merge pull request #1096 from freqtrade/cleaner-tests
...
Cleaning unit tests, first set
2018-07-31 08:22:33 +03:00
Matthias
5a55cd25ff
Merge branch 'develop' into sandbox2
2018-07-30 20:18:48 +02:00
Janne Sinivirta
f85cc422a3
Merge branch 'develop' into cleaner-tests
2018-07-30 21:08:55 +03:00
Janne Sinivirta
155e134f50
Merge pull request #1097 from creslinux/gdax3
...
Enable GDAX support by rounding amount/rate (with unit tests)
2018-07-30 21:04:26 +03:00
creslin
fe27ca63b4
Update test_exchange.py
2018-07-30 17:08:33 +00:00
creslinux
012fe94333
Recommitted as new branch with unit tests - GIT screwd me on the last PR
2018-07-30 16:49:58 +00:00
Janne Sinivirta
8b8d3f3b75
default_conf is function-scoped fixture, no need to deepcopy it
2018-07-30 15:41:02 +03:00
Janne Sinivirta
67d1693901
avoid validating default_conf hundreds of times
2018-07-30 14:57:51 +03:00
Janne Sinivirta
3083e5d2be
use pytest fixture properly in test_hyperopt
2018-07-30 13:26:54 +03:00
Janne Sinivirta
affdeb8fd8
rename func to throttled_func
2018-07-30 12:58:29 +03:00
Janne Sinivirta
fb80964b69
freqtradebot tests don't need to mock coinmarketcap anymore
2018-07-30 12:58:29 +03:00
Janne Sinivirta
1c20ef873d
remove parens
2018-07-30 12:09:07 +03:00
Janne Sinivirta
df53e912f0
fix one more test that was missing mock and needed internet
2018-07-30 12:09:07 +03:00
Janne Sinivirta
e242842805
remove more useless docstrings from tests
2018-07-30 12:09:07 +03:00
Matthias
2401fa15d2
Change missed calls to advise_* functions
2018-07-29 21:07:21 +02:00
Matthias
787d6042de
Switch from pair(str) to metadata(dict)
2018-07-29 20:56:23 +02:00
Matthias
39cf0decce
don't use __annotate__
...
it is only present when typehints are used which cannot be guaranteed
for userdefined classes
2018-07-29 20:55:40 +02:00
Matthias
f286ba6b87
overload populate_indicators to work with and without pair argumen
...
all while not breaking users strategies
2018-07-29 20:55:40 +02:00
Matthias
8a9c54ed61
use new methods
2018-07-29 20:55:37 +02:00
Matthias
18b8f20f1c
fix small test bug
2018-07-29 20:55:37 +02:00
Matthias
f12167f0dc
Fix backtesting test
2018-07-29 20:55:37 +02:00
Matthias
0eff6719c2
improve tests for legacy-strategy loading
2018-07-29 20:55:37 +02:00
Matthias
aa772c28ad
Add tests for advise_indicator methods
2018-07-29 20:55:37 +02:00
Matthias
c9a97bccb7
Add tests for deprecation
2018-07-29 20:55:32 +02:00
Gert Wohlgemuth
921f645623
fixing tests...
2018-07-29 20:55:06 +02:00
Gert Wohlgemuth
3dd7d209e9
more test fixes
2018-07-29 20:55:06 +02:00
xmatthias
2e6e5029ba
fix mypy and tests
2018-07-29 20:55:06 +02:00
Janne Sinivirta
f832edf5bc
remove useless docstrings from tests
2018-07-29 17:09:44 +03:00
Janne Sinivirta
1bbb86c621
remove nonsense asserts
2018-07-29 16:23:17 +03:00
creslinux
1e804c0df5
flake 8
2018-07-29 08:10:55 +00:00
creslinux
fc06d028b8
Unit tests for sandbox pass / fail scenarios
...
Big Wave of appreciation to xmatthias for the guidence on how
Mocker works
2018-07-29 08:02:04 +00:00
Samuel Husso
cfcc2e61e5
Merge pull request #1088 from freqtrade/fix/unpatched_mock
...
fix rpc test going to network
2018-07-29 09:53:52 +03:00
Samuel Husso
187e039a58
Merge pull request #1034 from freqtrade/feat/positive_sl_limit
...
add offset for positive trailing stop loss
2018-07-29 08:30:29 +03:00
creslinux
0a059662b3
Submitting with unit test for the working scenario.
...
Strongly recommend core team check the unit test is even targetting the
correct code in exchange/__init__.py
I have a real knowledge gap on mocker, in so far as how tests map to
what they're targeting.
2018-07-28 20:32:10 +00:00
Matthias
243b63e39c
fix rpc test going to network (unsuitable for flights...)
2018-07-27 21:14:41 +01:00
Matthias
f2a9be3684
Adjust tests and remove legacy variable
2018-07-26 19:06:25 +01:00
Matthias
3324cdfcbe
add mock for get_history in patch_get_signal
2018-07-26 18:58:49 +01:00
Janne Sinivirta
726b94b077
Merge pull request #1069 from freqtrade/feat/movefiatconverttorpc
...
Feat/movefiatconverttorpc
2018-07-26 14:25:58 +03:00
Matthias
dc1ad3cbf6
whitespace issues
2018-07-24 23:08:40 +01:00
Matthias
ff6435948e
Fix random test failure
2018-07-24 22:53:10 +01:00
Matthias
30b72ad98a
don't show fiat-currency if not set
2018-07-24 08:20:32 +01:00
Janne Sinivirta
0b3190552e
Merge pull request #1018 from freqtrade/feat/sell_reason
...
Record sell reason
2018-07-24 09:09:45 +03:00
Matthias
643de58c4d
Add test to check for a mid-migrated database (not old but not new)
2018-07-23 09:09:56 +01:00
Janne Sinivirta
aba3c69765
Merge pull request #1061 from freqtrade/fix_networkcall
...
Add missing mock
2018-07-23 07:19:37 +03:00
Matthias
0775a371fe
rename sellreason to sell_Reason, fix typos
2018-07-23 00:54:20 +01:00
Matthias
23fe0db2df
Add missing mock
2018-07-22 17:06:42 +01:00
Matthias
f54ac5a8de
revert bugfix done in it's own branch
2018-07-22 17:05:22 +01:00
Matthias
bd2771b8f9
use correct property
2018-07-22 14:52:58 +02:00
Matthias
4d864df59e
Add tests for no_fiat functionality
2018-07-22 14:49:07 +02:00
Matthias
2b297869a1
adjust checks to fit new functionality
2018-07-22 14:35:59 +02:00
Matthias
f297d22edb
fix some tests in rpc_telegram
2018-07-21 20:49:57 +02:00
Matthias
0681a806cc
move cryptofiatconvert to rpc
2018-07-21 20:44:38 +02:00
Matthias
be3f04775a
remove unnecessary mocks - add mocks which went to exchange
2018-07-21 20:21:00 +02:00
Matthias
9467461160
only init FIATConvert when telegram is enabled
2018-07-21 20:13:32 +02:00
Matthias
66af41192a
Catch all exceptions from fiat-convert api calls
2018-07-21 19:50:38 +02:00
Matthias
dd1290e38e
Add multiple verbosity levels
2018-07-19 21:12:27 +02:00
Matthias
90915b6b2f
Revert "Add more verbosity levels"
2018-07-19 20:43:41 +02:00
Matthias
1b2bfad348
Fix wrong test
2018-07-19 20:36:49 +02:00
Matthias
060469fefc
Add stuff after rebase
2018-07-19 20:12:20 +02:00
Matthias
4fb9823cfb
fix rebase problem
2018-07-19 19:50:06 +02:00
Matthias
a452864b41
Use namedtuple for sell_return
2018-07-19 19:39:08 +02:00
Matthias
506aa0e3d3
Add print_sales table and test
2018-07-19 19:34:14 +02:00
Matthias
426c25f631
record ticker_interval and strategyname
2018-07-19 19:34:14 +02:00
Matthias
2a61629014
Export sell_reason from backtest
2018-07-19 19:29:31 +02:00
Matthias
8c0b19f80c
Check sell-reason for sell-reason-specific tests
2018-07-19 19:29:31 +02:00
Matthias
cbffd3650b
add sell_reason to backtesting
2018-07-19 19:29:31 +02:00
Matthias
49a7c7f08e
fix tests
2018-07-19 19:27:33 +02:00
Janne Sinivirta
0cc1b66ae7
Merge pull request #1037 from freqtrade/fix/backtest-comment
...
replace --realistic with 2 separate flags
2018-07-19 17:33:19 +03:00
Janne Sinivirta
6070d819b8
Merge pull request #1040 from freqtrade/xmatthias_backtest_duration
...
Fix backtest duration calculation
2018-07-19 17:32:11 +03:00
Matthias
c0a7725c1f
Add stoploss offset
2018-07-19 13:22:44 +02:00
Matthias
64f933477d
Merge pull request #1007 from freqtrade/remove-analyze
...
Remove Analyze
2018-07-19 10:12:36 +02:00
Matthias
75c0a476f8
Test setting verbosity in commandline
2018-07-18 23:40:04 +02:00
Matthias
1ab7f5fb6d
add tests for more debug levels
2018-07-18 22:53:44 +02:00
Matthias
7134c15e86
Merge pull request #1024 from freqtrade/feature/webhook
...
Feature/webhook
2018-07-18 20:39:57 +02:00
Matthias
79b1030435
output duration in a more readable way
2018-07-18 20:08:55 +02:00
Matthias
c82276ecbe
add --disable-max-market-positions
2018-07-17 21:05:03 +02:00
Matthias
e17618407b
Rename --realistic-simulation to --enable-position-stacking
2018-07-17 20:26:59 +02:00
Janne Sinivirta
85fd4dd3ff
rename analyze.py to exchange_helpers.py
2018-07-17 21:26:52 +03:00
Janne Sinivirta
084264669f
fix the last failing unit test
2018-07-17 11:02:07 +03:00
Janne Sinivirta
78af4bc785
move and fix tests from Analyze to interface of strategy
2018-07-17 10:23:04 +03:00
Samuel Husso
a3466f4b42
Merge pull request #1031 from freqtrade/feat/update_configdict
...
Update config dict with attributes loaded from strategy
2018-07-16 10:00:46 +03:00
Samuel Husso
050afe2bc0
Merge pull request #979 from creslinux/Check_timeframes
...
Handle if ticker_interval in config.json is not supported on exchange.
2018-07-16 09:57:46 +03:00
Janne Sinivirta
5c87c420c7
restore one analyze test
2018-07-16 08:59:14 +03:00
Janne Sinivirta
aeb4102bcb
refactor Analyze class methods to base Strategy class
2018-07-16 08:23:39 +03:00
Janne Sinivirta
f6b8c2b40f
move parse_ticker_dataframe outside Analyze class
2018-07-16 08:23:39 +03:00
Janne Sinivirta
85e6c9585a
remove pass-through methods from Analyze
2018-07-16 08:23:39 +03:00
Janne Sinivirta
a74147c472
move strategy initialization outside Analyze
2018-07-16 08:23:39 +03:00
Matthias
158226012a
consistent use of the config dict within the test
2018-07-15 09:08:14 +02:00
Matthias
b4ba641131
Update config dict with attributes loaded from strategy
2018-07-15 09:01:08 +02:00
Matthias
278e7159bc
adjust webhook tests
2018-07-14 13:32:35 +02:00
Matthias
ee2f6ccbe9
Add test for enable_webhook
2018-07-14 13:32:35 +02:00
Matthias
fa8512789f
add tests for webhook
2018-07-14 13:32:35 +02:00
Matthias
6e16c1d80d
add webhook test file
2018-07-14 13:32:35 +02:00
gcarq
cb8cd21e22
add tests for telegram.send_msg
2018-07-12 17:50:11 +02:00
gcarq
7eaeb8d146
status: return arrow object instead humanized str
2018-07-12 17:27:40 +02:00
gcarq
0920fb6120
use more granular msg dict for buy/sell notifications
2018-07-12 17:16:31 +02:00
gcarq
4cb1aa1d97
use dict as argument for rpc.send_msg
2018-07-12 17:12:42 +02:00
gcarq
112998c205
refactor _rpc_balance
2018-07-12 17:11:31 +02:00
gcarq
f1a370b3b9
return dict from _rpc_status and handle rendering in module impl
2018-07-12 17:10:04 +02:00
gcarq
29670b9814
remove markdown formatting from exception string
2018-07-12 17:07:19 +02:00
gcarq
df8ba28ce5
convert start, stop and reload_conf to return a dict
2018-07-12 17:07:19 +02:00
Janne Sinivirta
aa2366346a
Merge pull request #1001 from xmatthias/feat/backtest_cum_profit
...
Add cumulative profit to backtest result table
2018-07-11 07:21:28 +03:00
Matthias
750d737b7d
Add tests for change to open_rate
2018-07-08 20:18:34 +02:00
Matthias
38487644f0
fix tests for backtest-result output table
2018-07-08 19:55:16 +02:00
Janne Sinivirta
6926e468a4
Merge pull request #984 from freqtrade/test_backtest_results
...
Test backtest results
2018-07-08 17:40:12 +03:00
Matthias
8dd6e29426
don't flag data as outdated which isn't
2018-07-08 13:34:47 +02:00
Matthias
570d27a0c4
Add testcase where ticker_interval is not in the configuration
2018-07-07 15:30:29 +02:00
Matthias
3f6e9cd28f
Add tests for validate_timeframes
2018-07-07 14:42:53 +02:00
Matthias
af17cef002
fix existing tests to work with validate_timeframes
2018-07-07 14:41:42 +02:00
Matthias
9906da46f6
move comment to correct place
2018-07-06 20:00:54 +02:00
Matthias
54976fa103
Add more tests to validate buy/sell rows
2018-07-06 19:56:16 +02:00
Gert Wohlgemuth
1c48902e64
Merge branch 'develop' into BASE64
2018-07-05 14:40:04 -07:00
Gert Wohlgemuth
8bbee4038b
integrated BASE64 encoded strategy loading
2018-07-05 14:30:24 -07:00
Matthias
c35d1b9c9d
Add test which checks the backtest result
2018-07-05 23:22:35 +02:00
Samuel Husso
d8d0579c5a
Merge pull request #930 from freqtrade/skopt
...
Replace Hyperopt with scikit-optimize
2018-07-04 13:51:14 -05:00
Janne Sinivirta
bf4d0a9b70
sort imports
2018-07-04 10:31:35 +03:00
Janne Sinivirta
96bb2efe69
use joblib.dump and load for trials
2018-07-03 23:08:29 +03:00
Janne Sinivirta
9dbe0f50a3
fix tests after changing the dumping and pickling dataframe in hyperopt
2018-07-03 22:09:59 +03:00
Janne Sinivirta
aec3f582e1
Merge branch 'develop' into skopt
2018-07-02 11:27:27 +03:00
Matthias
ed2a1becef
Merge branch 'develop' into feat/stop_loss
2018-07-01 20:01:02 +02:00
xmatthias
937644a04b
change while-loop to enumerate - add intensified test for this scenario
2018-07-01 19:55:51 +02:00
Michael Egger
f91263c8ef
Merge pull request #966 from freqtrade/feat/revamp_exchangetest
...
Rewrite standard ccxt exception handling
2018-07-01 19:47:57 +02:00
Michael Egger
e2127f5af1
Merge pull request #969 from xmatthias/split_unfilled
...
separating unfulfilled timeouts for buy and sell
2018-07-01 19:47:24 +02:00
xmatthias
c66f858b98
rename innerfun to mock_ccxt_fun
2018-07-01 19:37:55 +02:00
Michael Egger
8023fdf923
Merge pull request #971 from freqtrade/fix/nonmocked_markets
...
Add get_markets mock to new tests
2018-07-01 15:11:22 +02:00
Michael Egger
2cee8e52c1
Merge pull request #965 from freqtrade/fix/fix_959
...
catch crash with cobinhood
2018-07-01 14:28:01 +02:00
xmatthias
9e3e900f78
Add get_markets mock to new tests
2018-06-30 17:49:46 +02:00
Nullart
98108a78f1
separating unfulfilled timeouts for buy and sell
2018-06-30 13:44:42 +02:00
Michael Egger
6dd5f85fb6
Merge pull request #954 from freqtrade/feat/allow_backtest_plot
...
allow backtest ploting
2018-06-29 19:44:06 +02:00
xmatthias
cf6b1a637a
increase exchange code coverage
2018-06-28 22:32:28 +02:00
xmatthias
dcdc18a338
rename test-function
2018-06-28 22:18:38 +02:00
xmatthias
15c7854e7f
add test for exchange_has
2018-06-28 22:11:45 +02:00
xmatthias
fe8a21681e
add test for Not supported
2018-06-28 21:56:37 +02:00
xmatthias
ebbfc720b2
increase test coverage
2018-06-28 21:51:59 +02:00
xmatthias
8ec9a09749
Standardize retrier exception testing
2018-06-28 21:22:43 +02:00
xmatthias
2d4ce593b5
catch crash with cobinhood
...
fixes #959
2018-06-28 19:53:51 +02:00
xmatthias
d5ad066f8d
support multiple db transitions by keeping the backup-table dynamic
2018-06-27 20:15:25 +02:00
xmatthias
860b270e30
update db migrate script to work for more changes
2018-06-27 19:49:08 +02:00
xmatthias
78e6c9fdf6
add tests for trailing stoploss
2018-06-27 06:52:31 +02:00
xmatthias
c997aa9864
move initial logic to persistence
2018-06-27 06:38:49 +02:00
xmatthias
a91d75b3b2
Add test for adjust_stop-loss
2018-06-27 06:23:49 +02:00
xmatthias
88b898cce4
add test for moving stoploss
2018-06-27 00:18:30 +02:00
xmatthias
8bec505bbe
add test for trailing_stoploss
2018-06-26 23:40:36 +02:00
xmatthias
a3708bc56e
add missing test
2018-06-26 23:40:20 +02:00
Janne Sinivirta
2b6407e598
remove unused tests from hyperopt
2018-06-25 11:38:42 +03:00
Janne Sinivirta
118a43cbb8
fixing tests for hyperopt
2018-06-24 15:27:53 +03:00
Michael Egger
beb15532f7
Merge pull request #950 from freqtrade/fix-filenotfounderror
...
StrategyResolver: Don't fail if user_data isn't present
2018-06-23 16:07:52 +02:00
Anton
f82b809fcf
Merge with develop
2018-06-23 16:50:27 +03:00
gcarq
4ea5fcc661
resolver: don't fail if user_data can't be found
2018-06-23 14:42:22 +02:00
xmatthias
0440a19171
export open/close rate for backtesting too
...
preparation to allow plotting of backtest results
2018-06-23 14:19:50 +02:00
gcarq
0b3e4f6bcd
remove dead code
2018-06-23 13:50:49 +02:00
gcarq
295dfe2652
persistence: remove obsolete global _CONF variable
2018-06-23 13:50:22 +02:00
Michael Egger
df9015a7f1
Merge pull request #942 from xmatthias/feat/buy_on_sell_first
...
Introduce ignore_roi_if_buy_signal parameter to avoid sell/buy scenarios
2018-06-23 13:42:03 +02:00
gcarq
810d7de869
tests: add dir() assertion
2018-06-23 14:37:36 +03:00
gcarq
398b21a11d
implement test for import_strategy
2018-06-23 14:37:36 +03:00
Janne Sinivirta
01d45bee76
fix flake8
2018-06-23 14:37:36 +03:00
Janne Sinivirta
c1691f21f3
check that we set fee on backtesting init
2018-06-23 14:37:36 +03:00
gcarq
818a6b12ed
tests: add dir() assertion
2018-06-23 11:57:26 +02:00
gcarq
4bd61df3a7
implement test for import_strategy
2018-06-23 11:14:31 +02:00
Janne Sinivirta
9a07d57ed7
fix flake8
2018-06-23 07:58:25 +03:00
xmatthias
2be7b3d9eb
fix mocked bid-value to match limt_buy_order config
2018-06-22 21:24:21 +02:00
xmatthias
e2a2a0be9b
extract stop_loss_reached to allow check before ignore_roi_if_buy_signal
2018-06-22 21:21:34 +02:00
Janne Sinivirta
f7e5d2c3a5
check that we set fee on backtesting init
2018-06-22 21:55:09 +03:00
xmatthias
cbfee51f32
introduce experimental variable and fix test naming
2018-06-22 20:51:21 +02:00
xmatthias
8a44dff595
don't sell if buy is still active
2018-06-22 20:23:23 +02:00
xmatthias
896afe7118
convert get_name and get_id to properties
2018-06-18 22:20:50 +02:00
xmatthias
ef53134499
lowercase variables
2018-06-18 22:09:46 +02:00
xmatthias
162f948729
add test for non-configured exchange
2018-06-18 19:56:23 +02:00
xmatthias
ae4c4e77bf
standardize exception tests - add one more
2018-06-18 19:46:42 +02:00
xmatthias
695beecf14
add test for get_markets
2018-06-18 19:36:36 +02:00
xmatthias
520c7feeab
Add test for fetch_tickers
2018-06-17 23:38:07 +02:00
xmatthias
1e3d722bc2
add test for get_trades
2018-06-17 23:38:07 +02:00
xmatthias
c9f8dfc6c5
increase get_fee coverage
2018-06-17 23:38:07 +02:00
xmatthias
d156de39f1
Increase test-coverage
2018-06-17 23:38:07 +02:00
xmatthias
2b099a89e4
fix styling issues
2018-06-17 23:38:07 +02:00
xmatthias
6e6ec969eb
cleanup mockings
2018-06-17 23:38:07 +02:00
xmatthias
e194af8d25
Streamline validate_pair patching
2018-06-17 23:38:07 +02:00
xmatthias
ace5198475
fix optimize tests
2018-06-17 23:38:07 +02:00
xmatthias
52d36c33cf
fix optimie test
2018-06-17 23:38:07 +02:00
xmatthias
c83e8b7cb5
fix rpc_test
2018-06-17 23:38:07 +02:00
xmatthias
64e09f74a1
fix rpc tests
2018-06-17 23:38:07 +02:00
xmatthias
975b42caa3
fix tests for exchange objectify
2018-06-17 23:38:07 +02:00
xmatthias
082b6077e9
Fix tests analyze
2018-06-17 23:38:07 +02:00
xmatthias
e8ab76f55b
fix small in tests
2018-06-17 23:38:07 +02:00
xmatthias
495f15f13c
fix exchange tests
2018-06-17 23:38:07 +02:00
xmatthias
68f6423d39
fix most tests
2018-06-17 23:38:07 +02:00
xmatthias
67d345bc08
fix tests for objectify exchange
2018-06-17 23:38:07 +02:00
xmatthias
a159db6863
get_exchange
2018-06-17 23:38:07 +02:00
Janne Sinivirta
c608f1e21e
Merge pull request #923 from freqtrade/fix_test_hyperopt
...
fix hyperopt test when no config.json exists
2018-06-17 16:07:57 +03:00
Michael Egger
5ce2071279
Merge pull request #925 from freqtrade/increase_test_cov_configuration
...
increase test-coverate for configuration
2018-06-17 13:19:16 +02:00
Anton
ae94ab17f4
Merge branch 'develop' into feature-unlimited-stake_amount
2018-06-17 02:23:40 +03:00
Anton
eb909068c5
Add minimal pair stake amount check
2018-06-17 02:23:12 +03:00
xmatthias
972736f0ab
increase test-coverate for configureation
2018-06-16 20:55:35 +02:00
xmatthias
7564f7e526
fix hyperopt test when no config.json exists
2018-06-16 13:49:03 +02:00
xmatthias
fa00157d12
Fix fiat_convert missing mockups
2018-06-16 13:42:25 +02:00
Matthias
a5511e2e30
Merge pull request #894 from freqtrade/feature/force_close_backtest
...
Display open trades after backtest period
2018-06-16 12:49:08 +02:00
Janne Sinivirta
0c85febe76
remove all mongodb related code
2018-06-16 09:09:28 +03:00
Janne Sinivirta
c1f8f641e6
remove use of hyperopt_conf.py
2018-06-16 09:09:28 +03:00
gcarq
46080f5168
define _rpc_reload_conf as private method
2018-06-13 15:29:27 +02:00
gcarq
34e10a145c
remove Telegram.is_enabled() because RPCManager manages lifecycles
2018-06-13 12:21:54 +02:00
gcarq
3787dad212
don't import python-telegram-bot at runtime if disabled in config
2018-06-13 12:21:54 +02:00
gcarq
4048859912
rpc: remove tuple return madness
2018-06-13 12:21:54 +02:00
gcarq
cddb062db5
save rpc instances only in registered_modules, add some abstract methods
2018-06-13 12:21:54 +02:00
xmatthias
0f117d480e
improve backtesting-tests
...
* assert length of result specifically
* add assert for "open_at_end"
2018-06-13 06:42:24 +02:00
xmatthias
8d8e6dcffc
Add test for extracted backtest_results test
2018-06-13 06:31:42 +02:00
Michael Egger
59a4dffc56
Merge pull request #901 from freqtrade/fix/backtest_abort_no_data
...
Check if no backtest data is found and fail gracefully
2018-06-12 02:54:58 +02:00
Anton
708320318c
Check minimal amount
2018-06-12 01:05:43 +03:00
xmatthias
a0f735d4f2
reduce test-noise
2018-06-11 21:02:24 +02:00
xmatthias
335d1fbbbc
Check if no backtest data is found and fail gracefully
2018-06-11 19:50:43 +02:00
Anton
ce663f6af5
Merge with develop
2018-06-11 16:25:05 +03:00
Janne Sinivirta
c46e50864b
Merge pull request #886 from freqtrade/feature/reload-conf
...
Reload bot config without restarting
2018-06-11 10:47:00 +03:00
xmatthias
a9f3744f1b
fix backtest test
2018-06-10 19:46:52 +02:00
xmatthias
9cc087c788
update hyperopt tests to support new structure
2018-06-10 13:56:23 +02:00
xmatthias
aff1ede46b
Fix last backtesting test
2018-06-10 13:25:52 +02:00
xmatthias
17c0ceec04
adjust tests for backtestresult type
2018-06-10 13:22:24 +02:00
xmatthias
c9476fade8
adjust tests for forcesell
2018-06-10 13:20:41 +02:00
xmatthias
7b5a2946e5
adjust for forcesell backtesting
2018-06-10 13:19:32 +02:00
gcarq
61da7f63b2
Merge branch 'develop' of freqtrade into feature/reload-conf
2018-06-09 04:30:23 +02:00
gcarq
0b5d21f32a
implement bot reconfiguration and expose it to telegram
2018-06-09 04:29:48 +02:00
gcarq
74db82d759
main: don't touch freqbot state in cleanup()
...
cleanup() should be only called after the main loop has been exited.
At that point the state shouldn't be modified.
2018-06-09 01:19:42 +02:00
Michael Egger
73c5f0ec90
Merge pull request #872 from freqtrade/feature/improve-error-handling
...
improve error handling
2018-06-08 22:43:37 +02:00
Michael Egger
66f6e71e7e
Merge pull request #827 from freqtrade/fix/pylint_and_coverage
...
Increase code coverage and improve Pylint
2018-06-08 22:32:04 +02:00
Samuel Husso
980172a55a
Merge pull request #865 from freqtrade/partial_candle_removal
...
Partial candle removal
2018-06-08 18:10:21 +03:00
Gerald Lonlas
5ca84acb6d
Fix Flake8
2018-06-07 23:12:03 -07:00
Gerald Lonlas
50852136ef
Increase FreqtradeBot.get_real_amount() coverage
2018-06-07 22:13:50 -07:00
Gerald Lonlas
20082f52a2
Increase code coverage for FreqtradeBot.process_maybe_execute_sell()
2018-06-07 22:13:50 -07:00
Gerald Lonlas
5ec3eb76eb
Cover a edge case of CryptoToFiatConverter::_find_price()
2018-06-07 22:13:50 -07:00
Gerald Lonlas
dfbc94c05b
Add missing test for CryptoToFiatConverter::convert_amount()
2018-06-07 22:13:50 -07:00
Gerald Lonlas
81ce7d720d
Add missing unit test for Arguments::testdata_dl_options()
2018-06-07 22:13:50 -07:00
gcarq
95d6c9c678
adapt tests
2018-06-08 02:01:38 +02:00
Anton
b1b87731b1
Support case when _get_trade_stake_amount returns None
2018-06-08 00:54:46 +03:00
Anton
b4138f29c8
Merge with develop
2018-06-08 00:29:44 +03:00
gcarq
dd3a53fb5f
fix tests for main.py
2018-06-07 22:28:21 +02:00
Matthias
d23bcc435a
Merge pull request #864 from freqtrade/feature/overhaul-db-handling
...
Allow custom sqlite database path
2018-06-07 22:18:10 +02:00
gcarq
d41f71bc34
handle sqlalchemy NoSuchModuleError
2018-06-07 21:35:57 +02:00
xmatthias
f5fe9a4b1c
fix rpc tests (add a test with multiple trades
...
without this, sum/percentage cannot be properly tested.
2018-06-07 20:52:03 +02:00
gcarq
3f5efef6e5
tests: add proper asserts
2018-06-07 20:41:52 +02:00
gcarq
d4f8704a4c
arguments: implement tests for db_url
2018-06-07 20:30:13 +02:00
Janne Sinivirta
f5b47fbd86
flake8 fixes
2018-06-07 20:23:09 +03:00
Janne Sinivirta
3cee04fb8c
bot should not repaint: do not include last partial candle in analysis
2018-06-07 20:23:09 +03:00
Samuel Husso
ad510b8b5f
Merge pull request #855 from freqtrade/fix-look-ahead
...
Avoid look-ahead in backtesting
2018-06-07 20:00:46 +03:00
gcarq
17742df591
Merge branch 'develop' of freqtrade into feature/overhaul-db-handling
2018-06-07 17:33:37 +02:00
Michael Egger
867145cd09
Merge pull request #859 from freqtrade/readd_ticker_caching
...
Re-add ticker caching for rpc operations
2018-06-07 17:15:59 +02:00
Janne Sinivirta
b4ae5a36a8
use .copy() to avoid Pandas mistake. drop first row because of shifting
2018-06-07 17:29:40 +03:00
gcarq
c3d0980763
test_persistence: fix reference before assignment
2018-06-07 06:06:21 +02:00
gcarq
a29ac44d64
adapt tests
2018-06-07 05:27:55 +02:00
xmatthias
7714490530
Test keyerror exception
2018-06-06 21:24:57 +02:00
xmatthias
a901f21bcd
test ticker caching
2018-06-06 20:24:47 +02:00
xmatthias
f37c5b70ba
Fix tests - read optional argument
2018-06-05 23:53:49 +02:00
xmatthias
270ccbb0da
fix args test
2018-06-05 23:41:50 +02:00
Anton
12d8a8b1a3
Fix review comments
2018-06-06 00:14:28 +03:00
Anton
3030bf9778
Fix types
2018-06-04 01:52:54 +03:00
Anton
87f750da35
Merge with develop
2018-06-04 01:50:10 +03:00
Anton
daa9c0c026
Fix review comments
2018-06-04 01:48:26 +03:00
xmatthias
e3227a741c
add --export-filename for backtesting
2018-06-03 19:36:53 +02:00
Janne Sinivirta
20815771ab
Merge pull request #817 from gcarq/feature/gdax
...
Enable Backtesting with GDAX and allow trading with EUR/USD
2018-06-03 17:49:20 +03:00
xmatthias
50fc5f91ca
Merge branch 'develop' into mypy_typecheck
2018-06-03 10:35:56 +02:00
Gerald Lonlas
e8a59f4c20
Add a test to check the behavior when converting two FIAT
2018-06-03 00:13:48 -07:00
Gerald Lonlas
638d98735f
Allow fiat_convert to use same symbol for Crypto and FIAT
2018-06-03 00:13:48 -07:00
Gerald Lonlas
c9e49ed7b4
Sort ticker_history
...
CCXT does not sort the ticker history from exchanges.
Bittrex and Binance are sorted ASC (oldest first, newest last) when
GDAX is sorted DESC (newest first, oldest last).
Because of that the get_ticker_history() fall in a very long loop
when the tickers are sorted DESC. Means it downloads more than
needed.
This commit enable exhanges like GDAX and unify the ticker_history
list across all exchanges.
2018-06-03 00:13:48 -07:00
Janne Sinivirta
7edafbb772
Merge pull request #823 from creslinux/timerange_unixtime_argument
...
Timerange unixtime argument
2018-06-03 07:22:41 +03:00
Gerald Lonlas
fe8ff1b929
Fix stake_currency return by Hyperopt
...
Hyperopt had BTC hard coded in the result. This commit will display
the real stake_currency used.
If you used `"stake_currency": "USDT",` in your config file.
Before this commit you saw a message like:
"2 trades. Avg profit 0.13%. Total profit 0.00002651 BTC (0.0027Σ%). Avg duration 142.5 mins."
Now with the commit, we fix the wrong BTC currency:
"2 trades. Avg profit 0.13%. Total profit 0.00002651 USDT (0.0027Σ%). Avg duration 142.5 mins."
2018-06-02 14:07:31 -07:00
Gerald Lonlas
127cf5d619
Backtesting: Add the Interval required when data is missing
...
Change the message:
"No data for pair ETH/BTC, use --refresh-pairs-cached to download the data"
for:
"No data for pair: "ETH/BTC", Interval: 5m. Use --refresh-pairs-cached to download the data"
The message structure is unified with the download message:
"Download the pair: "ETH/BTC", Interval: 5m"
2018-06-02 13:55:05 -07:00
creslinux
94e586c049
Added unit test to check posix time arguments passed to timerange
...
Here is the pass report:
freqtrade_new creslin$ pytest freqtrade/tests/test_arguments.py
==================================================================== test session starts =====================================================================
platform darwin -- Python 3.6.5, pytest-3.6.0, py-1.5.3, pluggy-0.6.0
rootdir: /Users/creslin/PycharmProjects/freqtrade_new, inifile:
plugins: mock-1.10.0, cov-2.5.1
collected 19 items
freqtrade/tests/test_arguments.py ................... [100%]
================================================================= 19 passed in 2.37 seconds ==================================================================
2018-06-02 22:46:54 +03:00
xmatthias
9537f17dd4
Fix test
2018-06-02 20:06:29 +02:00
Matthias
81bb128cf7
Merge pull request #822 from gcarq/fix/misleading_log
...
change misleading logging for datadir
2018-06-02 14:50:27 +02:00
xmatthias
d9e951447f
remove _init function in backtesting (and according test)
2018-06-02 13:54:22 +02:00
Janne Sinivirta
b5c41ca0fc
Merge pull request #820 from gcarq/fix/backtesting_hint
...
Fix wrong hint '--update-pairs-cached' from Backtesting/Hyperopt
2018-06-02 11:39:09 +03:00
Janne Sinivirta
a82a31341b
change misleading logging for datadir
2018-06-02 11:32:05 +03:00
Gérald LONLAS
0980e7e82d
Merge pull request #766 from pan-long/forcesell-amount
...
Sell filled amount or an open limit buy order in forcesell.
2018-06-01 19:51:38 -07:00