Matthias
12948aade6
Remove unused argument
2022-03-14 19:29:26 +01:00
adriance
7dd57e8c04
format
2022-03-14 18:39:11 +08:00
adriance
1d4eeacc6d
fix test_backtest__enter_trade_futures row data error
2022-03-14 17:55:42 +08:00
Matthias
c63b5fbbbf
Use last to get rates for /balance endpoints
2022-03-13 17:53:52 +01:00
Matthias
32c06f4a05
Improve test
2022-03-13 16:45:11 +01:00
Matthias
d5f0c6c78d
Exclude alternative candletypes from timeframe check
2022-03-13 16:16:48 +01:00
Matthias
cfa9458bcc
Merge branch 'develop' into feat/short
2022-03-13 15:38:12 +01:00
Sam Germain
843606c9cb
gateio stoploss adjust
2022-03-12 20:14:23 -06:00
Sam Germain
91549d3254
Revert "stoploss_adjust fixed breaking tests"
...
This reverts commit 6f4d607902
.
2022-03-12 20:07:56 -06:00
Sam Germain
7e7e596372
Revert "moved binance.stoploss_adjust to exchange class"
...
This reverts commit 6bb93bdc25
.
2022-03-12 20:07:50 -06:00
Sam Germain
bf5afbcdbd
Merge branch 'develop' into gateio-stoploss
2022-03-12 19:50:46 -06:00
Matthias
b044dd2c45
Update custom_sell to custom_exit
2022-03-12 11:37:56 +01:00
Matthias
fe62a71f4c
Simplify implementation of "check_override" by extracting it to function
2022-03-12 10:58:48 +01:00
Matthias
6946203a7c
Add tests and test-strategies for custom "implements" requirements
2022-03-12 10:05:16 +01:00
Matthias
9460fd8d75
Add Appropriate test for loading error
2022-03-12 09:49:20 +01:00
Matthias
28046c6a22
Change populate_buy_trend to populate_entry_trend
2022-03-12 09:38:28 +01:00
Matthias
efc313b28b
Merge pull request #6512 from freqtrade/short_order_types
...
Short order types renamal
2022-03-12 09:32:16 +01:00
Matthias
b9b5d749bb
Fix typo causing an implicit bug
2022-03-12 08:58:59 +01:00
Matthias
0aa170ac95
Check can_short in live-mode as well.
2022-03-12 06:58:22 +01:00
Matthias
20fc9459f2
Add test for can_short strategy attribute
2022-03-11 19:37:45 +01:00
Matthias
7825d855cd
Fix flake8 error in tests
2022-03-11 19:28:15 +01:00
Matthias
11c76c3c89
Check if timeframe is available before calling exchange
...
closes #6517
2022-03-11 18:01:30 +01:00
Matthias
9ff52c0a93
Add test for emergencysell behaviour
2022-03-11 08:26:28 +01:00
Matthias
cb9da78a27
Merge branch 'develop' into feat/short
2022-03-10 06:54:20 +01:00
Matthias
98755c1874
Fix wrong estimated output from /balance endpoints
2022-03-10 06:47:17 +01:00
Sam Germain
6f4d607902
stoploss_adjust fixed breaking tests
2022-03-09 19:31:51 -06:00
Sam Germain
6bb93bdc25
moved binance.stoploss_adjust to exchange class
2022-03-09 15:47:16 -06:00
Matthias
a837571e2b
Improve dry-run-wallets in futures case test
2022-03-09 19:01:38 +01:00
Sam Germain
ae4742afcb
test_fetch_stoploss_order_gateio and test_cancel_stoploss_order_gateio
2022-03-09 00:59:28 -06:00
Matthias
93a91bdeee
Update order_Types documentation
2022-03-09 07:44:21 +01:00
Matthias
51828a0b0b
Update buy-signals to entry wording
2022-03-09 07:03:37 +01:00
Matthias
66afc233db
Use Deprecated method for order_Time_in_force
2022-03-09 06:54:13 +01:00
Matthias
943d080f5e
Add test for order-types migration
2022-03-09 06:37:08 +01:00
Matthias
420cc5c595
deprecated-setting moval should delete old setting
2022-03-09 06:37:08 +01:00
Matthias
5d4386f037
Implement order_types validation
2022-03-09 06:37:08 +01:00
Matthias
f2ed6165e9
convert price to precision price before verifying stoploss adjustment
...
closes #6504
2022-03-08 19:35:30 +01:00
Matthias
1ce55e88b4
Try to revert sequence in test
2022-03-08 07:10:59 +01:00
Matthias
3ff261e22c
Update order time in force to use entry/exit wording
2022-03-07 19:55:15 +01:00
Matthias
d2a163e2cf
rename column to liquidation_price
2022-03-07 17:16:33 +01:00
Matthias
6360ef029c
Simplify and align liquidation price handling
2022-03-06 16:27:55 +01:00
Matthias
612ede5e48
Merge pull request #6468 from samgermain/todos
...
todos
2022-03-06 16:03:05 +01:00
Matthias
46e17c9762
Fix stoploss_pct set wrongly for short trades
2022-03-06 15:07:04 +01:00
Matthias
08d8dfaee6
Remove wrong import
2022-03-06 14:47:26 +01:00
Matthias
81d4a61353
Update more trades
2022-03-06 14:33:04 +01:00
Matthias
bc37f67e76
Add one more test
2022-03-06 14:18:25 +01:00
Matthias
76e5d5b232
Fix stake-amount handling for dry-run
2022-03-05 15:53:40 +01:00
Matthias
7a545f49af
Improve test stability by making keys optional in the ccxt test-matrix
2022-03-05 14:15:58 +01:00
Matthias
2b1a8f2fbb
Update binance stoploss to use correct stop order for futures
2022-03-05 13:57:54 +01:00
Matthias
685820cc12
Fix failures due to non-happening rounding
2022-03-04 19:48:34 +01:00
Matthias
8943d42509
Update telegram notifications to properly detect shorts
2022-03-04 19:42:33 +01:00
Matthias
62dcebee46
Update stoploss method to new functionality
2022-03-04 07:07:34 +01:00
Matthias
011cd58377
Adjust new stoploss tests to futures world
2022-03-04 06:58:34 +01:00
Matthias
7435b5ec96
Fix small merge errors
2022-03-04 06:58:21 +01:00
Sam Germain
488da9b875
Merge branch 'develop' into feat/short
2022-03-03 13:51:52 -06:00
Matthias
1d3ce5bef4
Remove duplicate call to init_db
2022-03-03 07:23:10 +01:00
Matthias
5ab72ac082
chore: realign enums imports
2022-03-03 07:07:33 +01:00
Matthias
9bcc79e118
Use parsed TradingMode from config
2022-03-03 07:06:13 +01:00
Matthias
5332c441b9
Fix fail test - add more TODO's
2022-03-03 07:00:10 +01:00
Matthias
e9456cdf15
Update trade response to use a single Order object
2022-03-02 19:58:08 +01:00
Matthias
17c9c3caf3
Enable orders via API
2022-03-02 19:58:08 +01:00
Sam Germain
c9988e0aa2
test_backtest__enter_trade_futures comment calculations include liquidation buffer
2022-03-02 12:46:31 -06:00
Sam Germain
c0e11beced
linting
2022-03-02 01:30:52 -06:00
Sam Germain
c0fb6f7e85
test_backtest__enter_trade_futures - fixed formula in comments
2022-03-02 01:26:47 -06:00
Matthias
1c4a7c25d7
Fix failing test
2022-03-02 07:14:36 +01:00
Matthias
478d440e80
Test backtesting with USDT pairs
2022-03-02 07:00:07 +01:00
Matthias
c2b90afa61
Merge branch 'develop' into pr/stash86/6458
2022-03-01 19:31:36 +01:00
Matthias
a2c9879375
Reset sell-reason if order is cancelled
2022-03-01 19:30:16 +01:00
Matthias
1b07ad92cf
Merge branch 'feat/short' into pr/samgermain/6467
2022-02-28 20:07:19 +01:00
Matthias
c39e7368ee
Split backtesting test to properly initialize it
2022-02-28 19:58:44 +01:00
Matthias
79538368db
Simplify liquidation price calculation
2022-02-28 19:47:21 +01:00
Matthias
ab46476e63
Rename get_liquidation method
2022-02-28 19:42:26 +01:00
Matthias
8e2d3445a7
Move leverage_prep calculations to exchange class
2022-02-28 19:29:42 +01:00
Matthias
68bc2a6107
Add huobi to ccxt compat tests
2022-02-28 07:00:52 +01:00
Sam Germain
1121965c6e
liq backtesting tests
2022-02-27 14:28:28 -06:00
Matthias
0ebf40f390
Don't call amount_to_precision twice on entry
2022-02-27 15:57:44 +01:00
Matthias
5c2cca50e5
Minor updates, document no leverage changes
2022-02-27 15:44:23 +01:00
Matthias
f0f5a50975
Update tests to test DCA for shorts
2022-02-27 15:44:23 +01:00
Matthias
eed516a5c6
Update DCA logic to some extend
2022-02-27 15:44:23 +01:00
Matthias
bcfa73d492
Add "nr_of_successfull_entries"
2022-02-27 15:44:23 +01:00
Matthias
7b9880035b
Remove wrong TODO-lev comment
2022-02-27 15:11:09 +01:00
Sam Germain
7508f79b6c
test_freqtradebot, is_short tests
2022-02-26 13:55:52 -06:00
Sam Germain
b363940baf
Add TODO-lev comment in test_handle_stoploss_on_exchange
2022-02-26 13:55:37 -06:00
Sam Germain
499e21517b
test_persistence tests for stoploss with leverage adjustements
2022-02-26 13:55:37 -06:00
Matthias
12a1e27708
Merge pull request #6456 from samgermain/lev-tier-update
...
Lev tier update
2022-02-26 19:55:30 +01:00
Matthias
e9f3f3d859
Fix random test failure (2nd try)
2022-02-26 17:08:35 +01:00
Sam Germain
7dab70f1a5
test_ccxt_compat - ftx["futures"] = false
2022-02-26 09:45:15 -06:00
Sam Germain
64172bc98d
removed TODOs in test_CCXT_compat
2022-02-26 09:27:38 -06:00
Sam Germain
fbcd260bf6
flake8 import issues
2022-02-26 09:05:51 -06:00
Sam Germain
af77358d6a
updated test_load_leverage_tiers_okx
2022-02-26 09:05:51 -06:00
Sam Germain
f5ea7827e0
removed gateio.get_max_leverage and gateio.get_maint_ratio_and_amt
2022-02-26 09:05:51 -06:00
Sam Germain
b61cfada6d
moved okex.load_leverage_tiers to new method
2022-02-26 09:05:51 -06:00
Matthias
79ddc9abaa
Merge pull request #6423 from samgermain/wallet-amt
...
Futures wallet amount
2022-02-26 15:55:28 +01:00
Matthias
e25929f50a
Update test to not fail randomly
2022-02-26 15:53:01 +01:00
Matthias
75868a851b
Attempt Fix random test failure
2022-02-26 15:20:56 +01:00
Matthias
14d49e85af
Update Huobi stoploss to shared method
2022-02-26 14:57:13 +01:00
Matthias
292c350885
Add stoploss support for huobi
2022-02-26 10:33:36 +01:00
Matthias
9504b3eb05
Improve huobi config generation
2022-02-26 10:33:11 +01:00
Matthias
0749199097
Add stoploss tests for kucoin
2022-02-26 08:25:42 +01:00
Matthias
018c620057
Fix 0 Division error on exchanges without average
...
closes #6461
2022-02-26 08:19:45 +01:00
Matthias
5826698c04
Don't emergencysell partial sold exit
...
closes #6457
2022-02-25 15:07:35 +01:00
Matthias
3b1b66bee8
Prevent backtest starting when not in webserver mode
...
#6455
2022-02-25 07:40:49 +01:00
Matthias
1c26ff4c4c
Add dry run test
2022-02-24 20:05:56 +01:00
Matthias
9d55621f42
Test fetch_position exchange method
2022-02-24 20:05:56 +01:00
Matthias
9901decf0d
Rename get_positions to fetch_positions to align with ccxt naming
2022-02-24 20:05:56 +01:00
Matthias
62c42a73e2
Add initial rpc test
2022-02-24 20:05:56 +01:00
Matthias
d07a24a54f
Update tests for new wallet RPC structure
2022-02-24 20:05:56 +01:00
Matthias
fd936e26ae
Merge branch 'develop' into feat/short
2022-02-24 19:56:42 +01:00
Matthias
42df65d4ec
Make sure backtesting is cleaned up in tests
2022-02-24 14:22:49 +00:00
Matthias
53452c8d64
Merge pull request #6437 from freqtrade/update_trade
...
Migrate trade updating to use order model
2022-02-23 19:56:02 +01:00
Matthias
731eb99713
Update mock-trade creation to rollback first
2022-02-23 19:18:04 +01:00
Matthias
14b69405a2
Init persistence should be the innermost fixture
2022-02-23 10:43:04 +01:00
Matthias
ec34189f1b
Attempt to fix random ci error
2022-02-23 08:47:20 +01:00
Matthias
8952829adc
Merge branch 'develop' into feat/short
2022-02-23 06:28:15 +01:00
Matthias
5a4f30d1bd
Don't specially handle empty results.
2022-02-22 20:07:41 +01:00
Matthias
1f9ed0beff
Add test for wal mode
2022-02-22 19:39:55 +01:00
Matthias
70f4305dfa
don't allow short trades in spot mode
2022-02-21 19:19:12 +01:00
Matthias
dc7bcf5dda
Update failing test
2022-02-20 14:29:26 +01:00
Matthias
db540dc990
Orders should also store fee if in receiving currency
2022-02-20 14:24:27 +01:00
Matthias
c3c815e794
Merge pull request #6425 from samgermain/stake-amount
...
leverage in trade.stake_amount calculation
2022-02-19 20:11:23 +01:00
Matthias
e9f451406c
Use correct order id
2022-02-19 16:43:38 +01:00
Matthias
874c161f78
Update more tests to use order_obj to update trade
2022-02-19 16:43:38 +01:00
Matthias
508e677d70
Fix some tests to call update_trade with order object
2022-02-19 16:43:38 +01:00
Matthias
d610b6305d
Improve /balance output by removing trailing zeros
2022-02-19 16:40:30 +01:00
Matthias
a7a25bb285
Update "round coin value" to trim trailing zeros
2022-02-19 16:40:26 +01:00
Matthias
a32aed2225
Update FTX stoploss code to avoid exception for stoploss-market orders
...
closes #6430 , closes #6392
2022-02-19 10:07:32 +01:00
Matthias
0bbbe2e96c
Add test for #6429
2022-02-19 06:39:43 +01:00
Kavinkumar
60d1e7fc65
fix stake amt
2022-02-18 19:47:45 +05:30
Kavinkumar
95d4a11bb1
add precision
2022-02-18 19:32:37 +05:30
Kavinkumar
eb88c0f71b
fixed stake amount
2022-02-18 19:25:56 +05:30
Matthias
989edca622
Add test-case for cancel stake update with leverage
2022-02-18 06:41:15 +01:00
Matthias
8bdc77eb4d
Add TODO-lev for tests which define is_short but don't use it
2022-02-18 06:38:51 +01:00
Matthias
de8d789962
Fix test missing assert statement
2022-02-17 19:37:24 +01:00
Sam Germain
f452fce4cc
Merge branch 'ccxt-compat' into leverage-tiers
2022-02-16 10:07:49 -06:00
Sam Germain
a37287d9ba
test__get_params
2022-02-16 10:06:27 -06:00
Sam Germain
2015e9345d
test_ccxt_compat maintenanceMarginRatio -> maintenanceMarginRate
2022-02-16 09:25:27 -06:00
Sam Germain
df86300729
test_ccxt_dry_run_liquidation_price
2022-02-16 09:22:22 -06:00
Sam Germain
124532a4b7
maintenanceMarginRatio -> maintenanceMarginRate
2022-02-16 09:04:43 -06:00
Sam Germain
dc73fccd3c
removed test_ccxt_get_maintenance_ratio_and_amt
2022-02-16 09:03:50 -06:00
Sam Germain
a1e9e940dd
test_ccxt_load_leverage_tiers
2022-02-16 08:51:39 -06:00
Sam Germain
ef5dae2770
ccxt_compat_tests for leverage tiers
2022-02-16 08:08:10 -06:00
Sam Germain
88a8ff2f4e
Merge branch 'feat/short' into leverage-tiers
2022-02-16 08:05:51 -06:00
Matthias
e7bfb4fd5c
Add test case for "sell below close" case
2022-02-16 13:42:39 +01:00
Matthias
de26844578
Merge pull request #6397 from samgermain/todos
...
edited todo-lev comments
2022-02-16 13:36:17 +01:00
Sam Germain
6f410d3096
fixed test_load_leverage_tiers
2022-02-16 05:44:11 -06:00
Sam Germain
c70050e750
fixed test_load_leverage_tiers
2022-02-16 05:26:52 -06:00
Sam Germain
183f85efe3
test_execute_entry fixed
2022-02-16 05:08:11 -06:00
Sam Germain
1f3d3d87f6
fixed tests
2022-02-16 04:52:26 -06:00
Sam Germain
3fe0e13bb1
expanded test_load_leverage_tiers
2022-02-16 04:37:11 -06:00
Sam Germain
3bfd9186f7
gateio.get_max_leverage small fix
2022-02-16 04:05:27 -06:00
Sam Germain
dbd2df6406
Merge branch 'leverage-tiers' of https://github.com/samgermain/freqtrade into leverage-tiers
2022-02-16 03:50:24 -06:00
Sam Germain
c9da6f480f
gateio get_max_leverage and get_maintenance_ratio_and_amt temporary solution
2022-02-16 03:36:08 -06:00
Matthias
c37f03a638
Update static-markets to include futures pair
2022-02-15 08:04:16 +01:00
Matthias
1bae18c60a
Update decorator locations
2022-02-15 07:11:07 +01:00
Matthias
5ee5e0256b
Clarify todo
2022-02-15 06:39:55 +01:00
Sam Germain
ae249a0f97
Merge branch 'leverage-tiers' of https://github.com/samgermain/freqtrade into leverage-tiers
2022-02-14 17:36:47 -06:00
Sam Germain
3753df26fc
fixed tests
2022-02-14 17:34:59 -06:00
Sam Germain
f4a57b71e7
Filled in test_load_leverage_tiers_okx
2022-02-14 16:53:29 -06:00
Matthias
30f6dbfc40
Attempt fix for #6261
2022-02-14 20:02:38 +01:00
Matthias
acd7f26a9d
update tc36 to properly cover #6261
2022-02-14 20:00:31 +01:00
Matthias
99e3e26542
Adjust ccxt test naming to align with the other tests
2022-02-14 19:14:44 +01:00
Sam Germain
5cd2501397
Merge branch 'leverage-tiers' of https://github.com/samgermain/freqtrade into leverage-tiers
2022-02-14 09:40:53 -06:00
Sam Germain
cfd438b966
fixed test_get_markets
2022-02-14 09:40:01 -06:00
Sam Germain
c1d08dd03a
linting
2022-02-14 09:34:09 -06:00
Sam Germain
16e38592a9
test_get_markets created debugging param test_comment
2022-02-14 09:33:56 -06:00
Matthias
09cc43b533
Test short trade exiting
2022-02-13 16:33:06 +01:00
Matthias
5b65448e56
Fix some todo-lev's in tests
2022-02-13 16:17:41 +01:00
Matthias
ad801e05f7
Filter loadable leverage tiers to stake-currency pairs
2022-02-13 13:05:57 +01:00
Matthias
96df311244
Rename test_okex to test_okx
2022-02-13 13:01:23 +01:00
Matthias
bc855b2a32
Update some missing mocks
2022-02-13 13:00:38 +01:00
Matthias
b98297786c
Update failing mock
2022-02-13 12:56:32 +01:00
Sam Germain
8fe3f0c933
fix breaking tests
2022-02-12 23:08:42 -06:00
Sam Germain
531b4d238c
removed test_get_maintenance_margin_and_amt_gatio as its no longer relevant
2022-02-12 23:02:16 -06:00
Sam Germain
765c95f875
test_okex.test_get_maintenance_ratio_and_amt_okex change pair names
2022-02-12 23:02:16 -06:00
Sam Germain
e3bd40c3c7
added swap and linear to conftest markets
2022-02-12 23:02:16 -06:00
Sam Germain
7a0f7da128
okex loads all leverage tiers at beginning, removed get tiers for pair
2022-02-12 23:02:16 -06:00
Sam Germain
e7430da5d7
test_ccxt_compat commented out unfinished tests
2022-02-12 23:02:16 -06:00
Sam Germain
03b3756e4b
strengthened and fixed leverage_tier tests
2022-02-12 23:02:16 -06:00
Sam Germain
a6043e6a85
get_max_leverage test clean up
2022-02-12 23:02:16 -06:00
Sam Germain
4a1ed01708
get_maintenance_ratio_and_amt tests
2022-02-12 23:02:16 -06:00
Sam Germain
9e599455e7
test_execute_entry mocks get_max_leverage
2022-02-12 23:02:16 -06:00
Sam Germain
3b43d42eaa
Updated exchange tests
2022-02-12 23:02:15 -06:00
Sam Germain
e987e0e2a9
exchange minor fixes
2022-02-12 23:02:15 -06:00
Sam Germain
eb72e5cc42
Added some exchange leverage tier tests
2022-02-12 23:02:15 -06:00
Sam Germain
98f32e8964
fixed failing test_get_max_leverage
2022-02-12 23:02:15 -06:00
Sam Germain
3ebda1d29d
Added test templated
2022-02-12 23:02:15 -06:00
Sam Germain
a0264f0651
test_get_max_pair_stake_amount with leverage
2022-02-12 23:02:15 -06:00
Sam Germain
fe56c8c91e
mock get_max_pair_stake_amount in test_execute_entry
2022-02-12 23:02:15 -06:00
Sam Germain
68a778a983
moved leverage_tiers to a fixture
2022-02-12 23:02:14 -06:00
Sam Germain
42e36f44f8
replaced "leverage" with "tiers"
2022-02-12 23:02:14 -06:00
Sam Germain
6b9915bc73
moved fill_leverage_brackets and get_max_leverage to base exchange class, wrote parse_leverage_tier and load_leverage_brackets
2022-02-12 23:02:14 -06:00
Sam Germain
a99cf2eeed
redid get_max_leverage
2022-02-12 23:02:07 -06:00
Sam Germain
720a86778e
okex.get_max_pair_stake_amount
2022-02-12 23:01:39 -06:00
Sam Germain
ff915b241c
test_okex test_get_maintenance_ratio_and_amt_okex
2022-02-12 23:01:39 -06:00
Sam Germain
a5aba4813d
moved get_maintenance_ratio_and_amt to base.exchange. Wrote get_leverage_tiers. Added mmr_key to exchange._ft_has
2022-02-12 23:01:30 -06:00
Sam Germain
fc2d3649a1
edited todos
2022-02-12 16:23:14 -06:00
Matthias
c769e9757d
Improve "order refind" to also work for stoploss orders
2022-02-12 20:13:12 +01:00
Matthias
119d4d5204
select_order should use ft_order_side, not the exchange specific one
2022-02-12 17:06:03 +01:00
Matthias
08803524bd
align variable naming to use current_time
2022-02-12 15:21:46 +01:00
Sam Germain
19a282ddb4
fixed broken test_get_liquidation_price
2022-02-11 19:38:59 +01:00
Sam Germain
6ae85f9be1
fixed liq-buffer tests
2022-02-11 19:38:59 +01:00
Sam Germain
e5d68f12d2
Added liquidation_buffer to freqtradebot
2022-02-11 19:38:58 +01:00
Matthias
c9cfc246f1
Sort /forcebuy pairs alphabetically, add cancel button
...
closes #6389
2022-02-11 19:37:35 +01:00
Matthias
0c6d92a7a6
Merge branch 'develop' into feat/short
2022-02-11 17:02:04 +01:00
Matthias
7c66f2776d
Merge pull request #6384 from samgermain/compat-contract
...
test_ccxt__get_contract_size
2022-02-10 19:07:04 +01:00
Sam Germain
52fed6e779
test_ccxt__get_contract_size
2022-02-10 06:59:43 -06:00
Matthias
2e41d80a2c
Merge pull request #6340 from TheJoeSchr/frequi-datetime
...
freqUI: fix can't import backtest with missing datetime data
2022-02-09 07:21:30 +01:00
Matthias
9f47853661
Merge pull request #6235 from freqtrade/backtest_order_timeout
...
Backtest order timeout
2022-02-09 07:12:35 +01:00
Matthias
4e2f06fe9c
Simplify band-aid code
2022-02-09 06:48:26 +01:00
Matthias
6191288ff9
Add test for NaT problematic
2022-02-09 06:36:17 +01:00
Matthias
1d10d2c87c
Okex -> okx
2022-02-08 19:45:39 +01:00
Matthias
dcf8ad36f9
Backtesting should not allow unrealistic (automatic-filling) orders.
2022-02-08 19:12:01 +01:00
Matthias
535bbd681f
Merge pull request #6362 from ediziks/add-profit-drawdown-hypeloss
...
Add ProfitDrawdownHyperoptLoss method
2022-02-07 19:37:35 +01:00
Matthias
85767d0d70
Add timedout_*_orders to tests
2022-02-07 19:33:22 +01:00
Sam Germain
33b04b1992
deleted outdated todos
2022-02-07 02:47:18 -06:00
Stefano Ariestasia
92d1f2b945
fix tests
2022-02-07 07:31:35 +00:00
Matthias
fe33b86308
Merge pull request #6360 from stash86/pos_adjust
...
Hide some lines for /status when a trade is closed
2022-02-06 17:08:37 +01:00
Matthias
ee2a7a968b
Add tests for /status on closed trades
2022-02-06 16:26:00 +01:00
Matthias
5eb5029856
Performancefilter - improve sorting
...
Ordering of Pairs without history should remain identical, so pairs with
positive performance move to the front, and negative pairs move to the back.
closes #4893
2022-02-06 16:19:11 +01:00
Matthias
ef086d438c
Update PerformanceFilter test to run with USDT pairs
2022-02-06 16:03:14 +01:00
Matthias
c19f3950da
Add losing trade to usdt_mock_trades
2022-02-06 16:02:18 +01:00
zx
0b01fcf047
Add ProfitDrawdownHyperoptLoss method
2022-02-06 15:40:54 +01:00
Matthias
303b12efd8
Merge pull request #6273 from freqtrade/pg_migrations
...
Update database migrations for PG and mariadb
2022-02-06 14:39:02 +01:00
Matthias
8f2425e49f
Add rudimentary tests for pg-specific stuff
2022-02-06 14:06:46 +01:00
Matthias
412fe65344
Merge pull request #6316 from samgermain/max-amount
...
exchange.get_max_pair_stake_amount
2022-02-06 07:44:29 +01:00
Matthias
22173851d6
Detail tests for custom exit pricing
2022-02-05 16:28:47 +01:00
Matthias
2a59ef7311
Add detail tests for timeout behaviour
2022-02-05 16:28:47 +01:00
Matthias
58fad72778
Update wallets when necessary
...
closes #6321
2022-02-05 16:28:47 +01:00
Matthias
e08006ea25
Adjust tests to use order Object
2022-02-05 16:28:47 +01:00
Matthias
f4149ee462
Force ROI to be within candle
2022-02-05 16:28:21 +01:00
Matthias
6ed237a72a
Merge pull request #6272 from stash86/fix-docs
...
Add more info on Telegram's status message
2022-02-05 16:22:45 +01:00
Sam Germain
ce676a9dd7
wrote ccxt_compat.test_get_max_leverage_spot test_get_max_leverage_futures
2022-02-04 17:55:49 -06:00
Sam Germain
8b57827676
exchange.get_max_pair_stake_amount hard set leverage to 0
2022-02-04 14:26:15 -06:00
Sam Germain
c0a593280e
test_exchange.test_cancel_order_dry_run pass leverage to create_order
2022-02-04 04:54:16 -06:00
Sam Germain
dc6cb445fd
Merge branch 'feat/short' into max-amount
2022-02-04 04:42:38 -06:00
Matthias
6afad6c99f
Small change to todo comment
2022-02-04 07:20:27 +01:00
Sam Germain
3ee2b7978c
wallets.validate_stake_amount added param max_stake_available
2022-02-03 20:33:16 -06:00
Sam Germain
30c476e3c1
freqtradebot.get_valid_enter_price_and_stake gets min of stake_amount and max_stake_amount before calling wallets.validate_stake_amount
2022-02-03 20:33:16 -06:00
Sam Germain
a50f4d2c57
Exchange.createOrder added * as second param
2022-02-03 20:33:16 -06:00
Sam Germain
16c2d54482
updated margin_modes
2022-02-03 20:33:16 -06:00
Sam Germain
7465037906
freqtradebot.execute_entry test for too high stake amount
2022-02-03 20:33:16 -06:00
Sam Germain
c5cfd971f5
get_max_pair_stake_amount_tests
2022-02-03 20:33:16 -06:00
Sam Germain
6b6b35ac1c
check for max stake limit in freqtradebot and backtesting
2022-02-03 20:33:04 -06:00
Sam Germain
55d91f018f
exchange._get_stake_amount_limit (merged min_pair_stake_amount and get_max_tradeable amount)
2022-02-03 20:33:04 -06:00
Sam Germain
ff5fffefb4
exchange.get_max_amount_tradable looks at cost also
2022-02-03 20:33:03 -06:00
Sam Germain
64ad810445
Revert "moved get_max_leverage to get_min_pair_stake_amount"
...
This reverts commit 90e48d5b98bcfb1452aa818a3274745eac395712.
2022-02-03 20:33:03 -06:00
Sam Germain
73319a74d3
moved get_max_leverage to get_min_pair_stake_amount
2022-02-03 20:33:03 -06:00
Sam Germain
f3b42b0ef3
wrote exchange.get_max_amount_tradable
2022-02-03 20:33:03 -06:00
Sam Germain
99b8a8ca79
Revert "plot.generate_candlestick_graph Added short equivelent, separating plotting scatter creation to a function"
...
This reverts commit 0abba7f9b7299ba3c45df6a2ba6e35ad6a19c5a0.
2022-02-03 17:48:34 -06:00
Sam Germain
1f74cfe841
plot.generate_candlestick_graph Added short equivelent, separating plotting scatter creation to a function
2022-02-03 17:48:34 -06:00
Sam Germain
d5376c2c89
wrote freqtradebot.test_leverage_prep
2022-02-03 17:48:33 -06:00
Sam Germain
c47c54c16c
removed strategy_test_v3.populate_sell_trend # TODO-lev: Add short logic, because it looked like the short logic was already there
2022-02-03 17:48:33 -06:00
Sam Germain
f58b92bb86
exchange.create_order removed default for leverage
2022-02-03 17:48:08 -06:00
Matthias
1e6362debf
Add test for new /status telegram message
2022-02-03 19:41:45 +01:00
Matthias
29879bb415
Update wording to entry/exit
2022-02-03 19:11:35 +01:00
Matthias
a733a74dd9
Merge pull request #6294 from xataxxx/health
...
/health api and telegram commands to return last processing time
2022-02-02 19:53:45 +01:00
Matthias
a4e1aaa9bd
Merge pull request #6307 from freqtrade/bt_shift
...
Remove shift in analyzed dataframe columns
2022-02-02 19:52:10 +01:00
Sam Germain
09f0e7149f
test__fetch_and_calculate_funding_fees_datetime_called # TODO-lev: test for longs
2022-02-02 12:42:13 -06:00
Sam Germain
179947fa72
New config ( #6333 )
...
* updated new-config to add trading_mode and margin_mode
* added trading_mode and margin_mode to config examples
* added okex config example
* new file: config_examples/config_binance_futures.example.json
* removed trading_mode and margin_mode from base_config and binance and okex example
* deleted okex and futures config files
* updated full config file
* updated new-config command to add trading_mode and margin_mode to config
* new file: config_examples/config_okex_futures.example.json
* removed config_okex_futures.example.json
* added trading_mode to test_start_new_config
* new-config asks exchange before asking futures
* Simplify trading_mode selection
* margin_mode is empty string for spot new configs
* build_config_commands sorted exchanges
* isort
Co-authored-by: Matthias <xmatthias@outlook.com>
2022-02-02 14:46:44 +01:00
Matthias
0058abcc2d
Fix crash when no min-stake-amount could be determined
2022-02-02 12:20:05 +01:00
Sam Germain
30519aa3be
Changed name Collateral -> MarginMode, collateral -> margin_mode, and _supported_trading_mode_margin_pairs -> _supported_trading_margin_pairs
2022-02-01 13:05:40 -06:00
Matthias
64d0c75bbb
Fix deprecation warnings
2022-02-01 19:11:51 +01:00
Matthias
45e533fc3e
Add leverage/short properties to api responses
2022-02-01 07:08:43 +01:00
Matthias
7dd50f78cf
Small finetuning improving a comment
2022-02-01 06:37:13 +01:00
Sam Germain
fc15e14707
Merge branch 'feat/short' into isolated-liq
2022-01-31 14:22:01 -06:00
Sam Germain
9de63412c1
exchange.get_liquidation_price arguments are not optional
2022-01-31 14:00:52 -06:00
Sam Germain
6c4325b7a2
confest markets removed futures values from ETH/USDT
2022-01-31 13:44:57 -06:00
Matthias
d653d6bfc0
Merge pull request #6332 from samgermain/binance-max-lev
...
Binance max lev
2022-01-31 20:26:57 +01:00
Sam Germain
8b9abd0051
test_get_maintenance_ratio_and_amt_gateio removed commented test that returns None
2022-01-31 13:18:31 -06:00
Matthias
de17993705
Fix random test failure when local config is found
2022-01-31 20:09:25 +01:00
Sam Germain
08e4a4a6dd
binance.get_max_leverage_fix
2022-01-31 12:21:12 -06:00
Sam Germain
43db4c34d1
added okex back to unsupported exchanges
2022-01-31 12:18:30 -06:00
Sam Germain
b8f4cebce7
exchange.liquidation_price methods combined, dry_run check on exchange for liquidation price
2022-01-31 12:18:25 -06:00
Sam Germain
143c37d36f
cleaned up liquidation price methods
2022-01-31 12:17:07 -06:00
Sam Germain
ede9012fcc
removed TODO-levs about okex liquidation price
2022-01-31 12:17:07 -06:00
Sam Germain
e91aaa7d64
removed isolated_liq=
2022-01-31 12:16:43 -06:00
Sam Germain
5cf54bee4d
removed excess decimals in test_binance
2022-01-31 12:16:43 -06:00
Sam Germain
0c13e387fe
moved liquidation_price method to exchange classes
2022-01-31 12:16:43 -06:00
Sam Germain
e4b37c6462
freqtradebot.leverage_prep minor fixes
2022-01-31 12:16:43 -06:00
Sam Germain
1f1ac8ce9d
test_get_liquidation_price/test_get_maintenance_ratio_and_amt_binance/fill_leverage_brackets/test_validate_trading_mode_and_collateral TODO comments
2022-01-31 12:16:43 -06:00
Sam Germain
c2f9201512
Added get_liquidation_price check
2022-01-31 12:16:43 -06:00
Sam Germain
bb2b2211d0
exchange.fill_leverage_brackets/get_maintenance_ratio_and_amt docstring and type specification
2022-01-31 12:16:43 -06:00
Sam Germain
0c8205ab3b
replace single quote docstrings with double quote docstrings
2022-01-31 12:16:43 -06:00
Sam Germain
387a9fbf36
test_execute_entry liquidation_price test test_get_maintenance_ratio_and_amt_gateio
2022-01-31 12:16:38 -06:00
Sam Germain
2d545a2def
fixed breaking tests for liquidation price
2022-01-31 12:15:54 -06:00
Sam Germain
1eee5373b9
gateio.get_maintenance_ratio_and_amt
2022-01-31 12:15:54 -06:00
Sam Germain
69a6223ca0
implemented binance.get_maintenance_ratio_and_amt
2022-01-31 12:15:54 -06:00
Sam Germain
ba5fc21d84
added isolated futures to supported modes for binance,gateio
2022-01-31 12:15:54 -06:00
Sam Germain
ba02605d77
Isolated liq branch passes all tests and has the general structure that it is supposed to, but is patchy, and doesnt get the correct maintenance amt and maintenance margin rate yet
2022-01-31 12:15:54 -06:00
Arunavo Ray
447312d4c8
Fixed parameter check which failed when 0.0 was passed
2022-01-31 12:15:54 -06:00
Arunavo Ray
3709130eb7
Added Tests for Binance Liquidation price, shortened liquidation param names
2022-01-31 12:15:54 -06:00
Sam Germain
fe5e00361e
separated test_leverage into test_interest and test_liquidation_price, and paramaterized tests
2022-01-31 12:15:54 -06:00
Sam Germain
a087d03db9
Added liquidation_price function
2022-01-31 12:15:54 -06:00
Matthias
be866f04fa
Merge pull request #6330 from samgermain/market-checks
...
Removed unnecessary CCXT market checks
2022-01-31 19:01:59 +01:00
Sam Germain
689174ea0d
removed TODO-lev comments
2022-01-31 04:12:37 -06:00
Sam Germain
779b82b5b4
fixed test_get_min_pair_stake_amount by adding amount.min/max and cost.min/max to all markets
2022-01-31 03:02:17 -06:00
Sam Germain
5af3e1600d
updated conftest to have limit keys and contractSize on every market
2022-01-31 03:01:44 -06:00
Matthias
cf7edace2b
Merge pull request #6312 from freqtrade/short_informative_decorator
...
Short informative decorator
2022-01-30 15:33:52 +01:00
Matthias
000b8ff281
Merge pull request #6306 from freqtrade/short_forceentry
...
add `/forcelong` and `/forceshort` commands
2022-01-30 07:36:14 +01:00
Matthias
8a6823deb1
Convert InformativeData to dataclass
2022-01-29 19:59:54 +01:00
Stefano Ariestasia
326ba46bf8
Merge branch 'freqtrade:develop' into fix-docs
2022-01-29 23:20:41 +09:00
Matthias
d1d520769e
Improve status table for position adjust
...
don't show "/max" if no maximum is set
closes #6317
2022-01-29 14:29:09 +01:00
Matthias
463714832d
Merge branch 'develop' into feat/short
2022-01-29 14:19:30 +01:00
Matthias
c620e38c7d
Informative decorator updates for futures
2022-01-28 19:17:46 +01:00
Matthias
fdea4fcb1b
Remove some todo's
2022-01-28 15:52:12 +01:00
Matthias
571ddceaf6
Merge pull request #6310 from Verbalinsurection/perso
...
Fix ETH duplicate in CoinGecko
2022-01-28 12:35:44 +01:00
Verbalinsurection
2ba2144df1
Add tests for ETH fiat_convert
2022-01-28 11:17:16 +01:00
Matthias
15d5389564
Update /health endpoint to be in local timezone
2022-01-28 10:33:35 +01:00
Matthias
138e867a68
Filter tickers on stake-currency for kraken
2022-01-28 07:20:47 +01:00
Matthias
9df7014de3
Skip kraken tests temporarily
2022-01-28 06:59:37 +01:00
Stefano Ariestasia
bd1b991448
Merge branch 'freqtrade:develop' into fix-docs
2022-01-28 06:57:13 +09:00
Matthias
4b9d55dbe2
Add test for backtest dataprovider
...
(should cache the correct candle)
2022-01-27 18:59:23 +01:00
Matthias
108018b30b
Merge pull request #6231 from freqtrade/funding_rate_backtest
...
Funding rate backtest
2022-01-27 17:01:28 +01:00
Matthias
002226f5fd
Update setting to max_entry_position_adjustment
2022-01-27 16:57:50 +01:00
Matthias
c4f71cc103
More forceenter updates
2022-01-27 07:38:11 +01:00
Matthias
6e72effbf0
Update forcebuy telegram tests
2022-01-27 06:31:45 +01:00
Matthias
0a52d79208
Update forcesell to work as forceexit
2022-01-26 20:17:00 +01:00
Matthias
be7ce208dc
Update tests to test forceenter endpoint
2022-01-26 19:24:01 +01:00
Matthias
48d8cd82af
_rpc_forcebuy
2022-01-26 19:11:01 +01:00
Stefano Ariestasia
ed71f777a3
Merge branch 'fix-docs' of https://github.com/stash86/freqtrade into fix-docs
2022-01-26 07:07:00 +00:00
Stefano Ariestasia
1f26709aca
changes
2022-01-26 07:06:52 +00:00
Matthias
88ccfedd32
Improve wording of "no history found" error
2022-01-26 06:53:00 +01:00
Matthias
13978e9893
Merge pull request #6276 from clover-es/feat/short
...
Add support for shorts in strategy.stoploss_from_absolute()
2022-01-25 19:11:05 +01:00
Matthias
325fd8a780
Add test with absolute values
2022-01-25 06:44:20 +01:00
Matthias
f7be93aaa6
leverage limits can be None, so we need to check for that
2022-01-25 06:30:03 +01:00
Stefano Ariestasia
0fa7986369
Merge branch 'freqtrade:develop' into pos_adjust
2022-01-25 10:30:18 +09:00
Stefano Ariestasia
7c975df42a
Merge branch 'freqtrade:develop' into fix-docs
2022-01-25 10:30:03 +09:00
Reigo Reinmets
e72c3ec19f
Commit just to force tests to run again.
2022-01-24 15:27:03 +02:00
Reigo Reinmets
acf6e94591
Fix unittest.
2022-01-24 13:56:52 +02:00
Reigo Reinmets
1d59a6b7e3
Merge branch 'freqtrade:develop' into health
2022-01-24 13:52:53 +02:00
Matthias
381bda1e4a
Update test to add new argument
2022-01-24 07:02:02 +01:00
Reigo Reinmets
bf62fc9b25
Add /health endpoint that returns last_process timestamp, fix issue #6009
2022-01-23 21:58:46 +02:00
Matthias
57067ce88d
Add tests for max_adjustment_buy handling
2022-01-23 19:07:37 +01:00
Matthias
62df044618
Merge pull request #6279 from xataxxx/develop
...
Fix position adjustment not counting older orders because of missing average field value
2022-01-23 17:42:51 +01:00
Matthias
6492e1cd76
Investigate random test failure
2022-01-23 17:42:18 +01:00
Reigo Reinmets
51b94889b2
Just in case also check for closed to avoid counting in canceled orders.
2022-01-23 17:56:41 +02:00
Reigo Reinmets
8c79d55739
Fix issue #6268
2022-01-23 17:44:16 +02:00
Matthias
bf0b95b3d8
Improve backtest tests
2022-01-22 19:46:11 +01:00
Matthias
d3713cf245
Fix fee test
2022-01-22 19:46:11 +01:00
Matthias
a0c0c4dcbe
Update funding_fee formula to correctly calculate fees for long trades
2022-01-22 19:46:10 +01:00
Matthias
82c90c0049
Extract funding and mark mergin to separate method
2022-01-22 19:45:46 +01:00
Matthias
84c6d92d4c
calculate_funding_fees is actually a public exchange interface (used in backtesting).
2022-01-22 19:45:46 +01:00
Matthias
a340d73edc
Update funding_fee calculation test
2022-01-22 19:44:20 +01:00
Matthias
ef3a1ea8f2
Split funding fee calculation from Download
2022-01-22 19:44:20 +01:00
Guillermo Rodríguez
40cd478c6d
Calculate stoploss_from_absolute for shorts
2022-01-22 18:01:02 +01:00
Matthias
f090dcc597
Merge branch 'develop' into feat/short
2022-01-22 17:56:01 +01:00
Matthias
bd4014e1e6
Small cleanup
2022-01-22 15:01:27 +01:00
Matthias
a35b0b519a
Update forcebuy endpoint to support stake-amount
...
closes #6223
2022-01-22 13:26:02 +01:00
Matthias
314a544881
Add Failing test for get_strategy_run_id
...
Fails because max_open_trades is "inf"
emulates behaviour of `max_open_trades=-1` when loading the
configuration)
2022-01-22 08:09:08 +01:00
Stefano Ariestasia
f79decdb9c
Merge branch 'fix-docs' of https://github.com/stash86/freqtrade into fix-docs
2022-01-22 06:54:57 +00:00
Stefano Ariestasia
05046b9eef
Add more info on status message
2022-01-22 06:54:49 +00:00
Matthias
3d94d7df5c
Update migrations for mariadb
2022-01-21 19:31:11 +01:00
Matthias
bb1d8fb54f
Improve message when no hyperopt fie is found
...
closes #6266
2022-01-21 15:24:26 +01:00
Matthias
730d2e3574
Merge pull request #6259 from stash86/fix-docs
...
add "# Buys" column to status table
2022-01-21 07:49:21 +01:00
Matthias
d02acb21c2
Add simple test for #buy header
2022-01-21 07:04:25 +01:00
Italo
a9f14ac119
show buy_tag only if not None
2022-01-20 18:44:09 +00:00
Italo
8ce5536dd8
fix tests
...
added buy_tag to first ADA/USDT trade
2022-01-20 18:37:17 +00:00
Matthias
d549905856
Api-backtest to test new functionality
2022-01-20 07:11:48 +01:00
Rokas Kupstys
5fffc5033a
Rework backtesting --no-cahche to --cache=[none, day, week, month].
...
Fix an issue where config modification during runtime would prevent use of cached results.
2022-01-19 11:44:35 +02:00
Matthias
e04956be0e
Merge pull request #6185 from freqtrade/fix_funding_fee_calc
...
cleanup funding fee tests
2022-01-19 06:57:44 +01:00
Matthias
1fb48a1f53
Add TODO-lev for "stoploss_from_absolute".
2022-01-18 16:52:34 +01:00
Matthias
120639e84b
Merge pull request #6228 from clover-es/feat/short
...
Stoploss from open for shorts
2022-01-18 16:49:58 +01:00
Matthias
ff646441ce
Reduce decimals in test
2022-01-17 19:20:42 +01:00
Matthias
bb738b518c
FIx funding_fee calculation
2022-01-17 19:06:26 +01:00
Matthias
3cdb672ac3
Improve test coverage
2022-01-16 19:11:20 +01:00
Matthias
c02497e4b8
Merge pull request #6172 from rokups/rk/backtest-results-caching
...
Backtest result reuse
2022-01-16 19:09:37 +01:00
Matthias
d08885ed92
Fix empty "/log" endpoint in certain moments
2022-01-16 15:37:00 +01:00
Matthias
5bb48eaed0
Replace Nan with 0 or None in backtesting
...
part of #6224
2022-01-16 14:49:29 +01:00
Matthias
6c4b261469
Convert nan to None in get_signal.
2022-01-16 08:04:39 +01:00
Matthias
39184e1f95
Fix random test-fail around midnight
2022-01-16 00:19:21 +01:00
Matthias
270d7ebbf5
Simplify test strategy
2022-01-15 17:36:42 +01:00
Matthias
9becce9897
Update failing test
2022-01-15 17:30:40 +02:00
Rokas Kupstys
526ed7fa9a
Add test_backtest_start_multi_strat_caching test flexing backtest result caching.
2022-01-15 17:30:40 +02:00
Rokas Kupstys
16861db653
Implement previous backtest result reuse when config and strategy did not change.
2022-01-15 17:30:40 +02:00
Matthias
6684bff963
Dry-run orders should have filled set correctly
2022-01-15 15:25:16 +01:00
Matthias
66a479c26a
Small doc improvements
2022-01-15 15:11:13 +01:00
Guillermo Rodríguez
d28287880c
Add support for shorts in strategy.stoploss_from_open
...
Signed-off-by: Guillermo Rodríguez <guillebep@gmail.com>
2022-01-15 04:30:30 +01:00
Reigo Reinmets
320c9ccf90
Unify functions and make it easy to get a list of filled buy orders
2022-01-14 20:02:35 +02:00
Reigo Reinmets
ffe69535d8
These could be properties.
2022-01-13 20:31:03 +02:00
Reigo Reinmets
0424b44667
Merge branch 'freqtrade:develop' into dca
2022-01-08 17:42:17 +02:00
Reigo Reinmets
c929d428b2
Remove blank line.
2022-01-08 17:21:32 +02:00
Reigo Reinmets
0bca07a32a
Added min_stake, max_stake. Removed pair as its included in trade.
2022-01-08 17:20:02 +02:00
Matthias
cf077b15c2
Fix random test failure
2022-01-08 14:54:39 +01:00
Matthias
dd37e5cfb8
Fix compat-test failures due to wrong currency
2022-01-08 14:46:07 +01:00
Matthias
2fb9e7940a
Improve "missing data" message
2022-01-08 14:39:09 +01:00
Reigo Reinmets
8e424f7c73
Merge branch 'freqtrade:develop' into dca
2022-01-08 14:57:15 +02:00
Matthias
dad080f56f
Merge branch 'develop' into feat/short
2022-01-08 10:45:15 +01:00
Matthias
43f8087f32
Bitvavo does not support USDT stake
2022-01-08 10:44:07 +01:00
Sam Germain
c61acb9f19
removed rename todos
2022-01-08 03:09:47 -06:00
Matthias
827b8d3e4c
Don't use test_datadir as userdata dir
...
use tmpdir
2022-01-07 20:00:20 +01:00
Matthias
522496d9e2
Add Compatibility code for BT_DATA_COLUMNS
2022-01-07 17:17:35 +01:00
Matthias
46809f08fe
Merge branch 'develop' into feat/short
2022-01-07 10:13:16 +01:00
Matthias
7f20f6834b
Merge pull request #6181 from freqtrade/simplify_optimizereports
...
Simplify optimizereports
2022-01-07 09:43:57 +01:00
Matthias
cd144cdfc9
Add bitvavo to compatibility tests
...
#6166
2022-01-07 09:30:50 +01:00
Matthias
e540959c27
Remove btdata from generate_strategy_stats
2022-01-07 09:27:07 +01:00
Matthias
1203d08d1e
generate_pair_metrics does not need processed dict
2022-01-07 09:27:07 +01:00
Matthias
b77943af0d
Merge pull request #6173 from freqtrade/volume_quote_workaround
...
Selectively convert quote to base volume in volumepairlist
2022-01-07 09:07:16 +01:00
Matthias
b3a4ecaf77
Remove old backtest format support
2022-01-06 19:49:25 +01:00
Matthias
28011a3907
Update bt_results filename to new.json
2022-01-06 19:28:04 +01:00
Matthias
72f486289a
Update Volumepairlist test
2022-01-06 19:07:47 +01:00
Matthias
173524ea5b
Merge pull request #6170 from freqtrade/contract_workaround
...
contractSize is a string coming from ccxt
2022-01-06 16:25:19 +01:00
Matthias
431fcdd76f
contractSize is a string comming from ccxt
2022-01-06 13:53:27 +01:00
Matthias
7c3babc86c
Fix failing ftx test
2022-01-06 13:40:12 +01:00
Matthias
72b2d4ab5f
Update FTX to support new standardized futures format
2022-01-06 11:16:26 +01:00
Matthias
c1d981749e
Fix flake8 error
2022-01-06 10:09:41 +01:00
Matthias
4e2b9203d7
Remove no longer used BT_DATA_COLUMNS_MID
2022-01-05 20:40:59 +01:00
Matthias
8958f569aa
Fix random funding_rate test failure
2022-01-05 20:37:26 +01:00
Matthias
2ca90577a6
Update strategy-comparison test
2022-01-05 20:29:40 +01:00
Matthias
2ecaf9f8b4
Update backtest-result test-files to latest format
2022-01-05 20:26:24 +01:00
Sam Germain
501f473164
Merge branch 'develop' into feat/short
2022-01-04 22:47:33 -06:00
Matthias
8373a4e713
Small Adjustments to improve compatibility
2022-01-04 19:17:08 +01:00
Matthias
4d9b4ddc28
Update hyperopt-tools to use account drawdown
2022-01-04 17:43:39 +01:00
Matthias
09fae25c94
Fix some tests after drawdown calculation change
2022-01-04 17:07:31 +01:00
Matthias
937f5e3d0f
No longer use legacy mode for tests
2022-01-04 17:06:40 +01:00
Matthias
7ea5b0e359
Simplify hyperopt test setup
2022-01-04 17:06:40 +01:00
Sam Germain
b2a1124a26
Merge branch 'feat/short' of https://github.com/freqtrade/freqtrade into feat/short
2022-01-04 00:17:42 -06:00
Matthias
e57c2d64a5
Merge pull request #5888 from samgermain/contract-sizes
...
Convert contract size to underlying asset size
2022-01-03 21:55:19 +01:00
Matthias
293ffeae67
Fix random test failure in funding test
2022-01-03 20:18:43 +01:00
Sam Germain
707a6507b5
removed redundant todos
2022-01-02 21:46:06 -06:00
Matthias
fac6956eeb
Fix test failure after merge
2022-01-02 22:25:40 +01:00
Matthias
711a6a6dbc
Merge branch 'develop' into pr/xataxxx/6079
2022-01-02 22:21:41 +01:00
Matthias
2116b0729f
Integration-test for DCA order
2022-01-02 20:20:56 +01:00
Matthias
35fe7239ed
Also test mixed version (both long and short trades)
2022-01-02 13:17:49 +01:00
Matthias
7f88f9bf27
Revert unintended double-call of amount conversion
2022-01-02 13:11:29 +01:00
Sam Germain
67a5739501
fixed test_get_trades_for_order for contracts
2022-01-01 15:39:16 -06:00
Sam Germain
33ab3c1bea
Removed some todo-lev comments
2022-01-01 14:10:24 -06:00
Sam Germain
3d4a5eab81
fixed flake8 error
2022-01-01 13:52:06 -06:00
Sam Germain
48567a1301
fixe broken test_get_min_pair_stake_amount
2022-01-01 13:52:06 -06:00
Sam Germain
230dd15ee7
fixed test_amount_to_precision
2022-01-01 13:52:06 -06:00
Sam Germain
f92d47a16b
exchange._contracts_to_amount and exchange._amount_to_contracts safe checks
2022-01-01 13:52:06 -06:00
Sam Germain
6ab0e870c2
fixed breaking test test_amount_to_precision
2022-01-01 13:52:06 -06:00
Sam Germain
d105bb764a
test__get_contract_size creates its own markets instead of using the markets from conftest
2022-01-01 13:52:06 -06:00
Sam Germain
a85566d6c3
test_exchange.test_create_order removed # assert api_mock.create_order.call_args[0][3] == 100
2022-01-01 13:52:06 -06:00
Matthias
8da596f66d
Implement PR feedback
2022-01-01 13:52:01 -06:00
Sam Germain
78d1a267f0
contract-sizes tests
2022-01-01 13:50:50 -06:00
Sam Germain
d0a300a2e1
Added TODOs
2022-01-01 13:50:49 -06:00
Sam Germain
4f6203e45f
Added conversions from contract size to amount for objects returned from api
2022-01-01 13:50:43 -06:00
Sam Germain
ee63f12236
Revert "Removed leverage param from get_min_pair_stake_amount"
...
This reverts commit 096588550ca1de5e5edf63cf7214af037d7bc93b.
2022-01-01 13:49:09 -06:00
Sam Germain
ef6ad0e6d7
Removed leverage param from get_min_pair_stake_amount
2022-01-01 13:49:09 -06:00
Matthias
ddfbe55e7c
Merge branch 'develop' into feat/short
2022-01-01 19:16:49 +01:00
Matthias
08ba5b0451
Update docs to include underwaterplot
2022-01-01 16:55:08 +01:00
Matthias
fb06a673e0
Add Underwater plot
2022-01-01 14:40:20 +01:00
Matthias
78ba2d3fc7
Add underwaterplot calculation to btanalysis
2022-01-01 14:39:58 +01:00
Matthias
a2d97eecfe
Add trade parallelism plot
...
closes #6142
2022-01-01 14:11:51 +01:00
Matthias
9becd20f20
Improve "Missing data" messages
2022-01-01 10:37:58 +01:00
Matthias
713b884d9b
Fix failing monthly test
2022-01-01 10:37:43 +01:00
Sam Germain
9a220f6cfe
removed a few todos
2021-12-31 07:30:01 -06:00
Sam Germain
08b738a5d9
removed outdated todo in kraken
2021-12-31 06:26:13 -06:00
Sam Germain
250edae193
test__async_get_historic_ohlcv parametrized candle_type
2021-12-31 06:00:56 -06:00
Rokas Kupstys
a715083fc0
Reduce memory usage by not holding on to no longer needed data.
2021-12-31 12:10:01 +02:00
Matthias
b1b2eebd11
Change sequence of ROI/sell signal to favor sell-signal
2021-12-30 20:00:58 +01:00
Matthias
b63491fb9c
Update ROI_if_buy_signal tests to not use sell signal
2021-12-30 19:51:49 +01:00
Matthias
4b79d435ad
Merge pull request #6084 from aezomz/lev-telegram
...
Telegram and Webhook updates
2021-12-30 19:17:58 +01:00
Matthias
3c4eda14b1
Remove unused test parameter
2021-12-30 17:34:45 +01:00
Matthias
2395988bf8
Leverage defaults to 1.0, which should not be shown.
2021-12-30 17:32:36 +01:00
Matthias
45ac3b3562
Change formatting slightly
2021-12-30 17:18:46 +01:00
Matthias
bd98637ae9
Fail gracefully from plot-profit when no data is provided
...
closes #6132
2021-12-30 10:14:45 +01:00
Matthias
73276f1351
Remove default argument from "download trades" test
2021-12-29 17:36:47 +01:00
Matthias
77afb7b5e2
Merge pull request #6114 from cdimauro/reduce_kucoin_logs
...
Reduce kucoin logs
2021-12-29 17:33:21 +01:00
Aezo Teo
ee7cbcd69f
fixed flake8 and mypy errors
2021-12-29 21:48:50 +08:00
Aezo Teo
1f773671ed
updated tests and telegram
2021-12-29 21:24:12 +08:00
Wade Dyck
ac06da40e4
Explicitly set the trading-mode to spot for the --dl-trades download test.
2021-12-28 11:43:42 -07:00
Wade Dyck
5bb2d3baea
Revert "Remove the guards against downloading data in futures mode."
...
This reverts commit 82cdfba494
.
2021-12-28 11:35:17 -07:00
Matthias
24807515c1
Fix random test failure
2021-12-28 09:04:14 +01:00
Wade Dyck
82cdfba494
Remove the guards against downloading data in futures mode.
2021-12-27 12:48:42 -07:00
Wade Dyck
a5742b3bbc
Fixes a failing test_history due to changed log message.
2021-12-27 11:26:49 -07:00
Matthias
bb65621134
Simplify test, simplify "log_*" selection
2021-12-27 17:14:59 +01:00
Matthias
54858a0bbb
Simplify test to only initialize and mock once.
2021-12-27 16:39:47 +01:00
Matthias
314e10596b
Remove checking against logger_name in num_log_has
2021-12-27 16:39:31 +01:00
cdimauro
f77b8cbb7a
Reduce KuCoin logs only for 429000 error
...
Only KuCoin messages for 429000 error code are logged once.
Logs functions are also simplified and optimized.
test_remove_logs_for_pairs_already_in_blacklist is simplified as well.
2021-12-26 21:09:25 +01:00
Matthias
d3f3c49b13
Fix minor "gotchas"
2021-12-26 15:29:10 +01:00
cdimauro
6509c38717
Introduce new test functions to check logs
...
New functions log_contains, num_log_contains, num_log_has and num_log_has_re
are introduced in the conftest module to help and simplify checking:
- if logs contain a string;
- count how many messages contain a string;
- count how many messages are the given string;
- count how many messages matchs a regex.
A couple of existing tests are changed using the new functions.
2021-12-26 09:49:14 +01:00
cdimauro
fbaf46901e
Reduce more KuCoin logs on retrier decorator
...
More logs are reduced, for KuCoin, on the retrier_async decorator:
_async_get_candle_history() returned exception
retrying _async_get_candle_history() still for
Giving up retrying: _async_get_candle_history()
Applying DDosProtection backoff delay
2021-12-26 09:06:26 +01:00
cdimauro
96fbf63d0b
Reduce KuCoin logs on DDosProtection error messages
...
KuCoin APIs generate A LOT of error messages.
Consequently, logs are flooded with lines like:
2021-12-25 22:30:23 freqtrade.exchange.common: WARNING -
_async_get_candle_history() returned exception:
"kucoin GET https://openapi-v2.kucoin.com/api/v1/market/candles ?
symbol=PDEX-USDT&type=5min&startAt=1640317818&endAt=1640467818
429 Too Many Requests {"code":"429000","msg":"Too Many Requests"}"
2021-12-25 22:30:23 freqtrade.exchange.common: WARNING -
retrying _async_get_candle_history() still for 3 times
2021-12-25 22:30:23 freqtrade.exchange.common: WARNING -
Kucoin 429 error, avoid triggering DDosProtection backoff delay.
2 tries left before giving up
2021-12-25 22:30:24 freqtrade.exchange.common: WARNING -
_async_get_candle_history() returned exception:
"kucoin GET https://openapi-v2.kucoin.com/api/v1/market/candles ?
symbol=UBX-USDT&type=5min&startAt=1640317821&endAt=1640467821
429 Too Many Requests {"code":"429000","msg":"Too Many Requests"}"
Messages like:
Kucoin 429 error, avoid triggering DDosProtection backoff delay.
are logged only once for a certain period of time (default is 3600 seconds).
2021-12-25 22:32:22 +01:00
Reigo Reinmets
aa54592ec7
Merge branch 'freqtrade:develop' into dca
2021-12-25 21:06:26 +02:00
Matthias
2917cc1f2e
Bitpanda's "fetch_my_trades" requires "to" argument
...
closes #4938
2021-12-25 14:28:22 +01:00
Matthias
6fdad8c6bd
Prevent exception, ensure deletion occurs
2021-12-25 14:03:44 +01:00
Matthias
356b2d3d91
Reestablish backward compatibility
2021-12-25 13:47:28 +01:00
Matthias
b1feb69ca9
Use Pathlib to delete testfile
2021-12-25 10:30:59 +01:00
Reigo Reinmets
ea79eb55e9
Remove this test change from DCA branch.
2021-12-25 10:43:25 +02:00
Reigo Reinmets
d11a8928d4
Fix test not running when user_data contains historical data.
2021-12-25 10:39:27 +02:00
Reigo Reinmets
ad247b2f07
Merge branch 'freqtrade:develop' into dca
2021-12-24 12:39:09 +02:00
Reigo Reinmets
de79d25caf
Refactoring to use strategy based configuration
2021-12-24 12:38:43 +02:00
Matthias
61dbb6206f
Slightly reduce verbosity when reload_conf is issued
...
part of #6095
2021-12-23 20:33:13 +01:00
Reigo Reinmets
0c4664e8f4
Lock file is not always left behind so handle it.
2021-12-23 17:39:43 +02:00
Reigo Reinmets
bc60139ae3
I really should make this flake8 / isort check automatic before commit.
2021-12-23 16:40:47 +02:00
Reigo Reinmets
8393c99b62
Whoops, missing a line.
2021-12-23 16:25:27 +02:00
Reigo Reinmets
8bf1001b33
Fix test failing when user_data already contains data...
2021-12-23 12:41:37 +02:00
Reigo Reinmets
da2e07b7fe
Unittest base_stake_amount_ratio
2021-12-22 02:42:44 +02:00
Reigo Reinmets
76e7bf6cd2
Merge branch 'freqtrade:develop' into dca
2021-12-22 02:24:21 +02:00
Reigo Reinmets
fa01cbf546
iSort
2021-12-21 22:23:01 +02:00
Matthias
f88b6af26f
Merge pull request #6070 from cdimauro/suppress_logs
...
Suppress additional logs for pairs in blacklist
2021-12-21 21:07:15 +01:00
Matthias
e5aaef6440
Fix CI failure
2021-12-21 19:20:09 +01:00
Reigo Reinmets
f6d36ce56b
Fix the dca order not being counted bug.
2021-12-20 22:07:42 +02:00
Matthias
a557451eee
Okex uses 4h mark candle timeframe
2021-12-19 16:47:44 +01:00
Reigo Reinmets
f28d95ffb5
Add test for position adjust
2021-12-19 12:27:17 +02:00
Matthias
ddce28c12d
Update data downloading to include funding_fee downloads
2021-12-18 15:32:02 +01:00
Reigo Reinmets
db2f0660fa
Some more compatibility fixes.
2021-12-18 11:15:59 +02:00
Reigo Reinmets
30673f84f9
Flake8 compatibility
2021-12-18 11:00:25 +02:00
Reigo Reinmets
cea023399e
Merge branch 'freqtrade:develop' into dca
2021-12-17 21:59:58 +02:00
Reigo Reinmets
462270bc5a
Fix a case where the amount was not recalculated. Added additional temporary logging.
2021-12-16 22:57:56 +02:00
Matthias
ea38b58081
Add base_currency to allowed webhook fields
...
closes #6075
2021-12-16 20:18:01 +01:00
Reigo Reinmets
337af44901
Merge branch 'freqtrade:develop' into dca
2021-12-16 20:02:14 +02:00
Matthias
b2fc3e814e
Merge pull request #6055 from freqtrade/blacklist_delete
...
Add Blacklist delete
2021-12-16 13:41:18 +01:00
Matthias
39f0a17e62
Fix formatting
2021-12-16 07:11:35 +01:00
Reigo Reinmets
7200659b35
Merge branch 'freqtrade:develop' into dca
2021-12-15 23:17:44 +02:00
Matthias
f9aa36f291
Don't hard-fail when executing emergency sell fails
...
closes #6068
2021-12-15 19:37:35 +01:00
Matthias
b80b5ed1ad
Improve uri_logging test
...
part of #6069
2021-12-15 19:25:30 +01:00
cdimauro
9d8646072c
Add test case for checking removal of logs for pains in blacklist
2021-12-14 06:23:40 +01:00
Reigo Reinmets
1017b68af9
Fix some unit-tests. Use common trade entry code.
2021-12-13 02:27:09 +02:00
Reigo Reinmets
98255c18cf
Merge branch 'freqtrade:develop' into dca
2021-12-13 02:10:13 +02:00
Matthias
3398469e55
Update PerformanceFilter to have min_profit as ratio again.
...
closes #6056
2021-12-12 13:21:36 +01:00
Reigo Reinmets
8dacd987b9
Merge branch 'freqtrade:develop' into dca
2021-12-12 08:31:38 +02:00
Matthias
8fdef2900e
Increment API version to let clients know this is now available
2021-12-11 19:41:30 +01:00
Matthias
8da79d0ab2
Add blacklist-control to telegram
2021-12-11 16:12:24 +01:00
Matthias
cc96db76f0
Add possibility to delete pairs from the pairlist via api
2021-12-11 15:53:44 +01:00
Matthias
e729fad99c
Add unknown_fee_rate parameter
2021-12-11 15:26:08 +01:00
Matthias
17bd990053
Update funding_fee freqtradebot test
2021-12-11 09:49:48 +01:00
Reigo Reinmets
f97662e816
Add position_adjustment_enable config keyword to enable it.
2021-12-11 00:28:12 +02:00
Matthias
6948414e47
Remove no longer necessary method _get_mark_price_history
2021-12-10 19:54:49 +01:00
Matthias
a87d2d62bb
Remove no longer needed method get_funding_rate_history
2021-12-10 19:52:02 +01:00
Matthias
aabca85a5f
Update _calculate_funding_fees
to reuse existing async infrastructure
2021-12-10 19:50:58 +01:00
Matthias
35f9549e98
Expose drop_incomplete from refresh_latest_ohlcv
2021-12-10 07:36:25 +01:00
Matthias
3f266e8c8c
Improve ccxt_mark_price_test
2021-12-10 06:46:35 +01:00
Reigo Reinmets
b2c2852f86
Initial backtesting support. This does make it rather slow.
2021-12-09 23:21:35 +02:00
Reigo Reinmets
00366c5c88
Additional unit-tests
2021-12-09 20:03:41 +02:00
Reigo Reinmets
28d0b5165a
Add unit-test
2021-12-09 19:47:24 +02:00
Matthias
edd80c3006
Merge branch 'develop' into feat/short
2021-12-09 06:34:07 +01:00
Matthias
0c28d15dc1
Merge pull request #5780 from samgermain/mark-price-candles
...
Mark price candles
2021-12-09 06:24:54 +01:00
Matthias
be6b1f6f83
Import from enums, not submodules
2021-12-09 06:18:21 +01:00
Matthias
2679744228
Explicit test for candletype get_default
2021-12-08 16:20:26 +01:00
Matthias
25e1142f89
Update Enum imports
2021-12-08 15:59:20 +01:00
Matthias
9b9d61c6d6
Remove SPOT_ candletype
2021-12-08 14:38:09 +01:00
Matthias
d89cbda7b8
Use candle_type_def
where possible
2021-12-08 14:15:54 +01:00
Matthias
dda7283f3e
Remove unnecessary default parameters
2021-12-08 11:32:58 +01:00
Matthias
b4d27973b1
Update ohlcv_get_pairs test
2021-12-07 19:57:18 +01:00
Matthias
37b013c157
Update hdf5 test
2021-12-07 19:50:16 +01:00
Matthias
a870e0962a
Fix some obtruse (test)bugs
2021-12-07 07:25:00 +01:00
Matthias
ba1091b9e4
Improve dataprovider test
2021-12-07 07:11:36 +01:00
Matthias
cff950d783
Update test_convert_ohlcv_format to test as before
...
it did test conversion of multiple files, and that should be kept this
way.
2021-12-07 07:06:28 +01:00
Matthias
5a3b907132
Update converter tests
2021-12-07 06:59:27 +01:00
Matthias
a58c2c4f6c
Update ccxt_compat tests to also test funding_rate
2021-12-07 06:31:39 +01:00
Matthias
9d79501c13
Add candletypes argument for convert-data
2021-12-05 10:26:00 +01:00
Matthias
a7eb9f8a58
Fix random test failure
2021-12-05 09:41:24 +01:00
Matthias
1a08613498
Fix parameter sequence in mock
2021-12-04 15:13:06 +01:00
Matthias
d0467b30ba
Add strategy_version to API response
2021-12-04 14:49:45 +01:00
Matthias
848a2d5383
Merge branch 'develop' into pr/dvdmchl/5929
2021-12-04 14:40:15 +01:00
Matthias
2080bf0952
Fix some formatting errors, add test for strategy version
2021-12-04 14:40:05 +01:00
Matthias
5b779fd68b
Update missing candle_type params
2021-12-03 16:44:05 +01:00
Matthias
e75f31ee86
Create correct Type for PairWithTimeFrame
2021-12-03 15:20:18 +01:00
Matthias
9421e6e61c
Improve some tests
2021-12-03 14:57:09 +01:00
Matthias
d30aaaeaaa
Tests should also use CandleType
2021-12-03 14:27:04 +01:00
Matthias
5493212672
More candletype changes
2021-12-03 13:04:31 +01:00
Matthias
f33643cacf
Add candletype from string
2021-12-03 12:46:18 +01:00
Matthias
f9cf59bb4d
Candle_type to enum
2021-12-03 12:32:12 +01:00
Matthias
e0e4369c8e
list-available-pairs should be tradingmode dependent
2021-12-03 08:09:32 +01:00
Matthias
b578e31255
Align tests to have futures data in futures/ directory
2021-12-03 07:20:43 +01:00
Matthias
fae7167bf3
Merge branch 'feat/short' into pr/samgermain/5780
2021-12-02 20:25:30 +01:00
Matthias
fb1599d21b
Merge branch 'develop' into feat/short
2021-12-02 20:20:35 +01:00
Matthias
d3ad4fb52e
Don't crash dry-run if orderbook side is empty
...
closes #6018
2021-12-02 19:17:47 +01:00
Matthias
22cda87211
Update some tests after merge
2021-12-02 19:05:06 +01:00
Matthias
f4d0abc51a
Merge branch 'feat/short' into pr/samgermain/5780
2021-12-02 07:09:37 +01:00
Matthias
f71b7a4e76
Merge branch 'develop' into feat/short
2021-12-02 06:53:15 +01:00
Matthias
5ce1eeecf5
Reorder messages to be sent in correct order
...
buy first, then buy fill,
sell first, then sell fill.
2021-12-01 19:57:24 +01:00
Matthias
77443d5abc
Merge pull request #6011 from freqtrade/lev/backtesting
...
correctly apply leverage to backtesting
2021-12-01 19:49:40 +01:00
Matthias
67f3570bf3
Merge branch 'develop' into feat/short
2021-12-01 07:21:36 +01:00
Matthias
8b2fbb6432
Add leveraged backtest detail test
2021-11-30 20:42:18 +01:00
Matthias
231b1e2f57
Improve Async error message content
2021-11-30 07:10:12 +01:00
Matthias
de7e1e6bf7
Merge pull request #5980 from incrementby1/ShuffleFilterDetectLiveMode
...
Shuffle filter use seed only in backtesting mode
2021-11-30 06:37:35 +01:00
Matthias
dfb148f8d7
Fix formatting
2021-11-29 19:54:54 +01:00
Matthias
134b129d9d
get_analyzed_df does not need a "candle_type" argument
2021-11-28 19:14:58 +01:00
Matthias
c20157e64f
Add compatibility code for existing informative_pairs implementation
2021-11-28 15:43:04 +01:00
Matthias
0d6c933935
Improve and fix pair detection from available data
2021-11-28 15:25:57 +01:00
Matthias
0d1324718c
Don't replace "-" when writing pair files
2021-11-28 15:08:02 +01:00
Matthias
7faa7539b4
Further enhance pair retrieval
2021-11-28 15:03:55 +01:00
Matthias
8d70672bee
Enhance Regex to work for mark candles
2021-11-28 14:37:54 +01:00
Matthias
c096c7f5cb
Add explicit tests for ohlcv regex
2021-11-28 14:34:46 +01:00
Spat
fb6ae174b9
Added raw config and retry config to webhook
2021-11-28 11:42:57 +11:00
Matthias
2b3e7eeb21
Use Enum values within bot code
2021-11-27 19:41:36 +01:00
Matthias
409a801763
Fix caching problem in refresh_ohlcv
...
closes #5978
2021-11-27 19:31:39 +01:00
Matthias
cb95b362ec
Merge pull request #5976 from freqtrade/forcebuy
...
allow force options with ordertype
2021-11-27 17:01:18 +01:00
Matthias
504efbd6d4
Add futures argument to download-data command
2021-11-27 16:36:59 +01:00
Matthias
a629777890
Improve test coverage in telegram module
2021-11-27 09:53:05 +01:00
Sam Germain
0183e313ac
Merge branch 'mark-price-candles' of https://github.com/samgermain/freqtrade into mark-price-candles
2021-11-27 02:44:14 -06:00
Sam Germain
0d30b32fdd
Formatting changes
2021-11-27 02:44:06 -06:00
Matthias
450293878f
Merge pull request #5964 from stash86/fix-docs
...
Add more words on VolumePairlist backtest error message
2021-11-26 07:48:24 +01:00
Matthias
897788de17
Reformulate exception to be "nicer"
2021-11-26 07:02:50 +01:00
Matthias
cc9ea1d466
Merge pull request #5935 from freqtrade/short_buy_tag_compat
...
Short buy tag compat
2021-11-26 06:29:56 +01:00
Stefano Ariestasia
5307d2bf3b
Trimming the sentence
2021-11-25 17:04:04 +09:00
Stefano Ariestasia
c23d90e2b8
Update test_backtesting.py
2021-11-25 16:56:56 +09:00
Stefano Ariestasia
0c629fc951
Update test_backtesting.py
2021-11-25 16:03:29 +09:00
Matthias
338fe333a9
Allow forcebuy to specify order_type
2021-11-24 20:20:58 +01:00
Matthias
65906d330f
Improve tests for pair_to_filename
2021-11-23 20:07:54 +01:00
Matthias
e8feac3674
Improve tests for pair_to_filename
2021-11-23 20:02:07 +01:00
Matthias
51e54a666c
Merge branch 'feat/short' into pr/samgermain/5780
2021-11-23 19:01:07 +01:00
Matthias
db16098981
Fix Tests
2021-11-23 17:43:37 +01:00
Sam Germain
586ca3b2fa
removed is_market_future from binance and ftx
2021-11-23 11:09:31 +01:00
Matthias
ce0593c0e1
Merge branch 'develop' into feat/short
2021-11-23 07:35:26 +01:00
Matthias
b8cefd687e
Add api_version to botresponse
2021-11-23 07:08:55 +01:00
Rokas Kupstys
78a00f2518
Use market data to get base and quote currencies in @informative() decorator.
2021-11-22 09:27:45 +02:00
Matthias
64e34f382e
Sell-fill should include open-rate
2021-11-22 07:13:22 +01:00
Sam Germain
920151934a
Added candle_type to a lot of methods, wrote some tests
2021-11-21 17:48:14 -06:00
Sam Germain
64a6abc541
Added candle type to ohlcv_get_available_data
2021-11-21 17:48:14 -06:00
Sam Germain
c3b2929e75
Added template for test test_hdf5datahandler_ohlcv_load_and_resave
2021-11-21 17:48:14 -06:00
Sam Germain
843ca22a56
mark price test ohlcv_get_pairs
2021-11-21 17:48:14 -06:00
Sam Germain
91a11d01e9
Added XRP_USDT-1h-mark json testdat file, and test for ohlcv_load with candle_type=mark
2021-11-21 17:48:14 -06:00
Sam Germain
043ed3e330
Added candle_type tests for test_json_pair_data_filename
2021-11-21 17:48:14 -06:00
Sam Germain
ee2ad8ca97
updated historic data filenames to include the candle type
2021-11-21 17:48:14 -06:00
Sam Germain
c8162479d6
Added price as param to fetch_ohlcv
2021-11-21 17:48:14 -06:00
Matthias
c26c0b6822
Merge branch 'feat/short' into short_buy_tag_compat
2021-11-21 19:31:59 +01:00
Matthias
aad37bb8f3
Merge pull request #5924 from freqtrade/feat/leverage
...
call leverage methods
2021-11-21 19:30:27 +01:00
Matthias
983484accd
Remove fluky test (seconds still tick with time_machine)
2021-11-21 10:36:39 +01:00
Matthias
2a84526f04
Remove more buy_tag references
2021-11-21 10:05:56 +01:00
Matthias
36deced00b
Remove more buy_tag references
2021-11-21 09:55:10 +01:00
Matthias
7d77aff289
Add some compatibility around buy_tag
2021-11-21 09:24:20 +01:00
Matthias
7a8978abbb
Make ohlcv data endpoint work correctly with new interface
2021-11-20 20:09:37 +01:00
Matthias
988f4d5190
Test leverage call in freqtradebot
2021-11-19 19:34:59 +01:00
Matthias
0a50017c84
Add long/short support to backtesting
2021-11-18 20:34:59 +01:00
Matthias
f40221dd9f
Merge branch 'develop' into feat/short
2021-11-18 20:20:01 +01:00
Matthias
4f0a73010a
Merge pull request #5890 from aezomz/todo-rpc
...
Todo-lev RPC tests and model
2021-11-17 06:58:07 +01:00
aezo.teo
1ba2e275b8
updated test param format
2021-11-16 14:29:40 +08:00
Matthias
ce3c5b32f9
Fix test leakage in ccxt_compat
2021-11-16 07:04:56 +01:00
aezo.teo
c17c1611bd
removed short_trades, updated schema, tests
2021-11-16 14:03:33 +08:00
Matthias
75eccea88d
Improve futures detection, add ccxt-compat test
2021-11-15 19:57:36 +01:00
Matthias
4e9b83e170
Merge branch 'feat/short' into futures_pairlist
2021-11-15 19:12:36 +01:00
Matthias
60cf52aa34
Remove unused test code
2021-11-15 07:10:58 +01:00
Sam Germain
ff6b1f4421
Small changes
2021-11-14 21:01:08 -06:00
Sam Germain
f101419a47
Merge branch 'feat/short' into todo-rpc
2021-11-14 20:48:55 -06:00
Matthias
e7499b7c44
Improve leggibility of test
2021-11-14 19:53:08 +01:00
Matthias
9102590365
Improve tests by also having a "Mixed" case
2021-11-14 19:22:12 +01:00
aezo.teo
a08572e907
Merge remote-tracking branch 'upstream/feat/short' into todo-rpc
2021-11-14 21:21:59 +08:00
aezo.teo
22f7c0fdc6
updated test cases
2021-11-14 21:04:24 +08:00
Matthias
b3afca2a9d
Improve ccxt_compat test for funding rate
2021-11-14 13:37:09 +01:00
aezo.teo
92997c85f9
adding sides for rate and 1 more test case
2021-11-14 17:37:31 +08:00
Matthias
4d1d8de9b7
Split /stats messages
...
closes #5869
2021-11-14 10:20:04 +01:00
Sam Germain
e7fad04eb9
Merge branch 'feat/short' into funding-fee-dry-run
2021-11-14 03:15:22 -06:00
Matthias
1dc98cc4d5
Break line
2021-11-14 10:12:19 +01:00
aezo.teo
8df334515f
added logic for is_short and tests
2021-11-14 16:52:38 +08:00
Matthias
8cfc531b32
Merge pull request #5887 from samgermain/common-ccxt-config
...
Common ccxt config
2021-11-14 09:52:06 +01:00
Matthias
5b9cbaf277
Use Close value for trade signal calculation
2021-11-14 09:50:04 +01:00
Matthias
38362e0ec5
Update test names
2021-11-14 09:02:25 +01:00
Sam Germain
86e5b480a8
test_strategy_test_v2 for shorts
2021-11-13 19:56:29 -06:00
Sam Germain
430aa0903f
Removed redundent TODO-levs
2021-11-13 19:45:41 -06:00
Sam Germain
77f8f8658c
test_rpc_telegram short test
2021-11-13 19:36:49 -06:00
Sam Germain
ca9805112d
test_get_trades_proxy and test_select_order for shorts passes
2021-11-13 19:28:58 -06:00
Sam Germain
01ad65de68
test_rpc_apiserver.py
2021-11-13 19:22:43 -06:00
Sam Germain
3ce64dd4e9
Added test__ccxt_config for all exchanges with subclass files on freqtrade
2021-11-13 16:32:43 -06:00
Sam Germain
099bf7691e
Updated bibox to combine parent _ccxt_config and minimized _ccxt_config tests
2021-11-13 16:23:59 -06:00
Sam Germain
3d86b18492
Added property _ft_has_default.ccxt_futures_name and removed subclass ccxt_config properties
2021-11-13 16:23:58 -06:00
ethan
a177e58dc4
Remove "currency" generating from splitting pair str
2021-11-13 08:49:02 -05:00
Sam Germain
3c509a1f9b
New method for combining all funding fees within a time period
2021-11-13 04:45:23 -06:00
ethan
32e3376296
Update buy/sell fill telegram notifications
2021-11-12 21:49:07 -05:00
Matthias
6b40792f80
Merge branch 'feat/short' into funding-fee-dry-run
2021-11-12 08:06:29 +01:00
Matthias
8d4163d003
Add compat tests
2021-11-12 07:26:59 +01:00
Matthias
68083b7fdd
Fix sqlinsert failure in test
2021-11-11 20:07:56 +01:00
Matthias
4d1ce51207
Merge pull request #5879 from freqtrade/improve_pct_formatting
...
Improve pct formatting
2021-11-11 19:30:55 +01:00
Matthias
39bb34cdb3
Fix test loading bug
2021-11-11 16:34:40 +01:00
Matthias
e0fd880c11
Improve some more pct formattings
2021-11-11 16:12:23 +01:00
Matthias
4eb9038358
Some more fixes to % formatting
2021-11-11 15:06:16 +01:00
Matthias
1b271d0840
Improve % outputs to not use explicit "pct" entries
2021-11-11 12:58:38 +01:00
Matthias
ce2aa1dc69
Small formatting upgrades
2021-11-11 12:06:18 +01:00
Matthias
f8d30abd79
Handle order returns that contain trades directly
...
binance market orders - and potentially other exchanges
2021-11-10 19:43:36 +01:00
Matthias
f7b2c0c5d7
Remove unneeded assignment from tests
2021-11-10 19:16:37 +01:00
Matthias
e7d1630c92
Add space
2021-11-10 16:51:31 +01:00
Sam Germain
43174760ef
Added exit trade funding_fees check but test fails because of sql integrity error test_update_funding_fees
2021-11-10 01:19:51 -06:00
Sam Germain
b87f8e7034
Removed unnecessary todo comments
2021-11-10 00:59:53 -06:00
Matthias
d3d17f9f8b
Only allow min-stake adjustments of up to 30%
...
fix #5856
2021-11-10 06:57:22 +01:00
Matthias
23a566b478
validate_stake_amount should not be a private method
2021-11-10 06:38:24 +01:00
Matthias
6267678ca9
Use doublequotes for docstrings
2021-11-09 10:40:01 +00:00
Sam Germain
6c8501dadc
Removed docstring indents
2021-11-09 01:00:57 -06:00
Matthias
2bfec7d549
Add small test-case confirming trade object copy
2021-11-08 20:14:32 +01:00
Sam Germain
7122cb2fe9
updated test_get_funding_fees to test for funding fees at beginning of trade also
2021-11-08 01:58:23 -06:00
Sam Germain
bea37e5ea3
moved dry run check for funding fees to exchange
2021-11-08 01:58:09 -06:00
Matthias
de4bc7204d
Update documentation to clarify new behaviour
2021-11-07 15:36:43 +01:00
Matthias
a08dd17bc1
Use startup_candle-count to determine call count
2021-11-07 13:10:40 +01:00
Matthias
9fa64c2647
Allow multiple calls to get more candles in live-run
2021-11-07 11:31:59 +01:00
Matthias
11b77cf94c
Update test to new list-pairs format
2021-11-07 10:43:00 +01:00
Matthias
bfe3760f68
Add tests for margin mode
2021-11-07 10:43:00 +01:00
Matthias
0dd9a277d3
improve market_is_tradable tests
2021-11-07 10:43:00 +01:00
Matthias
534b0a5911
Some tests for new market checking
2021-11-07 10:43:00 +01:00
Matthias
8990097d6f
Enrich markets mock with "type" and "spot" info
2021-11-07 10:43:00 +01:00
Sam Germain
252e45ebf2
Merge branch 'feat/short' into funding-fee-dry-run
2021-11-06 22:46:00 -06:00
Sam Germain
8bfcf4ee09
Fixed breaking exchange tests from _get_funding_fee_dates, and commented out kraken get_funding_fees tests
2021-11-06 22:05:38 -06:00
Sam Germain
b88482b2e9
Fixed millisecond timestamp issue errors with funding fees
2021-11-06 21:45:35 -06:00
Sam Germain
48b34c8fd0
Fixed issues with funding-fee being miscalculated on trade objects in freqtradebot
2021-11-06 21:03:18 -06:00
Sam Germain
f795288d90
Fixed timestamp/datetime issues for mark price, funding rate and _get_funding_fee_dates
2021-11-06 20:48:03 -06:00
Sam Germain
6e912c1053
Updated _get_funding_fee method names, added kraken._get_funding_fee
2021-11-06 17:39:21 -06:00
Matthias
25fcab0794
Enhance /show_config endpoint
2021-11-06 16:20:18 +01:00
Matthias
fef7da03b2
Merge pull request #5850 from freqtrade/timeout_forcesell
...
multiple exit-timeouts can trigger emergencysell
2021-11-06 16:20:06 +01:00
Matthias
ebc38159b8
Merge branch 'develop' into feat/short
2021-11-06 15:24:52 +01:00
Matthias
f7dc47b1c8
Add test for exit_timeout_count
2021-11-06 13:10:41 +01:00
Sam Germain
cb97c6f388
Updated time to utc in test_update_funding_fees, some funding rate key errors because a timestamp is likely not in utc
2021-11-06 05:56:58 -06:00
Sam Germain
fd63fa7dda
Updated test_update_funding_fees to compile fine but the assertion is incorrect
2021-11-06 05:42:41 -06:00
Rokas Kupstys
98b475a00b
Use lambdas instead of a static number of side-effects.
2021-11-06 10:23:46 +02:00
Antoine Merino
70253258f0
Test /monthly & clean
...
Signed-off-by: Antoine Merino <antoine.merino.dev@gmail.com>
2021-11-05 22:33:06 +01:00
Antoine Merino
459ff9692d
Add /weekly and /monthly to Telegram RPC
...
/weekly now list weeks starting from monday instead of rolling weeks.
/monthly now list months starting from the 1st.
Signed-off-by: Antoine Merino <antoine.merino.dev@gmail.com>
2021-11-05 21:07:28 +01:00
Antoine Merino
5f40158c0b
WIP Add /weekly and /monthly to Telegram RPC
...
Related to "Show average profit in overview" (#5527 )
Signed-off-by: Antoine Merino <antoine.merino.dev@gmail.com>
2021-11-05 21:07:19 +01:00
Matthias
ae3b53014d
Add failing test for OKEX failure
...
part of #5842
2021-11-05 19:44:02 +01:00
Matthias
60a5ded532
Don't convert telegram chat_id
...
closes #5840
2021-11-05 19:27:54 +01:00
Sam Germain
8a4236198f
Added test_update_funding_fees in freqtradebot, test currently fails
2021-11-03 22:52:37 -06:00
Matthias
431b96de98
Merge branch 'develop' into pr/theluxaz/5710
2021-11-03 19:43:36 +01:00
Matthias
161a3fac15
Run exchange-enabled tests against okex
2021-11-02 20:08:56 +01:00
Sam Germain
3de42da29a
All funding fee test_exchange tests pass
2021-11-01 07:52:40 -06:00
Sam Germain
863e0bf837
Adding 1am tests to funding_fee_dates
2021-11-01 06:40:20 -06:00
Sam Germain
74b6335acf
Adding timezone utc to test__get_funding_fee_dates
2021-11-01 06:34:22 -06:00
Sam Germain
ba95172d07
Finished test_calculate_funding_fees
2021-11-01 06:28:03 -06:00
Sam Germain
765ee5af50
Updated conftest funding_rate and mark_price
2021-11-01 02:51:59 -06:00
Matthias
4249fcefba
Merge pull request #5150 from cryptomeisternox/backtesting-filter
...
Adding command for Filtering and print trades
2021-11-01 09:43:49 +01:00
Sam Germain
8b9dfafdf4
Tests for _get_funding_fee_dates
2021-11-01 01:09:57 -06:00
Sam Germain
77d247e179
Created fixtures mark_ohlcv and funding_rate_history
2021-11-01 01:04:42 -06:00
Sam Germain
5c52b21346
Added tests for funding_fee_dry_run
2021-10-31 22:24:27 -06:00
Matthias
6b90b4a144
Test "get-signal"
2021-10-31 10:53:30 +01:00
Matthias
dffe76f109
Don't double-loop to generate profits
2021-10-31 10:49:56 +01:00
Matthias
c15f73aa1f
Rename command to backtesting-show
2021-10-31 10:13:11 +01:00
Matthias
c094ac5762
Merge branch 'develop' into feat/short
2021-10-30 19:45:19 +02:00
Matthias
20904f1ca4
Add tests for new command
2021-10-30 19:43:42 +02:00
Matthias
72ecb45d86
Add test for backtest_show logic
2021-10-30 16:53:48 +02:00
Matthias
459a2239ce
Fix candle ranges in backtesting test
2021-10-30 16:13:04 +02:00
Matthias
6cf140f8fb
FIx testcases
2021-10-30 16:07:10 +02:00
Matthias
c34b8a95d7
Merge pull request #5798 from incrementby1/personal-branch
...
Add function to unlock PairLocks by reason
2021-10-30 10:15:21 +02:00
Matthias
c579fcfc19
Add tests and documentation for unlock_reason
2021-10-30 09:51:09 +02:00
Matthias
201fe108bc
Merge pull request #5607 from TreborNamor/develop
...
a new hyperopt loss created that uses calmar ratio
2021-10-29 09:20:44 +02:00
Matthias
240923341b
Reformat telegram test
2021-10-29 07:05:02 +02:00
Matthias
5cdae2ce3f
Remove CalmarDaily hyperopt loss
2021-10-29 06:53:40 +02:00
theluxaz
560802c326
Added tests for the new rpc/telegram functions
2021-10-28 21:39:42 +03:00
theluxaz
21ab83163d
Quick import/clarity fix
2021-10-27 01:35:47 +03:00
theluxaz
e4e75d4861
Added test data for buy_tag/sell_reason testing
2021-10-27 01:29:19 +03:00
Sam Germain
a2b1838c60
Merge branch 'feat/short' into funding-fee-dry-run
2021-10-25 22:00:09 -06:00
theluxaz
b51f946ee0
Fixed models and rpc performance functions, added skeletons for tests.
2021-10-25 23:43:22 +03:00
Simon Ebner
f7926083ca
Clean up unclosed file handles
...
Close all file handles that are left dangling to avoid warnings such as
```
ResourceWarning: unclosed file <_io.TextIOWrapper
name='...' mode='r' encoding='UTF-8'> params = json_load(filename.open('r'))
```
2021-10-24 23:15:05 +02:00
Matthias
5f309627ea
Update tests for Calmar ratio
2021-10-24 09:01:13 +02:00
Sam Germain
60478cb213
Add fill_leverage_brackets and get_max_leverage back in
2021-10-23 22:16:51 -06:00
Sam Germain
ef8b617eb2
gateio, ftx and binance all use same funding fee formula
2021-10-23 21:59:03 -06:00
Sam Germain
2a26c6fbed
Added backtesting methods back in
2021-10-23 21:33:37 -06:00
Sam Germain
ed91516f90
Changed future to swap
2021-10-23 14:10:09 -06:00
Sam Germain
1fa2600ee2
Added gateio to test__ccxt_config
2021-10-22 11:52:05 -06:00
Sam Germain
167f9aa8d9
Added gateio futures support, and added gatio to test_exchange exchanges variable
2021-10-22 11:52:05 -06:00
Sam Germain
aed22f7dad
Merge branch 'develop' into feat/short
2021-10-22 11:45:27 -06:00
Matthias
21141bdcb3
Merge pull request #5732 from samgermain/new-max-lev
...
New max lev
2021-10-22 19:30:58 +02:00
Matthias
78724e304e
Merge branch 'develop' into pr/theluxaz/5710
2021-10-21 17:46:39 +02:00
theluxaz
0e085298e9
Fixed test failures.
2021-10-21 17:25:38 +03:00
Matthias
96f99699e0
Merge pull request #4606 from rextea/add_days_breakdown_to_backtesting_summary
...
Add days breakdown table to backtesting
2021-10-21 13:56:30 +02:00
Matthias
e458c9867a
Styling fixes
2021-10-21 07:45:15 +02:00
Matthias
7b5346b984
Add test for breakdown-stats
2021-10-21 07:11:39 +02:00
Matthias
1267374c8a
Small fixes to tests
2021-10-20 19:21:38 +02:00
Matthias
028e5de935
Remove space after @ decorator in tests
2021-10-20 16:53:24 +02:00
Sam Germain
0329da1a57
updated get_max_leverage to use new ccxt unified property
2021-10-20 08:36:48 -06:00
Sam Germain
3fffc315ac
Merge branch 'develop' into feat/short
2021-10-20 08:11:53 -06:00
Matthias
79a91dc31b
Merge pull request #5567 from samgermain/lev-freqtradebot
...
Lev freqtradebot
2021-10-20 15:48:07 +02:00
Matthias
dd59b23b49
Merge pull request #5763 from samgermain/test-ccxt-config
...
Test ccxt config
2021-10-20 15:41:26 +02:00
Sam Germain
8c80fb46c8
test__ccxt_config
2021-10-20 05:33:09 -06:00