Commit Graph

4852 Commits

Author SHA1 Message Date
jpribyl
bd51cd332b Cancel all open orders after receiving /stop or ctrl+c 2020-05-01 10:36:11 -06:00
Matthias
509f38d3aa Use non-deprectated parameter for progressbar 2020-05-01 17:59:24 +02:00
Matthias
40d4949f06 Don't handle trades if they've just been closed. 2020-05-01 17:46:01 +02:00
Matthias
7558e4bffe Split fee detection from trades from general logic 2020-05-01 16:13:07 +02:00
Matthias
371100a97c Update fee handling 2020-05-01 16:01:33 +02:00
Matthias
a2ff632647 Add update_fee method to persistence 2020-05-01 16:01:12 +02:00
Matthias
db8fb39a38 don't use trade.update directly! 2020-05-01 15:50:02 +02:00
Matthias
59bafc8d02 Implement fee rate calculation 2020-05-01 15:50:02 +02:00
Matthias
45c97fde2d Use correct typehint for extract_cost_curr_rate 2020-05-01 15:50:02 +02:00
hroff-1902
63b55658ac Add ticker to dataprovider 2020-05-01 05:11:30 +03:00
Matthias
e74ed0ba7b Add tests for fee extraction methods 2020-04-30 20:05:27 +02:00
Matthias
2e4dc6c253 Exchange should return fee dict for dry-run orders 2020-04-30 19:56:48 +02:00
Matthias
a867d40eac Move fee_methods to exchange 2020-04-30 19:33:27 +02:00
Matthias
d3b9f4d393 Add extract_cost_curr_rate 2020-04-30 19:28:36 +02:00
Matthias
6d7a3a0cc9 Extract more logic into order-has_fee 2020-04-30 07:12:08 +02:00
Matthias
b125dd3728 Extract order_has_fee method 2020-04-30 07:06:06 +02:00
Matthias
dec1b10743 Add fee_cost and currency columns 2020-04-30 06:57:39 +02:00
hroff-1902
726e52aaa7 Use skopt model_queue_size instead of custom hack 2020-04-29 10:49:25 +03:00
hroff-1902
c6787d7e9f Do not use 'trials' in commands 2020-04-28 23:14:02 +03: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
Matthias
fa6fe618ac Version bump 2020.4 2020-04-28 10:55:27 +02:00
Matthias
ce3fa533ae Merge branch 'master' into new_release2020.4 2020-04-28 07:51:05 +02: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
e8530c36d3 Remove pairlists from hyperopt too (it holds a reference to exchange) 2020-04-25 15:46:20 +02:00
Matthias
8987859044 Enable pairlist parsing for backtesting and hyperopt 2020-04-25 15:37:13 +02:00
hroff-1902
d9f255a6c0 Fix asterisk printing for csv output 2020-04-25 12:49:14 +03:00
hroff-1902
2d994f6feb Better printing of asterisk 2020-04-24 21:57:29 +03:00
hroff-1902
6e5f0869b3 Remove another unused method 2020-04-24 18:39:08 +03:00
hroff-1902
5c012d79eb Remove unused method 2020-04-24 18:14:07 +03:00
Matthias
9627604ec3 change wording of log message 2020-04-24 07:58:18 +02:00
Matthias
f4995780e5 Verify last is not None - to avoid crashing
fix #3117
2020-04-23 20:04:36 +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
hroff-1902
4bbade245c
Merge pull request #3181 from freqtrade/fix/cancel_problems
Fix several cancel order problems
2020-04-18 11:16:59 +03:00
hroff-1902
def8635b6d
Merge pull request #3184 from freqtrade/fix/hyperopt_randfailure
Fix random test failure in hyperopt
2020-04-18 09:49:09 +03:00
Matthias
c775d65126 Update typehint for cancel_order 2020-04-18 06:55:25 +02:00
Matthias
0273539f06 Remove exceptionhandler, this exception is handled in
cancel_with_response
2020-04-17 19:55:53 +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
Matthias
fc684b0091 Ensure deleting filled is not raising an error if filled does not exist 2020-04-17 06:59:52 +02:00
Matthias
7aba9bc62a
Update freqtrade/data/converter.py
Co-Authored-By: hroff-1902 <47309513+hroff-1902@users.noreply.github.com>
2020-04-17 06:22:25 +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
Matthias
1f70fcfa2d Update logmessage 2020-04-16 20:19:34 +02: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
Matthias
d36e2cf6ab Fix random test failure in hyperopt 2020-04-16 07:06:47 +02: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
99f3e9ed77 Remove wrong comment 2020-04-15 07:55:15 +02:00
Matthias
33b6c7de5b Add tests for price_one_pip 2020-04-15 07:53:31 +02:00
Matthias
36e714a7b2 Add price_get_one_pip filter 2020-04-15 07:19:27 +02:00
Matthias
2b7376f6f3 Implement log-filtering for all pairlists 2020-04-14 20:45:30 +02:00
Matthias
ceca0a659c Simplify cached stuff to only what's needed 2020-04-14 20:25:58 +02:00
Matthias
13ee7a55c4 Fix #3166
Always call _gen_pair_whitelist if volumepairlist is not the first in
the list.
2020-04-14 20:21:30 +02:00
Matthias
5d876ca0a3 Use log-spamprevention methods 2020-04-14 20:21:10 +02:00
Matthias
7c15375f5d Add log_on_refresh - using TTL caching to avoid spamming logs 2020-04-14 20:20:36 +02:00
Matthias
cfe1e4876a Improve testcase for cancel_order_empty 2020-04-14 19:20:47 +02:00
Matthias
c8ccdbcb9a
Merge pull request #3150 from freqtrade/version_docker
[minor] have version-detection fall back to freqtrade_commit
2020-04-14 15:53:05 +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
55a052bcf6
fix typo in comment
Co-Authored-By: hroff-1902 <47309513+hroff-1902@users.noreply.github.com>
2020-04-14 08:05:46 +02: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
4ee0cbb575 Reset index to correctly gather index 2020-04-12 10:40:02 +02:00
Matthias
952d2f7513 have version-detection fall back to freqtrade_commit
this allows freqtrade --version to work in docker too.

