Matthias
7e5fd82f25
Merge pull request #1269 from freqtrade/feat/force_buy
...
add /forcebuy to telgram handler
2018-11-04 09:25:13 +01:00
misagh
080ecae332
whitelist conflict resolved with develop branch
2018-11-02 18:59:31 +01:00
Matthias
2f55cbde35
fix #1298
2018-10-29 19:23:56 +01:00
misagh
25daf3a0f7
Merge branch 'develop' into money_mgt
2018-10-23 19:33:13 +02:00
Matthias
677a9e56af
remove skipped test (refresh_whitelist is tested in test_acl_pair)
2018-10-21 09:23:07 +02:00
Matthias
202b1d1f0b
fix #1289 - we should not modify decimal context
2018-10-21 09:21:32 +02:00
Matthias
5029003957
Allow passing price to buy function
2018-10-09 07:06:11 +02:00
misagh
77cac9e562
autopep8 applied
2018-10-04 18:07:47 +02:00
misagh
06d75a8bad
test cases added: force_stoploss by Edge
2018-10-04 18:05:46 +02:00
Matthias
f4585a2745
Patch exchange to not cause network delays during tests
2018-09-29 13:35:48 +02:00
misagh
d6415f3499
Merge branch 'develop' into money_mgt
2018-09-27 14:54:18 +02:00
Matthias
5dac3b5664
Merge pull request #1238 from freqtrade/fix/buyexception
...
Fix exception when order cannot be found
2018-09-26 19:26:17 +02:00
misagh
abb398786e
Merge branch 'develop' into money_mgt
2018-09-26 16:06:38 +02:00
Matthias
88ccdc0366
Fix exception when order cannot be found
2018-09-25 20:45:01 +02:00
misagh
027ec4d98e
test_sell_profit_only_enable_loss and test_create_trade_limit_reached
...
fixed
2018-09-24 15:47:07 +02:00
misagh
308428644b
test_process_trade_creation log message changed: in reality the buy
...
signal is actually triggered
2018-09-24 15:27:26 +02:00
misagh
76dd754963
test_get_trade_stake_amount and
...
test_get_trade_stake_amount_no_stake_amount fixed: “pair” arg added to
_get_trade_stake_amount
2018-09-24 15:02:50 +02:00
misagh
303eefda76
test_get_trade_stake_amount_unlimited_amount fixed: “pair” argument
...
added to _get_trade_stake_amount
2018-09-24 14:55:49 +02:00
Matthias
c429eae6e4
Adjust remaining tests to _load_markets refactoring
2018-09-11 19:59:01 +02:00
Matthias
f954efbd64
Adapt tests to not _load_markets
2018-09-10 20:19:28 +02:00
Matthias
ffd4469c1d
fix typo, refresh_tickers does not need a return value
2018-08-29 19:56:38 +02:00
Matthias
54ddd908e6
Merge branch 'develop' into ccxt-async
2018-08-29 19:43:09 +02:00
Matthias
9f8e68ce02
Merge branch 'develop' into order-book
2018-08-29 19:32:44 +02:00
Nullart2
b6b89a464f
move order_book config out of experimental
2018-08-29 17:38:43 +08:00
Matthias
42587741dd
mock exchange to avoid random failures
2018-08-25 13:21:10 +02:00
Matthias
de0f3e43bf
remove unused mocks
2018-08-19 19:49:39 +02:00
Matthias
ff8ed564f1
Refactor refresh_pairs to exchange and fix tests
2018-08-16 12:15:09 +02:00
misagh
e6e2799f03
Keeping cached Klines only in exchange and renaming _cached_klines to
...
klines.
2018-08-16 11:37:31 +02:00
misagh
a2d9126917
Merge branch 'develop' into ccxt-async
2018-08-15 15:09:35 +02:00
Nullart2
b34aa46181
additional tests
2018-08-15 12:05:56 +08:00
Matthias
69cc6aa958
Add test to async
2018-08-14 16:02:03 +02:00
Nullart2
78610bb47f
mock order_book and additional test
2018-08-14 18:12:44 +08: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
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
337d9174d9
Flake8 fixes
2018-08-02 20:11:27 +02:00
misagh
2ec2f1abce
async branch updated to reflect develop branch changes
2018-08-02 16:48:21 +02:00
creslin
1f97d0d78b
fix
2018-08-02 09:15:02 +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
12417cc303
fix tests
2018-07-31 20:54:51 +02: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
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
Janne Sinivirta
1bbb86c621
remove nonsense asserts
2018-07-29 16:23:17 +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
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
Janne Sinivirta
0b3190552e
Merge pull request #1018 from freqtrade/feat/sell_reason
...
Record sell reason
2018-07-24 09:09:45 +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
be3f04775a
remove unnecessary mocks - add mocks which went to exchange
2018-07-21 20:21:00 +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
8c0b19f80c
Check sell-reason for sell-reason-specific tests
2018-07-19 19:29:31 +02:00
Matthias
49a7c7f08e
fix tests
2018-07-19 19:27:33 +02:00
Matthias
c0a7725c1f
Add stoploss offset
2018-07-19 13:22:44 +02:00
Janne Sinivirta
aeb4102bcb
refactor Analyze class methods to base Strategy class
2018-07-16 08:23:39 +03:00
Janne Sinivirta
a74147c472
move strategy initialization outside Analyze
2018-07-16 08:23:39 +03: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
Janne Sinivirta
bf4d0a9b70
sort imports
2018-07-04 10:31:35 +03:00
Matthias
ed2a1becef
Merge branch 'develop' into feat/stop_loss
2018-07-01 20:01:02 +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
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
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
xmatthias
2d4ce593b5
catch crash with cobinhood
...
fixes #959
2018-06-28 19:53:51 +02:00
xmatthias
78e6c9fdf6
add tests for trailing stoploss
2018-06-27 06:52:31 +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
Anton
f82b809fcf
Merge with develop
2018-06-23 16:50:27 +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
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
6e6ec969eb
cleanup mockings
2018-06-17 23:38:07 +02:00
xmatthias
975b42caa3
fix tests for exchange objectify
2018-06-17 23:38:07 +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
gcarq
3787dad212
don't import python-telegram-bot at runtime if disabled in config
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
Anton
708320318c
Check minimal amount
2018-06-12 01:05:43 +03:00
Anton
ce663f6af5
Merge with develop
2018-06-11 16:25:05 +03: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
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
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
a29ac44d64
adapt tests
2018-06-07 05:27:55 +02:00
Anton
12d8a8b1a3
Fix review comments
2018-06-06 00:14:28 +03:00
Anton
daa9c0c026
Fix review comments
2018-06-04 01:48:26 +03:00
Anton
3427c7eb54
Use constants
2018-05-25 17:04:08 +03:00
Anton
cf5d691950
Clean the tests
2018-05-25 00:46:08 +03:00
Anton
9be98cd8f7
Add ability to set unlimited stake_amount
2018-05-23 13:15:03 +03:00
Matthias Voppichler
ef78f2f03a
Add test for invalid order_fee dict
2018-05-15 20:13:43 +02:00
Matthias Voppichler
a1fa688da0
Add tests for the new scenario
2018-05-15 19:49:47 +02:00
Matthias Voppichler
b1c53ec656
refactor "patch_coinmarketcap" to conftest"
...
add patch_coinmarketcap to get_patched_freqtradebot
2018-05-13 20:04:40 +02:00
gcarq
a76ed88496
Merge branch 'feat/objectify-ccxt' into feature/catch-exchange-errors
2018-05-02 20:03:13 +02:00
Matthias Voppichler
8bd9ed1543
fix flake8
2018-04-25 09:13:56 +02:00
Matthias Voppichler
72c17e29c0
Add test for "no trades found" case
2018-04-25 09:08:02 +02:00
Matthias Voppichler
9c2115c917
refactor get_real_amount
2018-04-25 08:52:08 +02:00
Matthias Voppichler
f580fbb91d
remove maybe_update_amount and tests
2018-04-23 20:03:10 +02:00
gcarq
5baab91bb5
catch TemporaryError for buy/sell in _process()
2018-04-22 20:28:39 +02:00
Matthias Voppichler
a70958da41
test modify-logic
2018-04-22 11:05:23 +02:00
Matthias Voppichler
f838ba2a9b
remove fee column from bot
2018-04-22 10:04:30 +02:00
Matthias Voppichler
a140748b5a
Merge branch 'feat/objectify-ccxt' into cxxt_obj_sellfix
2018-04-21 22:39:22 +02:00
gcarq
09fb4ea584
add mocks for exchange.get_fee
2018-04-21 19:39:18 +02:00
Matthias Voppichler
f69e8458f4
Add tests for update_real_amount
2018-04-21 13:33:29 +02:00
Matthias Voppichler
1d43dc229b
refactor tests of get_real_amount
2018-04-21 13:33:29 +02:00
Matthias Voppichler
11d8f7d522
add get_real_amount and tests
2018-04-21 13:33:29 +02:00
enenn
f1d406b1e6
Fix possible race condition during testing
...
Order would sometimes fail to sell during tests,
probably because time between current time and creation was 0
2018-04-15 12:50:47 +02:00
enenn
89ed2e0127
Get mocked exhange buy return value from existing fixture
2018-04-15 12:48:02 +02:00
enenn
53b1f8d3a4
Add a 4th pair to testing dynamic whitelist generation
2018-04-15 12:20:49 +02:00
enenn
cc5991d269
Fixturize fee MagicMock object in tests
2018-04-15 12:09:12 +02:00
enenn
a9ba0981c7
Use exchange id for Trade and exchange name for RPC
2018-04-12 18:07:44 +02:00
enenn
fef8a4c978
Update tests related to whitelist
2018-04-12 18:07:44 +02:00
enenn
12a84cc30b
Mock fee during testing as 0.0025
...
Ensures profit calculations does not vary if exchange fees change, which can cause tests to fail
2018-04-12 18:07:44 +02:00
enenn
4810d87044
Change buy/sell return value in tests
2018-04-12 18:07:43 +02:00
enenn
0b71f7186c
Replace 'get_wallet_health' and 'get_markets_summaries'
...
Both are now covered by 'get_markets'
2018-04-12 18:07:43 +02:00
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
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
gcarq
d2aea7bdc1
optimize imports
2018-03-20 19:50:04 +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
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
Gerald Lonlas
1d43e04725
Increase FreqtradeBot() code coverage
2018-03-05 00:11:13 -08:00
Gerald Lonlas
25d0e5f942
Merge commit '4dca84817eb1b62047a9e4d282254392ea978e44' into feature/objectify
2018-03-04 02:06:40 -08:00
Gerald Lonlas
bc8ca491cd
Minor updates
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