Commit Graph

10563 Commits

Author SHA1 Message Date
Matthias b5f55c9b14 Improve type safety in backtesting 2023-03-01 20:32:32 +01:00
Matthias 7c09c01788 Add some more typehints 2023-03-01 20:32:32 +01:00
Matthias 0f914cf2bd Use Mapped for LocalTrade
this won't initialize sqlalchemy, as the base class is not inheriting from sqlalchemy.
2023-03-01 20:32:32 +01:00
Matthias d175ab495b Move SessionType to base module 2023-03-01 20:32:32 +01:00
Matthias 764001a4c2 Don't reuse variable 2023-03-01 20:32:32 +01:00
Matthias b65cff0adc Update "Query" type 2023-03-01 20:32:32 +01:00
Matthias db4f4498dc Experimentally type query property ... 2023-03-01 20:32:32 +01:00
Matthias c2c039151c Improve typesafety around trade object 2023-03-01 20:32:32 +01:00
Matthias 8765e3a4d6 Fix some Type issues 2023-03-01 20:32:32 +01:00
Matthias f6b3998bbd Fix backtesting type incompatibilities 2023-03-01 20:32:32 +01:00
Matthias 0691bbaad9 Update some db types 2023-03-01 20:32:32 +01:00
Matthias 101d9ab87f Improvements - tests runnable again 2023-03-01 20:32:32 +01:00
Matthias 65a5cf64df Re-type session 2023-03-01 20:32:32 +01:00
Matthias 608a7c2d38 Add safe_close_rate 2023-03-01 20:32:31 +01:00
Matthias e59eaf33e0 Update _session to session 2023-03-01 20:32:31 +01:00
Matthias 47b66f3220 More fun with types 2023-03-01 20:32:31 +01:00
Matthias 491f49388c "Mapped" for trade_model 2023-03-01 20:32:31 +01:00
Matthias bb116456a9 Update Types for Order object 2023-03-01 20:32:31 +01:00
Matthias 13b1a3e737 Properly pairlock columns using mapped 2023-03-01 20:32:31 +01:00
Matthias 98791752a9 Update TradeModels to mapped_column 2023-03-01 20:32:31 +01:00
Matthias 0bd9b00132 Pairlock to mappedColumn 2023-03-01 20:32:31 +01:00
Matthias 39a658eac2 Update DeclarativeBase 2023-03-01 20:32:31 +01:00
Matthias 3c019e0e16 tentative augmented typing of Trade object 2023-03-01 20:32:31 +01:00
Matthias 41e27ba621 Enhance some type info 2023-03-01 20:32:31 +01:00
Matthias 9d455f58b1 Improve some trade model Types 2023-03-01 20:32:31 +01:00
Matthias 829e10ff87 Improve Type for models.py 2023-03-01 20:32:31 +01:00
Matthias b62830031f Dummy-type query objects 2023-03-01 20:32:31 +01:00
Matthias a553a9923a Update types for pairlock 2023-03-01 20:32:31 +01:00
Matthias 756c284ecd
Merge pull request #8225 from freqtrade/ruff2
Ruff - add PTH rule and subsequent changes
2023-03-01 20:27:06 +01:00
Matthias d1b2e38ae9 if a stoploss order exists, always allow canceling that 2023-02-28 20:39:17 +01:00
Matthias dd10dec73d Improve variable wording 2023-02-28 20:31:02 +01:00
Matthias f822f1795a Reduce `/status` verbosity 2023-02-28 19:54:56 +01:00
Matthias 386915378b Improve /status message (show Total profit) 2023-02-28 19:54:47 +01:00
Matthias 0707e70183 Remove deprecated current_profit from api responses 2023-02-28 18:20:37 +01:00
Matthias bebee15d10 Improve TradeSchema readability 2023-02-28 18:20:36 +01:00
Matthias 5660036f47
Merge pull request #8245 from eSAMTrade/bugfix-8244
Fix last_process related bug in RPC.health (BUG-#8231)
2023-02-28 18:18:53 +01:00
Matthias 244fd0e731
Merge pull request #8184 from LangLazy/feature
Feature market direction
2023-02-28 17:22:31 +01:00
Rahul 39331b59ed Fixed issues raised in PR 2023-02-27 22:51:22 +00:00
Matthias 65d1598a90 Show absolute profit in /status command 2023-02-27 21:17:02 +01:00
Matthias 46b987042b Include realized_profit in api output 2023-02-27 20:47:07 +01:00
Matthias 75d1dd2793 Properly round Stake currencies in telegram message 2023-02-27 20:47:07 +01:00
Matthias e5c68661fe Simplify code line wrapping 2023-02-27 19:57:28 +01:00
Matthias e482feed7d Further improve behavior for telegram /status with stop on exchange 2023-02-27 19:40:02 +01:00
Matthias 87fe4108a2 Fix order numeration to also work with stoploss on exchange 2023-02-27 18:24:19 +01:00
ASU bcd416c83d Removed unresolved FreqTrade typehint 2023-02-27 16:18:24 +02:00
ASU 1d5608d627 Fix last_process related bug in RPC.health 2023-02-27 12:14:38 +02:00
Matthias 5b0bc5bbc5 Don't "fix" dry-run kucoin orders
closes #8229
2023-02-26 16:17:41 +01:00
Matthias 66c2e145cb
Merge pull request #7975 from freqtrade/improve-freqai-gap-handling
handle data gaps between FreqAI and DP better
2023-02-26 15:26:46 +01:00
Matthias d3d7cb1b14
Merge pull request #8216 from freqtrade/close-rl-env
Close training and eval environments in ReinforcementLearner_multiproc
2023-02-26 15:20:32 +01:00
Matthias e88bb4e05c Revert small change - otherwise the data is never updated. 2023-02-26 15:09:25 +01:00
Matthias 305eda74e2 Enable Complexity for ruff 2023-02-25 20:50:26 +01:00
Matthias 26315b6bc2 add PTH ruff selection 2023-02-25 17:17:05 +01:00
Matthias d014e4590e use Path.open() instead of open 2023-02-25 17:15:54 +01:00
Matthias c8a4a773ee Fix _pairs_last_refresh_time storing the wrong date
Depending on the drop_incomplete settings, this can lead to implicit bugs
2023-02-25 16:18:46 +01:00
Matthias ff3aa7c1a9 Bump Version to 2023.3.dev 2023-02-25 16:18:33 +01:00
Matthias be352ae014 Update more enums 2023-02-25 15:49:45 +01:00
Matthias 563742f13c Fix enum behavior for python 3.11
closes #8221
closes #8217
2023-02-25 15:49:45 +01:00
Matthias dc2cfee056 Don't request sorted candles from HitBTC.
Apparently hitBTC cannot properly handle this anymore.

closes #8214
2023-02-25 13:49:16 +01:00
Matthias 3471f5204b Don't reuse variable 2023-02-24 14:34:41 +01:00
Matthias 521025037d
Merge pull request #8203 from freqtrade/add-bufer-train-data-candles
Add buffer_train_data_candles feature
2023-02-24 13:25:18 +01:00
Matthias ac2a2512ef
Merge pull request #8210 from freqtrade/clean-data-drawer
Allow user to control number of historical model files
2023-02-24 13:19:38 +01:00
robcaulk cb80d7c26f close the multi_proc env before creating new ones in an attempt to avoid increasing processes 2023-02-24 11:19:54 +01:00
Matthias 34c42be74f Fix minor stylistic errors 2023-02-23 20:06:10 +01:00
Matthias 659140e190 Add bt-error to UI backtest method. 2023-02-23 20:06:10 +01:00
Matthias 63e5d33028 Better handle backtest errors 2023-02-23 20:06:10 +01:00
Joe Schr 7d906fd4c2 refactor(if-gate): use temp variable instead of if-gate 2023-02-23 10:58:43 +01:00
robcaulk b8f011a2ab give users ability to decide how many models to keep in dry/live 2023-02-22 22:27:56 +01:00
robcaulk 9633081c31 remove remnants of follower, clean data-drawer, improve doc 2023-02-22 22:01:41 +01:00
Matthias 0f878daa98 Remove some too generic noqa statements 2023-02-22 19:56:32 +01:00
Matthias 01d51aa979 Add necesary noqa statements 2023-02-22 19:56:32 +01:00
Matthias f8fa5bd969 Fix gone wrong noqa ... 2023-02-22 19:56:32 +01:00
Matthias 18bbfa10e5 Reduce amount of variables for API backtesting 2023-02-22 19:56:32 +01:00
Matthias ff1258fd20 Better handle random UI backtest errors 2023-02-22 19:56:32 +01:00
Alexander Malysh 070a7efd73
* fixed filename in model_exists 2023-02-22 14:52:20 +01:00
robcaulk 986bc63e54 raise OperationalException if latest historical data candle is older than earliest dataprovider candle 2023-02-21 21:23:58 +01:00
robcaulk 2b5c11c7b4 allow users to buffer train data with buffer_train_data_candles parameter 2023-02-21 21:08:34 +01:00
robcaulk fd4e27d889 remove populate_any_indicators 2023-02-21 14:22:40 +01:00
Rahul Gudise 3033e27466 Added documentation for new telegram command 2023-02-20 15:53:29 -05:00
Achmad Fathoni 789c867c8f Fix outdated systemd related exception text. 2023-02-20 16:30:23 +07:00
Matthias e9c64c5839 Update dependency to cysystemd
closes #8187
2023-02-19 19:30:27 +01:00
Rahul 8927a92eaf fixed lint issue 2023-02-19 16:11:21 +00:00
Matthias b0ec35d526
Merge pull request #7904 from freqtrade/feat/shuffle_after_split
add shuffle_after_split option
2023-02-19 15:03:04 +01:00
Rahul 5fb539190d addressed some issues mentioned in PR 2023-02-18 23:50:02 +00:00
Matthias f89b63b0c5 Fix dry-run stoploss orders filling "in place" after restart. 2023-02-18 19:25:11 +01:00
Rahul 72af1912ca added new text 2023-02-17 22:01:00 +00:00
Matthias 31c7b3e136 Update binance leverage tiers 2023-02-17 06:37:03 +01:00
Matthias 22700527ac Convert limit orders to market orders if they cross a threshold
closes #7786
2023-02-17 06:37:03 +01:00
Matthias 9600039686 Update dry-run fill method naming 2023-02-17 06:37:03 +01:00
Rahul 1a74ede126 Merge branch 'feature' of github.com:LangLazy/freqtrade into feature 2023-02-16 17:54:20 -05:00
Rahul Gudise 07c886a2b1
Merge branch 'freqtrade:develop' into feature 2023-02-16 17:54:14 -05:00
Rahul b73089deb8 fixed a test 2023-02-16 17:51:50 -05:00
robcaulk be85ef2707 add documentation for shuffle_after_split, add to constants 2023-02-16 18:50:11 +01:00
robcaulk b6a741b421 merge develop into feat/shuffle_after_split 2023-02-16 18:46:01 +01:00
robcaulk 36d65e00f9 generalize model_exists() for RL and Keras 2023-02-16 18:33:40 +01:00
Matthias 8ef110cc5f Rename ob variable to orderbook 2023-02-16 06:38:58 +01:00
Matthias de7d274fcf Pass orderbook to dry-run fill logic 2023-02-16 06:38:58 +01:00
Matthias 7c10921564 Improve Orderbook typing to align for diff. exchanges 2023-02-16 06:38:58 +01:00
Matthias ecff21ac21 type Orderbook 2023-02-15 07:01:36 +01:00
Matthias 3397e47ccf Rename stoploss() to create_stoploss() 2023-02-14 20:42:08 +01:00
Matthias 6e55a873b3 Rename edge.stoploss to get_stoploss
this will make it clear that it's different from
2023-02-14 07:18:11 +01:00