Commit Graph

1135 Commits

Author SHA1 Message Date
Matthias
7209b2e71a Merge branch 'develop' into ci/ccxt.pro 2024-07-03 13:13:13 +02:00
Joe Schr
b2bcac8447 Merge remote-tracking branch 'upstream/develop' into feature/fetch-public-trades 2024-06-27 15:23:12 +02:00
Matthias
776a8e43cd Add trades_has_history attribute 2024-06-20 18:24:43 +02:00
Joe Schr
ffda564f05 Merge remote-tracking branch 'upstream/develop' into feature/fetch-public-trades 2024-06-19 20:38:50 +02:00
Matthias
b43d578bb0 Merge branch 'develop' into ci/ccxt.pro 2024-06-18 20:34:18 +02:00
Matthias
a9ebefdc37 Prevent warning on __del__ during tests 2024-06-16 09:56:03 +02:00
Matthias
31219299d2 Don't fail trades loop if one pair fails 2024-06-06 18:05:45 +02:00
Matthias
50bf770351 Merge branch 'develop' into feature/fetch-public-trades 2024-06-04 19:49:27 +02:00
Matthias
0f9335d242 Merge branch 'develop' into ci/ccxt.pro 2024-06-04 19:45:22 +02:00
Matthias
133dc1d343 api_async is mandatory ... 2024-06-04 19:42:04 +02:00
Matthias
a2251d045c Only load markets once
Increases startup speed by 6s on binance (from 9 to 3s).
2024-06-04 19:01:00 +02:00
Matthias
5a08d1acf9 combine _load_markets and reload_markets 2024-06-04 07:21:42 +02:00
Matthias
12852438a5 Call connection at intervals 2024-05-31 06:52:11 +02:00
Matthias
7e736a34dd Reduce ccxt.pro verbosity 2024-05-31 06:40:14 +02:00
Matthias
cabd36253e Reduce level of "reuse watch result" . . . 2024-05-31 06:40:14 +02:00
Matthias
212ac2073e Don't multiply klines_last_refresh
with 1000 - it's already in ms
2024-05-31 06:40:14 +02:00
Matthias
d5d818be8b Remove unused import 2024-05-31 06:40:14 +02:00
Matthias
554d4134ff Add humanized date to debug log 2024-05-31 06:40:14 +02:00
Matthias
80c7d4eb5f Improve debug logging 2024-05-31 06:40:14 +02:00
Matthias
d3962a7c07 Remove websocket init for non-trade modes 2024-05-31 06:40:14 +02:00
Matthias
f324af938a Improve WS logic to assume a candle is complete if time rolled over 2024-05-31 06:40:14 +02:00
Matthias
b5dc54072e Ensure exchange objects are not undefined 2024-05-31 06:40:14 +02:00
Matthias
c0c775114e Slightly improved loggign 2024-05-31 06:40:14 +02:00
Matthias
137ddb2ec3 Require opt-in for ws enablement to allow slow rollout 2024-05-31 06:40:14 +02:00
Matthias
f9ce0bb9ab Improve exchange formatting 2024-05-31 06:40:14 +02:00
Matthias
55bd7db022 Don't forget to close WS session 2024-05-31 06:40:14 +02:00
Matthias
4832c10973 Only import ccxt.async when necessary 2024-05-31 06:40:14 +02:00
Matthias
67a6c11f6d No longer import ccxt.async_support 2024-05-31 06:40:14 +02:00
Matthias
55ed505f94 Update exchange_ws get_ohlcv logic 2024-05-31 06:40:14 +02:00
Matthias
fcaee33706 Improve log msg 2024-05-31 06:40:14 +02:00
Matthias
e8b4bcc65d use default argument 2024-05-31 06:40:14 +02:00
Matthias
8a00bf3188 Use proper typehint 2024-05-31 06:40:14 +02:00
Matthias
aef0324aa7 set markets for ws exchange on reload 2024-05-31 06:40:14 +02:00
Matthias
f4f8b910fe Improve exchange_ws terminology 2024-05-31 06:40:14 +02:00
Matthias
18dabd519a ccxt.pro - move get_klines to ws_exchange 2024-05-31 06:40:13 +02:00
Matthias
2fd5b4a6e1 Use websocket results 2024-05-31 06:40:13 +02:00
Matthias
bd494ed67a Cleanup exchange changes 2024-05-31 06:40:13 +02:00
Matthias
3468edddf6 Add enable_ws config setting 2024-05-31 06:40:13 +02:00
Matthias
51890f80c4 Add parameter for ws enablin 2024-05-31 06:40:13 +02:00
Matthias
34ccada909 Tests with seperate thread 2024-05-31 06:40:13 +02:00
Matthias
e985c1890b Implement basic ccxt.pro to test 2024-05-31 06:40:13 +02:00
Matthias
ad7b78ec93 Update exchange init to use .pro if available 2024-05-31 06:40:13 +02:00
Matthias
c9b1071baa Use api_async for exchange_has 2024-05-31 06:40:13 +02:00
Joe Schr
5dcf75f648 exchange: replace OperationalException with logger.error message 2024-05-29 19:52:37 +02:00
Joe Schr
4629362a60 Fixing merge error 2024-05-29 19:46:27 +02:00
Joe Schr
bf3eeeb0fc Use .exception instead of .error for trace logging 2024-05-29 19:46:27 +02:00
Joe Schr
32f931ca25 Revert "refresh_latest_trades: remove "-cached" from trades pair files"
This reverts commit 839827c0d7.
2024-05-29 19:46:27 +02:00
Matthias
d0eb55a0be Small type fixes 2024-05-18 16:45:49 +02:00
Matthias
a92178dd60 load_cached_leverage_tiers should allow a remote cache period 2024-05-16 19:11:51 +02:00
Joe Schr
0460ce45ff ruff format: exchange/trades_load 2024-05-16 14:28:30 +02:00
Joe Schr
f99e8f18bc refresh_latest_trades: removes TODO 2024-05-16 14:10:08 +02:00
Joe Schr
839827c0d7 refresh_latest_trades: remove "-cached" from trades pair files 2024-05-16 14:08:02 +02:00
Joe Schr
a56faf503b ruff format: orderflow / public trades 2024-05-15 17:09:32 +02:00
Joe Schr
b9035da981 Merge remote-tracking branch 'upstream/develop' into feature/fetch-public-trades 2024-05-15 14:43:00 +02:00
Joe Schr
dd432ffbde cleanup ruff and isort errors 2024-05-14 17:28:07 +02:00
Matthias
a9732c6195 Fix odd formatting by ruff format 2024-05-13 07:10:25 +02:00
Matthias
e4e8c3967c ruff format: exchange class 2024-05-13 07:10:25 +02:00
Matthias
a8eabd0b2e Update remaining files with new import sorting 2024-05-13 07:10:24 +02:00
Joe Schr
56b07386ae fix _now_is_time_to_refresh_trades so it checks for latest fetched trades 2024-05-08 15:12:42 +02:00
Matthias
3f9019a1ad Don't use coro directly 2024-05-05 19:55:02 +02:00
Matthias
cc534c5000 switch from arrow to humanize 2024-04-21 15:29:16 +02:00
Matthias
0c99ff7f66 Fix more default arg usages 2024-04-20 09:26:50 +02:00
Matthias
a078088ea3 Fix some more default argument usage in exchange classes 2024-04-20 09:24:51 +02:00
Matthias
31f6030c67 Reduce some mutable default argument usage 2024-04-20 09:22:28 +02:00
Christian Clauss
99b4767bf4 Fix typos discovered by codespell 2024-04-18 22:51:25 +02:00
Matthias
65654a4a44 Update ccxt exception handlers
OperationFailed is the new NetworkError

