Commit Graph
100 Commits
Author SHA1 Message Date
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
Gerald Lonlas acbfe91f13 Allow EUR / USD as stake_currency
It will enable to trade with FIAT on exhanges like GDAX or Kraken.
2018-06-03 00:13:48 -07: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
Gérald LONLAS 5e99df1759 Merge pull request #824 from xmatthias/rymdluo-patch-1
Make backtesting report markdown shareable (resubmit)
2018-06-02 13:05:11 -07:00
Gerald Lonlas dc65753a64 Fix the in-progress dot that does not show up during a Hyperopt run 2018-06-02 12:35:07 -07: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
Gérald LONLAS 41efe99770 Merge pull request #786 from gcarq/fix/setup_script
Update setup.sh
2018-06-01 19:48:29 -07:00
Gerald Lonlas 792dd556a1 Fix wrong hint '--update-pairs-cached' from Backtesting/Hyperopt 2018-06-01 19:46:53 -07:00
Gerald Lonlas 4329c15a9b Doc: Add Buzz/trendy word 2018-05-29 22:38:48 -07:00
Gerald Lonlas 963d2a8368 Doc: update bot usage 2018-05-29 22:24:13 -07:00
Gerald Lonlas d9eddfb1ee Doc: Update the exchanges supported 2018-05-29 22:21:29 -07:00
Gerald Lonlas f59f534c64 Setup.sh: fix Python3.6 when broken on macOS 2018-05-29 20:49:37 -07:00
Gerald Lonlas 5a4eb2cbf2 Setup.sh: make message format consistent 2018-05-29 20:48:34 -07:00
Gerald Lonlas 7cafd1f17e Update exchange unit tests 2018-03-30 13:52:25 -07:00
Gerald Lonlas 3d2c6a22a3 Fix test_validate_pairs() 2018-03-30 13:31:13 -07:00
Gerald Lonlas 052404ffbd Check if the exchange is supported 2018-03-30 13:14:35 -07:00
Gerald Lonlas 96b2210c0f Change deprecated logger.warn by warning 2018-03-30 12:11:06 -07:00
Gérald LONLAS e6732e01e1 Use ticker_interval defined in Strategy() instead of a mix between strategy and config file (#540) 2018-03-15 23:48:22 +01:00
Gérald LONLAS a10cd23990 Merge branch 'develop' into pyup-update-python-telegram-bot-9.0.0-to-10.0.1 2018-03-07 19:40:19 -08:00
Gerald Lonlas c94f55807b Merge branch 'develop' into feature/objectify 2018-03-06 03:33:00 -08:00
Gerald Lonlas 173b640b34 Increase Hyperopt() code coverage 2018-03-05 22:36:15 -08:00
Gerald Lonlas 0bb7cc8ab5 Hyperopt: fix 'Ran out of input' error 2018-03-05 20:49:45 -08:00
Gerald Lonlas a8fd7a69ab Increase Configuration._load_config_file() code coverage 2018-03-05 19:57:45 -08:00
Gerald Lonlas ea7b25766b Increase Hyperopt() code coverage 2018-03-05 00:35:42 -08:00
Gerald Lonlas 1d43e04725 Increase FreqtradeBot() code coverage 2018-03-05 00:11:13 -08:00
Gerald Lonlas ba664c4341 Increase Configuration._load_hyperopt_config() code coverage 2018-03-04 23:12:34 -08:00
Gerald Lonlas aa22585d40 Add unit test for misc.common_datearray() 2018-03-04 23:05:44 -08:00
Gerald Lonlas cf78da5fae Plot_profit.py: Fix Flake8 warnings 2018-03-04 20:24:01 -08:00
Gerald Lonlas 152c4483c8 Configuration() sends a msg to user when config file not found 2018-03-04 20:22:40 -08:00
Gerald Lonlas 45341bb246 Plot_profit.py: fix it and make it works with the new object model 2018-03-04 20:21:49 -08:00
Gerald Lonlas 9ae2491b1e Plot_dataframe.py: make it works with the new object model 2018-03-04 18:12:43 -08:00
Gerald Lonlas d685646446 Arguments(): Change private methods to public 2018-03-04 17:51:57 -08:00
Gerald Lonlas de468c6fc8 Fix wrong realistic_simulation implementation in Hyperopt 2018-03-04 02:31:25 -08:00
Gerald Lonlas 6f3949bb6d Merge commit 'b799445b1a690a3773cb4b0ab73947c382285f95' into feature/objectify 2018-03-04 02:07:08 -08:00
Gerald Lonlas 25d0e5f942 Merge commit '4dca84817eb1b62047a9e4d282254392ea978e44' into feature/objectify 2018-03-04 02:06:40 -08:00
Gerald Lonlas 4abb7e22ac Merge commit 'cd28693726d4034e0332076803930ee0b6a0ae1d' into feature/objectify 2018-03-04 01:34:35 -08:00
Gerald Lonlas f8781bc193 Merge commit '293dc4da8025461c67d191981604e3c4da7137bf' into feature/objectify 2018-03-04 01:34:23 -08:00
Gerald Lonlas d7e9d8c6cc Merge commit 'df13a6f3338e94b2f49e62f776e0fe94b2e08d6b' into feature/objectify 2018-03-04 01:34:07 -08:00
Gerald Lonlas 6fcc173489 Merge commit '35c51c73f713bfdb81bd84721f3dceab0c19e819' into feature/objectify 2018-03-04 01:33:39 -08:00
Gerald Lonlas bb1e38f584 Merge commit '8eed9c08a6cffdd7c6b43fa3db2c3e08d1657f43' into feature/objectify 2018-03-04 01:01:19 -08:00
Gerald Lonlas c52e688979 Fix unit tests in test_arguments.py and test_configuration.py 2018-03-04 00:58:20 -08:00
Gerald Lonlas 2001c20426 Merge commit '028700d86f130d5c3cbfef4e422dc701340f58c9' into feature/objectify 2018-03-04 00:53:27 -08:00
Gerald Lonlas 5a6f6c7138 Merge commit 'd13d6736b92ebfed1e172b60c77029e6c10b29a6' into feature/objectify 2018-03-04 00:51:49 -08:00
Gerald Lonlas 722ed48d9d Merge commit 'e3d222912dfd775b7456a44d6d6055430711f251' into feature/objectify 2018-03-04 00:51:22 -08:00
Gerald Lonlas 38510d4b03 Merge commit '1134c81aad049d4357c8f299ffc801218f3d9574' into feature/objectify 2018-03-03 17:26:06 -08:00
Gerald Lonlas 96a343fb29 Merge commit '53b1f7ac4d0449d54711d1f406d1c0a79dc5d8ee' into feature/objectify 2018-03-03 14:59:01 -08:00
Gerald Lonlas 84759073d9 Refactor Configuration() to apply common configurations all the time and to remove show_info 2018-03-03 13:43:14 -08:00
Gerald Lonlas 0632cf0f44 Merge commit 'aa7aeb046ef72412cadd094666efc8e4c503ef2d' into feature/objectify 2018-03-02 23:28:36 -08:00
Gerald Lonlas bbb1a31fda Merge commit 'c5400b6c37c7de64a86c9db39a4d0fa9169b35f6' into feature/objectify 2018-03-03 10:01:06 +08:00
Gerald Lonlas 6158de3729 Merge commit '192521523f3894d40a8d1d77308504912618e375' into feature/objectify 2018-03-03 09:41:08 +08:00
Gerald Lonlas 3ba365ceb2 Merge commit 'fecd9f830ec4e8e9d5d1f3a70310d42bbe3f274a' into feature/objectify 2018-03-03 09:39:27 +08:00
Gerald Lonlas 5b314e2f7a Port commit "Remove Strategy fallback to default strategy (#490)"
Hash: d24cd89304
2018-03-03 09:33:54 +08:00
Gerald Lonlas 390501bac0 Make Pylint Happy chapter 1 2018-03-03 09:33:54 +08:00
Gerald Lonlas d274f13480 Remove Memory profiler in Backtesting 2018-03-03 09:33:54 +08:00
Gerald Lonlas 6148f98980 Fix Telegram unit test when using an internet connection 2018-03-03 09:33:54 +08:00
Gerald Lonlas 8bd0f4d0d7 Remove ugly pprints 2018-03-03 09:33:54 +08:00
Gerald Lonlas bc8ca491cd Minor updates 2018-03-03 09:33:54 +08:00
Gerald Lonlas 6ef7b7d93d Complete Backtesting and Hyperopt unit tests 2018-03-03 09:33:54 +08:00
Gerald Lonlas f4ec073099 Move RPC and Telegram to classes 2018-03-03 09:33:54 +08:00
Gerald Lonlas 766ec5ad0f Update unit tests to be compatible with this refactoring
Updated:
- test_acl_pair to be compatible with FreqtradeBot() class
- test_default_strategy.py to be compatible with Analyze() class
2018-03-03 09:33:54 +08:00
Gerald Lonlas 383fb6d20e Add a class Arguments to manage cli arguments passed to the bot 2018-03-03 09:33:54 +08:00
Gerald Lonlas 1d251d6151 Move Backtesting to a class and add unit tests 2018-03-03 09:33:54 +08:00
Gerald Lonlas db67b10605 Remove Singleton from Strategy() 2018-03-03 09:33:54 +08:00
Gerald Lonlas 4da033c7a2 Refactor main.py
- Update, clean, and improve code coverage on main.py
- Move bot trading logic into Freqtradebot() class
- Move unit tests to test_freqtradebot, add more coverage tests
2018-03-03 09:33:54 +08:00
Gerald Lonlas a8b8ab20b7 Move Analyze to a class 2018-03-03 09:33:54 +08:00
Gerald Lonlas e025dc0dba Keep in misc file only tool functions 2018-03-03 09:33:54 +08:00
Gerald Lonlas 89e3729955 Add a Configuration class that generate the Bot config from Arguments 2018-03-03 09:33:54 +08:00
Gerald Lonlas 3b9e828fa4 Add a class Logger to manage the logging messages
This class will evolve later to support color logging. For now
it is used to not repeat the logging configuration everywhere.
2018-03-03 09:33:54 +08:00
Gerald Lonlas cf753d5c40 Add a Enum class State that contains Bot running states 2018-03-03 09:33:54 +08:00
Gerald Lonlas 314ab0a84f Add a Constants class that contains Bot constants 2018-03-03 09:33:54 +08:00
Gérald LONLAS 1134c81aad Merge pull request #513 from gcarq/arrays_for_backtesting
Make backtesting 5x faster
2018-02-11 21:02:43 -08:00
Gérald LONLAS aa7aeb046e Merge pull request #508 from gcarq/faster_backtesting
Faster backtesting
2018-02-06 22:59:45 -08:00
Gérald LONLAS 2765ee5a85 Merge pull request #504 from gcarq/improve_argparse
Use substitution in argparse help texts
2018-02-04 13:36:01 -08:00
Gérald LONLAS 4b62f84cc7 Merge pull request #500 from gcarq/fix/setup.sh
Fix config generation on setup.sh
2018-02-03 19:04:07 -08:00
Gerald Lonlas 2c16ba18a4 Fix config generation on setup.sh 2018-02-03 12:55:15 -08:00
Gérald LONLAS e1a033672f Merge pull request #493 from macd2/patch-3
typo fix
2018-02-02 09:34:45 -08:00
Gérald LONLAS d24cd89304 Remove Strategy fallback to default strategy (#490)
* Remove Strategy fallback to default strategy
2018-02-02 11:01:09 +02:00
Gérald LONLAS 529e4d0131 Merge pull request #484 from baudbox/develop
Adding 1.6 comment into telegram pre-requirements
2018-01-30 08:17:01 -08:00
Gerald Lonlas d313eb812d Forgot one args.ticker_interval 2018-01-29 23:07:54 -08:00
Gerald Lonlas cac2f2b58b Wrong assert condition 2018-01-29 23:04:28 -08:00
Gerald Lonlas 321e3ede30 Fix hyperopt ticker interval download 2018-01-29 22:53:28 -08:00
Gerald Lonlas 524290d678 Fix backtesting ticker interval download 2018-01-29 22:51:29 -08:00
Gérald LONLAS ac006e0d52 Merge pull request #469 from jblestang/refactoring_sell_eval_conditions
Refactoring the sell conditions evaluation to share the function with…
2018-01-29 18:45:20 -08:00
Gérald LONLAS 0bf56f249a Merge pull request #473 from ElanHasson/patch-1
Fixed typo. Update bot-usage.md
2018-01-29 13:08:37 -08:00
Gerald Lonlas 7a3eb40697 Ignore freqtrade-plot.html 2018-01-28 23:41:22 -08:00
Gerald Lonlas 7321836bfb Indent functions code 2018-01-28 23:35:13 -08:00
Gerald Lonlas 96c54716d7 Add --plot parameter for installing plotting dependencies 2018-01-28 23:24:41 -08:00
Gerald Lonlas f69adc1894 Add setup.sh script to install and update the bot 2018-01-28 23:18:15 -08:00
Gérald LONLAS b8af493b56 Merge pull request #459 from rybolov/develop
Read .gzip files in testdata/
2018-01-28 19:27:36 -08:00
Gérald LONLAS 91ed349e11 Merge pull request #466 from gcarq/fix/doc
Update doc: add --upgrade pip
2018-01-28 18:44:43 -08:00
Gerald Lonlas 2a37034787 Update doc: add --upgrade pip 2018-01-28 18:01:02 -08:00
Gérald LONLAS aae8044150 Merge pull request #456 from jblestang/fix_old_dataframe_detection_for_longer_tickers
Fixing wrong 'old dataframe detection mechanism' for long tickers
2018-01-28 17:40:03 -08:00
Gerald Lonlas 20af5049af Thanks Flake8 2018-01-28 16:34:38 -08:00
Gerald Lonlas 3e777a9d87 Add unit test in misc.py to cover datesarray_to_datetimearray() 2018-01-28 16:25:15 -08:00
Gerald Lonlas 36fa5b827d Add unit test on rpc_telegram.py 2018-01-28 16:18:10 -08:00
Gerald Lonlas 7ab2498544 Increase test coverage on optimize.py 2018-01-28 15:33:57 -08:00
Gerald Lonlas df453803ce Increase test coverage on rpc_telegram.py 2018-01-28 15:29:26 -08:00