enenn
1f75636e56
[1/3] Add support for multiple exchanges with ccxt (objectified version) ( #585 )
...
* remove obsolete helper functions and make _state a public member.
* remove function assertions
* revert worker() changes
* Update pytest from 3.4.2 to 3.5.0
* Adapt exchange functions to ccxt API
Remove get_market_summaries and get_wallet_health, add exception handling
* Add NetworkException
* Change pair format in constants.py
* Add tests for exchange functions that comply with ccxt
* Remove bittrex tests
* Remove Bittrex and Interface classes
* Add retrier decorator
* Remove cache from get_ticker
* Remove unused and duplicate imports
* Add keyword arguments for get_fee
* Implement 'get_pair_detail_url'
* Change get_ticker_history format to ccxt format
* Fix exchange urls dict, don't need to initialize exchanges
* Add "Using Exchange ..." logging line
2018-04-06 10:57:08 +03:00
Matthias Voppichler
0203a48f3e
use local config-object for check_exchange
...
fix AttributeError: 'NoneType' object has no attribute 'get' when
starting the bot.
2018-04-04 22:05:17 +02:00
Michael Egger
9019f6492f
define constants on module level ( #596 )
2018-04-02 16:42:53 +02:00
Michael Egger
5420bb9f6d
Merge pull request #594 from xmatthias/obj_ccxt_conv
...
Conversion script for Ticker history data
2018-03-31 17:58:00 +02:00
Matthias Voppichler
a4906c477e
Add handling for gzip files
2018-03-30 23:30:23 +02: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
gcarq
24aa6a1679
adapt test_download_backtesting_testdata
2018-03-29 20:17:11 +02:00
gcarq
3775fdf9c7
change column order assertions
2018-03-29 20:16:46 +02:00
gcarq
872bbadded
add test_load_custom_strategy()
2018-03-27 18:29:51 +02:00
gcarq
157f7da8ce
remove obsolete assertions
2018-03-27 16:32:58 +02:00
gcarq
a356edb117
implement '--strategy-path' argument
2018-03-27 16:32:58 +02:00
gcarq
5fb6fa38aa
apply __slots__ to resolver and reintroduce type conversations
2018-03-27 16:32:58 +02:00
gcarq
280886104c
strategy: remove unneeded population methods in resolver
2018-03-27 16:32:58 +02:00
gcarq
b254ff9b41
Merge 'develop' into feature/enhance-strategy-resolving
2018-03-26 16:23:25 +02:00
Samuel Husso
0a32d38ad9
exchange: fix get_ticker_history test
2018-03-26 09:24:50 +03:00
Samuel Husso
3069a422e9
Conftest: use coins that we know are in bittrex, added a new conf for ccxt unittest
2018-03-26 09:24:22 +03:00
gcarq
611bb52d1f
log hyperopt progress to stdout instead to the logger
2018-03-25 22:57:40 +02:00
gcarq
f374a062e1
remove freqtrade/logger.py
2018-03-25 21:43:00 +02:00
gcarq
fa7f74b4bc
use native python logger
2018-03-25 21:43:00 +02:00
gcarq
3f8d7dae39
make name a required argument and add fallback to getEffectiveLevel
2018-03-25 21:42:03 +02:00
gcarq
6b47c39103
remove invalid mock
2018-03-25 15:12:39 +02:00
gcarq
3cee94226f
fix flake8 warnings
2018-03-25 15:12:39 +02:00
gcarq
a38c2121cc
adapt tests
2018-03-25 15:12:39 +02:00
gcarq
b4d2a3f495
refactor StrategyResolver to work with class names
2018-03-25 15:12:39 +02:00
gcarq
ca9c5edd39
rename Strategy into StrategyResolver
2018-03-25 15:12:39 +02:00
Matthias Voppichler
b07ee26e08
Revert testing exchange to bittrex
2018-03-25 12:57:59 +02:00
Matthias Voppichler
ae803474f9
switch rpc_telgram to new style and make it pass
2018-03-24 20:59:25 +01:00
Matthias Voppichler
0a068db285
Switch rpc_test to new currency style
2018-03-24 20:59:09 +01:00
Matthias Voppichler
32222ae6ef
Fix tests in acl_pair
2018-03-24 20:42:51 +01:00
Matthias Voppichler
82a2144296
change format of health fixture and get_market_summaries fixture
2018-03-24 20:36:33 +01:00
Matthias Voppichler
22ef860312
Change freqbottest currencies
2018-03-24 20:32:15 +01:00
Matthias Voppichler
a6587b209f
freqtradebot_tests - change currency to new format
2018-03-24 20:11:42 +01:00
Matthias Voppichler
609c1eee55
fix persistance tests
2018-03-24 20:03:31 +01:00
gcarq
9df5e09a82
remove function assertions
2018-03-21 18:50:18 +01:00
gcarq
9559f50eec
remove obsolete helper functions and make _state a public member.
2018-03-21 18:50:18 +01:00
Samuel Husso
14d16d573c
Remove bittrex related interface code and tests
2018-03-21 19:31:15 +02:00
gcarq
d2aea7bdc1
optimize imports
2018-03-20 19:50:04 +01:00
gcarq
967bf417df
Merge branch 'develop' into feature/objectify
2018-03-19 19:10:19 +01:00
Matthias
b67257db35
replace pymarketcap with coinmarketcap ( #562 )
...
* replace pymarketcap with coinmarketcap
* fix tests to use coinmarketcap instead of pymarketcap
* use arraypos 0
* update setup.py from pymarketcap to coinmarketcap
* Add test to check for unsupported Crypto currency
2018-03-19 18:40:40 +01:00
Matthias
94caf82ab2
Fix test_dataframe when ran standalone ( #546 )
...
* Fix dataframe test when ran standalone
* Fix standalone tests in hyperopt and optimize tests
2018-03-19 18:30:14 +01:00
Matthias
a99c8c4046
replace pymarketcap with coinmarketcap ( #562 )
...
* replace pymarketcap with coinmarketcap
* fix tests to use coinmarketcap instead of pymarketcap
* use arraypos 0
* update setup.py from pymarketcap to coinmarketcap
* Add test to check for unsupported Crypto currency
2018-03-18 00:42:24 +01: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
Matthias
e907c48438
Fix test_dataframe when ran standalone ( #546 )
...
* Fix dataframe test when ran standalone
* Fix standalone tests in hyperopt and optimize tests
2018-03-15 23:37:34 +01:00
Gerald Lonlas
173b640b34
Increase Hyperopt() code coverage
2018-03-05 22:36:15 -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
d685646446
Arguments(): Change private methods to public
2018-03-04 17:51:57 -08:00
Gerald Lonlas
25d0e5f942
Merge commit '4dca84817eb1b62047a9e4d282254392ea978e44' into feature/objectify
2018-03-04 02:06:40 -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
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
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
390501bac0
Make Pylint Happy chapter 1
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
Janne Sinivirta
bf54692efb
use log_has helper in tests
2018-02-24 22:18:19 +02:00
Janne Sinivirta
76c5cdc6e3
more minor tweaks to log messages
2018-02-24 20:30:16 +02:00
Janne Sinivirta
646d1f7316
better log message for outdated history
2018-02-24 19:25:08 +02:00
Janne Sinivirta
160af91f9a
improving log messages
2018-02-24 18:58:57 +02:00
Janne Sinivirta
cf013140a6
add went_up and went_down helpers
2018-02-13 11:37:59 +02:00
Samuel Husso
e3d222912d
Merge pull request #511 from gcarq/hyperopt_selectable_spaces
...
Allow selecting Hyperopt search space
2018-02-12 08:28:24 +02:00
Janne Sinivirta
b1230b27b7
adjust unit test to match new --spaces format
2018-02-11 19:22:13 +02:00
Janne Sinivirta
2ce03ab1b5
make Strategy store roi and stoploss values as numbers to avoid later casting
2018-02-11 15:25:30 +02:00
Janne Sinivirta
f14d6249e0
allow selecting hyperopt searchspace
2018-02-09 20:59:06 +02:00
kryofly
12a19e400f
tests: more backtesting testing ( #496 )
...
* tests: more backtesting testing
* tests: hyperopt
* tests: document kludge
* tests: improve test_dataframe_correct_length
* tests: remove remarks
2018-02-08 21:49:43 +02:00
Janne Sinivirta
0454b4c8d5
remove unnecessary Decimal construction
2018-02-06 21:37:11 +02:00
Janne Sinivirta
8c7b29734e
use date info to calculate trade durations
2018-02-06 11:34:00 +02: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
Samuel Husso
d5435a9962
Merge pull request #487 from gcarq/pyup-update-pytest-3.3.2-to-3.4.0
...
Update pytest to 3.4.0
2018-02-01 08:21:45 +02:00
kryofly
9f6aedea47
telegram refactor 1/ ( #389 )
...
* telegram refactor 1/
move out freqcode from telegram
* telegram refactor 2/
move out rpc_trade_status
* telegram refactor 3/
move out rpc_daily_profit
* telegram refactor /4
move out rpc_trade_statistics
* 5/
* rpc refactor 6/
* rpc refactor 7/
* rpc refactor 8/
* rpc refactor 9/
* rpc refactor 10/
cleanups
two tests are broken
* fiat
* rpc: Add back fiat singleton usage
* test: rpc_trade_statistics
Test that rpc_trade_statistics can handle trades that lacks
trade.open_rate (it is set to None)
* test: rpc_forcesell
Also some cleanups
* test: telegram.py::init
* test: telegram test_cleanup and test_status
* test rcp cleanup
2018-02-01 08:05:23 +02:00
Janne Sinivirta
45975c9677
set capturing level
2018-01-31 19:37:38 +02:00
Gerald Lonlas
cac2f2b58b
Wrong assert condition
2018-01-29 23:04:28 -08:00
Gerald Lonlas
524290d678
Fix backtesting ticker interval download
2018-01-29 22:51:29 -08:00
Samuel Husso
990a609afd
test_analyze: update dataframe magic len check so that test pass
2018-01-30 07:26:00 +02:00
Samuel Husso
271e11e065
update backtesting data for the latest market craze
2018-01-30 07:01:44 +02:00
Janne Sinivirta
21b142df40
Merge pull request #453 from ermakus/fix_usdt_balance
...
Fix usdt balance
2018-01-29 08:48:38 +02:00
Janne Sinivirta
a5155b3b20
Merge pull request #465 from gcarq/fix/increase_test_coverage
...
Fix/increase test coverage
2018-01-29 08:47:26 +02:00
Anton Ermak
807c067701
More test coverage
2018-01-29 10:55:42 +07:00
Michael Smith
e438422a22
test_optimize.py:
...
Added spaces for flake8 compliance.
2018-01-29 11:21:01 +08:00
Michael Smith
b8f2341998
BTC_UNITEST-8.json:
...
Added to test gzip loading before .json file.
2018-01-29 10:25:24 +08:00
Michael Smith
4799e1ed44
tests/optimize/test_optimize.py:
...
Added test for gzip ticker file.
BTC_UNITEST-8.json.gz:
Added to test gzip loading.
2018-01-29 10:22:55 +08:00
Michael Smith
e3b295cecc
tests/optimize/test_optimize.py:
...
Added test for gzip ticker file.
BTC_UNITEST-8.json.gz:
Added to test gzip loading.
2018-01-29 10:22:34 +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
Gerald Lonlas
fd9c62d1c4
Increase test coverage on strategy.py
2018-01-28 15:16:22 -08:00
Gerald Lonlas
25ab08f422
Fix Flake8 warning
2018-01-28 15:03:54 -08:00
Gerald Lonlas
d85b56a2bd
Add unit test for test_file_dump_json()
2018-01-28 14:38:30 -08:00
Gerald Lonlas
45a34be2ac
Add more unittest for trim_tickerlist() method
2018-01-28 14:20:20 -08:00
Janne Sinivirta
bb470d0aea
Merge pull request #451 from gcarq/pyup-update-python-bittrex-0.2.2-to-0.3.0
...
Update python-bittrex to 0.3.0
2018-01-28 11:14:57 +02:00
Anton Ermak
81ed7627bf
Unit test
2018-01-28 16:08:43 +07:00
Samuel Husso
8be94c4af4
remove custom timeout as the latest bittrex package version implemented it
2018-01-28 11:03:19 +02:00
Gerald Lonlas
d824816880
Increase pylint score on test files
2018-01-28 00:28:41 -08:00
Gerald Lonlas
776dd4a0d5
Increase pylint score on strategy
2018-01-27 21:26:57 -08:00
Gerald Lonlas
67c6c380e1
Increase pylint score for fiat_convert
2018-01-27 18:23:08 -08:00
Janne Sinivirta
1eebbebed1
fix assert order
2018-01-26 19:02:25 +02:00
Janne Sinivirta
a5690e707d
remove unused parameters
2018-01-26 19:02:25 +02:00
Janne Sinivirta
0ff56c6e8d
use uppercase constant
2018-01-26 18:54:15 +02:00
Janne Sinivirta
e14007ced4
sort imports
2018-01-26 18:52:39 +02:00
Janne Sinivirta
5505845c6f
remove unused method parameter
2018-01-26 18:48:53 +02:00
Janne Sinivirta
a7a7c37121
add day counter to timeframe
2018-01-26 18:32:45 +02:00
Gerald Lonlas
0baffd94a4
Fix test_clean_dry_run_db failing test
2018-01-25 21:05:10 -08:00
Janne Sinivirta
42087c9bfe
let hyperopt optimize ROI table
2018-01-25 11:12:00 +02:00
Janne Sinivirta
5007165908
add search space for ROI table
2018-01-25 09:34:26 +02:00
Janne Sinivirta
7dc63c06e7
Merge pull request #356 from kryofly/test_coverage
...
Test coverage
2018-01-25 09:31:06 +02:00
kryofly
30ca078cec
test: use pytest fixture
2018-01-24 11:05:27 +01:00
kryofly
a14d9d35c7
tests: run backtest single
2018-01-24 10:32:52 +01:00
Samuel Husso
c968b904de
Merge pull request #429 from gcarq/fix/issue-385
...
Fix dry_run db issue when open_order_id already exist
2018-01-24 07:25:26 +02:00
Janne Sinivirta
c400d15ed1
rip out hyperopt things from strategy, add indicator populating to hyperopt
2018-01-23 16:56:12 +02:00
Janne Sinivirta
a6cbc1ba16
Merge pull request #400 from gcarq/feature/custom_strategy
...
Allow custom strategy files
2018-01-23 15:25:18 +02:00
Samuel Husso
b11fe2f814
Merge pull request #424 from gcarq/feat/telegram-sell-msg
...
Feat/telegram sell msg
2018-01-23 10:59:05 +02:00
Gerald Lonlas
f4298a7323
Fix dry_run db issue when open_order_id exist
2018-01-22 23:23:29 -08:00
Samuel Husso
93bd63cfbe
get rid of / replacements, minor edit to outgoing msg
2018-01-23 08:55:22 +02:00
Gerald Lonlas
41aa8f18fb
Add ticker_interval support in strategy class
2018-01-22 20:51:39 -08:00
Gerald Lonlas
baae374899
Move hyperopt_conf.py into user_data/
2018-01-22 20:51:39 -08:00
Gerald Lonlas
be75522507
Fix flake8
2018-01-22 20:51:39 -08:00
Gerald Lonlas
c46d78b4b9
Decouple strategy from analyse.py
2018-01-22 20:51:39 -08:00
Janne Sinivirta
f7e979f3ba
Merge pull request #423 from gcarq/feature/Crypto2Fiat_Singleton
...
Convert CryptoToFiatConverter into a Singleton
2018-01-22 16:24:19 +02:00
Samuel Husso
757a46ab12
ticker_interval as int (instead of string)
2018-01-22 10:39:26 +02:00
Samuel Husso
bce6a7be61
rebase develop and update tests
2018-01-22 09:39:11 +02:00
Samuel Husso
6abbf45042
Update tests to reflect new selling msg
2018-01-22 09:36:56 +02:00
kryofly
aec481b6b3
tests: 100% cov bittrex.py
2018-01-22 08:30:00 +01:00
Gerald Lonlas
28b1ecb109
Convert CryptoToFiatConverter into a Singleton
...
Result in a speed up of the unittest from 60s to 4s
Because it cost time to load Pymarketcap() every time we create
a CryptoToFiatConverter, it worth it to change it into a
Singleton.
2018-01-21 16:41:59 -08:00
Jean-Baptiste LE STANG
c0d3ac5534
With a better unit test thanks @glonlas
2018-01-21 15:02:41 +01:00
Jean-Baptiste LE STANG
960d088deb
Fixing the 'BV' key being missing for USDT
2018-01-21 15:02:41 +01:00
Gerald Lonlas
998081785e
Fix the issue get_signal() missing 1 required positional argument: Interval
2018-01-20 15:05:01 -08:00