closes #10071
2024-04-13 11:12:10 +02:00
Matthias
e0f1b1e48e Attempt to reduce diff as much as possible 2024-04-05 06:53:48 +02:00
Matthias
843c68b072 Don't use noqa. 2024-04-05 06:41:46 +02:00
Matthias
63ac183e91 Merge branch 'develop' into feature/fetch-public-trades 2024-04-05 06:35:35 +02:00
Joe Schr
53702bfdfe fix: make until non-optional 2024-03-28 15:35:19 +01:00
Joe Schr
d226e7054c fix: remove unused stop_on_from_id 2024-03-28 15:26:28 +01:00
Matthias
7d6d3d38f7
Merge pull request #9975 from freqtrade/feat/configError
exception ConfigurationError
2024-03-21 08:38:45 +01:00
Matthias
cc7d341afc Add overrides for Exchange Support 2024-03-21 06:31:34 +01:00
Matthias
4a097bd644 More usages for ConfigurationError 2024-03-19 07:13:17 +01:00
Matthias
b5307f8281 Fix bug caused by any typing 2024-03-16 17:19:01 +01:00
Matthias
21bca95b6a Group things logically in exchange class 2024-03-16 17:05:18 +01:00
Matthias
86fe765180 Improved naming on max_trades 2024-03-16 17:01:27 +01:00
Matthias
88e25df78c Merge branch 'develop' into feature/fetch-public-trades 2024-03-16 16:34:57 +01:00
Matthias
0f3d538f6c Avoid duplicate pandas imports 2024-03-16 16:26:17 +01:00
Matthias
9a72003c74
Merge pull request #9878 from TheJoeSchr/chore/extract-timeframe-to-xyz-from-exchange-utils
chore: extract `timeframe_to_*` functions into `exchange_utils_timeframe.py`
2024-03-15 20:01:43 +01:00
Joe Schr
c12e203054 Merge remote-tracking branch 'upstream/develop' into feature/fetch-public-trades 2024-03-11 12:29:00 +01:00
Matthias
518b6eb565 use dt_ts to simplify exchange date math 2024-03-10 19:31:43 +01:00
Joe Schr
6c1d70df89 Merge remote-tracking branch 'upstream/develop' into feature/fetch-public-trades 2024-03-05 17:29:24 +01:00
Matthias
cdfeae9f90 Update merge to "left" to avoid creating non-existing mark candles 2024-02-29 07:31:22 +01:00
Matthias
e988995d71 Handle NaN funding fees
closes #9831
2024-02-29 07:22:47 +01:00
Joe Schr
b55105ec82 chore: adjust timeframe_to_* imports accordingly 2024-02-27 10:42:29 +01:00
Matthias
426e7c48e4 Update typehint for candle_cache 2024-02-26 13:54:19 +01:00
Matthias
7db2367de9 Improve ohlcv pair cache with since_ms
avoids some rare bugs in more complex configurations.
2024-02-26 13:54:19 +01:00
Matthias
392d5ae09a Use set to reduce iterations 2024-02-26 13:54:19 +01:00
Matthias
322a3a3bbd Add fetch_order_emulated to support exchanges without proper fetch_order method 2024-02-26 13:54:19 +01:00
Matthias
0f4bffca9c Remove unused import 2024-02-26 13:54:19 +01:00
Matthias
671426540e Refactor ohlcv caching to exchange class 2024-02-26 13:54:16 +01:00
Matthias
c491c2a8ee Adjust for ccxt exception hierarchy change
caused by https://github.com/ccxt/ccxt/pull/21035
2024-02-26 13:53:10 +01:00
Matthias
db83b0cdb0 Update typehint for candle_cache 2024-02-22 07:09:47 +01:00
Matthias
4cfd5d004e Improve ohlcv pair cache with since_ms
avoids some rare bugs in more complex configurations.
2024-02-22 06:38:28 +01:00
Matthias
4e87169a0c Use set to reduce iterations 2024-02-22 06:28:54 +01:00
Matthias
65af7750e6 Add fetch_order_emulated to support exchanges without proper fetch_order method 2024-02-20 06:21:03 +01:00
Matthias
51a6a7b632
Merge pull request #9821 from freqtrade/feat/volumepairlist_caching
improve volumepairlist "advanced filter mode" caching
2024-02-18 11:46:31 +01:00
Matthias
ebd439cdd1 Remove unused import 2024-02-17 16:41:10 +01:00
Matthias
bcfe7ef547 Refactor ohlcv caching to exchange class 2024-02-17 16:26:44 +01:00