sample command:
`docker-compose run --rm freqtrade -version`
2020-04-12 09:55:21 +02:00
Matthias
18a6c98a82
Merge pull request #3054 from Fredrik81/progress-bar
Hyperopt: Progressbar during hyperopt
2020-04-12 09:32:52 +02:00
Fredrik81
2c1c1c7f16
Update freqtrade/optimize/hyperopt.py
nice find

Co-Authored-By: Matthias <xmatthias@outlook.com>
2020-04-11 17:42:32 +02:00
Fredrik81
d9e54ab7a4
Update freqtrade/optimize/hyperopt.py
nice find

Co-Authored-By: Matthias <xmatthias@outlook.com>
2020-04-11 17:42:19 +02:00
Matthias
f39706cabd Fix #3130 - when corder['remaining'] contains none-type 2020-04-09 19:35:27 +02:00
Matthias
cbf5bf6735 Add safe_value_fallback function 2020-04-09 19:34:48 +02:00
Fredrik81
4707484a4c Fix issue with colring enabled + styling 2020-04-09 11:42:13 +02:00
Matthias
5cff72a42e Improve logging to ensure which branch is used for buy order cancels 2020-04-09 09:22:38 +02:00
Matthias
68a5e0c51b
Merge pull request #3138 from orkblutt/develop
trades history RPC
2020-04-08 08:23:13 +02:00
Matthias
02192f28cd Small stylistic updates 2020-04-08 07:56:21 +02:00
Fredrik81
cdc774549e Merge branch 'develop' into progress-bar 2020-04-08 01:56:43 +02:00
Fredrik81
132f5f73f5
Update hyperopt.py 2020-04-07 10:44:18 +02:00
Fredrik81
c95906cfcf
Update hyperopt.py 2020-04-07 10:42:15 +02:00
Matthias
9387585756
Merge pull request #3127 from orehunt/max_drawdown_fix_db_plot
use equality instead of index for row lookups
2020-04-06 20:10:23 +02:00
Ork Blutt
200111fef6 fix method return value 2020-04-06 16:07:43 +02:00
orehunt
20abb379aa trim trades to the available ohlcv data before plotting profits 2020-04-06 15:54:17 +02:00
Fredrik81
d5609d4997 Changed back to progressbar2 for better handling of logger.
Coloring still needs some work (bug + what colors to use)
2020-04-06 13:12:32 +02:00
Ork Blutt
6256025c73 various adjustement from PR discussion 2020-04-06 11:00:31 +02:00
Ork Blutt
8555c5b211 fix return value 2020-04-05 17:03:51 +02:00
Ork Blutt
15c45b984d removing whitespace 2020-04-05 16:47:46 +02:00
Ork Blutt
0a14d5ec46 trades history RPC 2020-04-05 16:14:02 +02:00
Matthias
41d5c40f10 Correctly test drawdown plot 2020-04-05 14:44:44 +02:00
Matthias
4e907e2304 Use timeframe_to_prev_date to move trade-date to candle 2020-04-05 14:35:53 +02:00
Matthias
e204170eb6 Fix max_drawdown bug finding low before high! 2020-04-05 14:29:40 +02:00
Matthias
c465552df4 Update comment to mention .copy() usage 2020-04-02 20:17:54 +02:00
Matthias
de47186263 Use .loc for assignments 2020-04-02 19:31:48 +02:00
Matthias
3fcd531eac Copy dataframe in interfac.py (reduces memory consumption) 2020-04-02 19:30:59 +02:00
Matthias
cf6e6488c7 Fix filename handling with --strategy-list 2020-04-02 17:29:18 +02:00
Matthias
9d7ad23d42 Fix test leakage 2020-04-02 08:20:50 +02:00
Matthias
eab6c9c5f2 Fix message 2020-04-01 20:50:00 +02:00
Matthias
0d51383b57 Format logmessages correctly 2020-04-01 20:31:21 +02:00
Matthias
ba03d96961 Test 5s offset on since 2020-04-01 20:04:36 +02:00
Matthias
ff9caf790b remove trade duplicates in datahandler 2020-04-01 19:45:46 +02:00
Matthias
0506caf986 Implement trades_remove_dulicates 2020-04-01 19:45:38 +02:00
Matthias
bac0eaab03 fix convert to ohlcv 2020-04-01 19:45:35 +02:00
Matthias
d76bb1ccf4 Use List of Lists instead of list of Dicts for trades data 2020-04-01 19:45:21 +02:00
Matthias
1659ddcc5d Add conversion function from fetch_trades to list 2020-04-01 19:45:21 +02:00
Matthias
8bfbbac748 Add default trades columns 2020-04-01 19:45:00 +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
orehunt
45fb4d25ab use equality instead of index for row lookups 2020-03-31 18:47:53 +02:00
Matthias
54d20cb81c Plot percent correctly 2020-03-30 20:08:07 +02:00
Matthias
cd2e738e35 Add test for assert error 2020-03-29 11:40:13 +02:00
Matthias
da191e4ac8 Version bump 2020.3 2020-03-28 17:45:44 +01:00
Matthias
75de96ae6d Merge branch 'master' into new_release 2020-03-28 17:45:17 +01:00
orehunt
3ef568029f different exception messages 2020-03-26 07:05:30 +01:00
Matthias
95011919d3 Remove questionable handling of orders 2020-03-25 11:18:33 +01:00
Matthias
3c1b155e9f Remove filled if amount is modified to suit fee structure 2020-03-25 09:43:04 +01:00
Matthias
f04f606b70 Updateing order amount should use filled - not amount if possible 2020-03-25 09:43:04 +01:00
Matthias
f3103be15c Fix test 2020-03-25 09:43:04 +01:00
Matthias
700cedc573 Unify handling of open orders to update_trade_state 2020-03-25 09:43:04 +01:00
Matthias
7c47c6e3bd check for timeouts before exiting positions 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
1817e6fbdf Combine real_amount updating into one method 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
orehunt
0f53e646fd check that the strategy dataframe matches the one given by the bot 2020-03-24 14:08:34 +01:00
Matthias
d581b7e2d7 Add fallback if no error could be determined 2020-03-23 07:57:30 +01:00
Matthias
8f7e113d79 Add additional test 2020-03-23 07:54:27 +01:00
Matthias
45aaa8c09d Parse and show relevant configuration section 2020-03-22 20:09:01 +01:00
Matthias
f14c496ce9 Remove calc_close_profit from RPC
This is now possible - but only for closed trades, so certain occurances
need to remain.
2020-03-22 11:28:18 +01:00
Matthias
2c434e9b11 Add close_proit_abs column 2020-03-22 11:16:23 +01:00
hroff-1902
fb4e9b3938
Merge pull request #3025 from yazeed/minor_create_trade_optimization
minor create_trade() optimization
2020-03-21 10:36:39 +03:00
Matthias
f320c0a410
Merge pull request #3087 from hroff-1902/edge-cosmetics-1
minor: Edge cosmetics
2020-03-20 08:12:21 +01:00
Yazeed Al Oyoun
942792f123 updated as suggested 2020-03-20 05:48:53 +01:00
hroff-1902
5f9479b39f Edge import cosmetics 2020-03-20 02:10:44 +03:00
Matthias
5e702f6891 Verify cancel_order returnvalue is a dictionary 2020-03-19 19:44:14 +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
0920d6fce4
Update freqtrade/data/btanalysis.py
Co-Authored-By: Matthias <xmatthias@outlook.com>
2020-03-18 11:01:09 +01:00
Fredrik81
06198c0028 Missed configuration.py 2020-03-15 21:27:45 +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
e1b08ad76c Add docstring to store_backtest_result 2020-03-15 15:38:26 +01:00
Matthias
e95665ceca Make backtestresult storing independent from printing 2020-03-15 15:36:23 +01:00
Matthias
a13d581658 Move backtest-result visualization out of backtesting class 2020-03-15 15:17:53 +01:00
Matthias
6106d59e1a Move store_backtest_results to optimize_reports 2020-03-15 15:17:35 +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
cf7e80f45d Docs and logging 2020-03-14 23:55:13 +01:00
Fredrik81
27faf12fde Fix if no file exists 2020-03-14 22:15:03 +01:00
Matthias
c56cbc21b1 Remove indexing warning in edge 2020-03-14 10:42:01 +01:00
hroff-1902
59fadabb5b Fix merging 2020-03-13 20:26:14 +03:00
hroff-1902
51f52c8609
Merge branch 'develop' into no-ticker-2 2020-03-13 16:43:52 +03:00
hroff-1902
a7ed51c642 return back the name of the hyperopt data file 2020-03-13 04:04:23 +03:00
hroff-1902
ddfe5b5f1c dataframe -> df_analyzed in plotting 2020-03-13 04:00:24 +03:00
hroff-1902
b2952cd42a remove redundant dict 2020-03-13 03:58:16 +03:00
hroff-1902
ebb0187f40 dataframe -> df_analyzed in backtesting and edge 2020-03-13 03:54:56 +03:00
hroff-1902
c6bb32d419
Merge pull request #3045 from orehunt/jsondatahandler-ohlc-respect-timerange
check again for emptiness after trimming dataframe
2020-03-12 22:46:31 +03:00
Matthias
6f67b8d9b9 iCheck after clean_dataframe, too 2020-03-12 19:50:46 +01:00
Fredrik81
5737139979 Small fix 2020-03-12 16:47:09 +01:00
Fredrik81
1a59fc11be doh 2020-03-12 02:36:18 +01:00
Fredrik81
df1ae565dc clean-up 2020-03-12 02:26:41 +01:00
Fredrik81
9387ed923c fix for empty lines 2020-03-12 02:07:50 +01:00
Fredrik81
40a413c524 More remove of progressbar2 2020-03-11 22:50:23 +01:00
Fredrik81
81cbb92556 Switch to TQDM 2020-03-11 22:30:36 +01:00
Matthias
129a88d5da Extract emptyness check to it's own method 2020-03-11 19:53:28 +01:00
Fredrik81
3a8b68c0fd Initial work on progressbar 2020-03-10 20:30:36 +01:00
Matthias
2b1c146940 Add default volume > 0 filter 2020-03-10 16:05:33 +01:00
Matthias
84f0bb9a5d
Merge pull request #3051 from hroff-1902/fix-sortino
Adjust handling of zero stdev in loss functions
2020-03-10 13:10:39 +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
73c19da4b9 Adjust handling of zero stdev in loss functions 2020-03-10 13:44:16 +03:00
hroff-1902
f7ad6c20c7 Do not allow unlimited stake_amount for hyperopt 2020-03-10 12:41:23 +03:00
hroff-1902
c49fefc94d
Merge pull request #3044 from freqtrade/default_max_order_book
order_book_max - change example setting
2020-03-10 11:17:27 +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
hroff-1902
f148b5f734
cosmetics in lambdas 2020-03-10 10:38:37 +03:00
hroff-1902
19a9782a40
Merge pull request #3040 from freqtrade/pairlist_message
reduce Pairlist message warning level
2020-03-10 10:26:19 +03:00
Fredrik81
bd158eefd2 Fixed loggin 2020-03-10 03:02:52 +01:00
Fredrik81
2f5fc731bb Removed overwrite option 2020-03-09 18:53:30 +01:00
orehunt
3eaae4661d check again for emptiness after trimming dataframe 2020-03-09 17:51:21 +01:00
Matthias
5da63d399b Reduce default order_book_max to 1 2020-03-09 17:38:25 +01:00
Matthias
856ba203d9 Update hyperopt samples docstring 2020-03-09 15:46:46 +01:00
Matthias
c049651784 whitelist_for_active_markets should not remove blacklisted items 2020-03-09 11:30:28 +01:00
Matthias
5cbf325fda Allow different loglevels for message 2020-03-09 11:30:13 +01:00
Fredrik81
cb419614cd Spelling miss 2020-03-08 23:00:21 +01:00
Fredrik81
4ad93ed6bb Changed output for null columns 2020-03-08 22:41:05 +01:00
hroff-1902
3208faf7ed Do not use ticker where it's not a ticker 2020-03-08 20:47:02 +03:00
Matthias
281cf577d1 Remove unsupported FIAT 2020-03-07 17:03:31 +01:00
Matthias
1b3038390a Update comment 2020-03-07 13:05:46 +01:00
Matthias
df5adb6ca5 Exchange coingekko for coinmarketcap 2020-03-07 11:53:08 +01:00
Matthias
847df7b70c
Merge pull request #3026 from yazeed/add_default_to_ignore_roi_if_buy_signal
default for ignore_roi_if_buy_signal in freqtradebot.py
2020-03-06 19:35:41 +01:00
Yazeed Al Oyoun
b8d05d8751 found instance of config get without default 2020-03-05 22:14:05 +01:00
Yazeed Al Oyoun
0587256733 minor create_trade() optimization 2020-03-05 21:57:01 +01:00
Yazeed Al Oyoun
4474482307 unifying get_sell_rate with get_buy_rate 2020-03-05 20:44:29 +01:00
Fredrik81
91db75a707 Added tests and updated doc 2020-03-05 19:43:43 +01:00
hroff-1902
34093d1208
Merge branch 'develop' into no-percent-1 2020-03-05 14:27:12 +03:00
Fredrik81
7606d814fa Initial work on csv-file export. Missing docs and tests 2020-03-05 01:58:33 +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