Closed catman77 closed 3 months ago
Sorry, bybit downloading works, but at binance errors occurs.
For the moment - i can't reproduce this. binance downloads perfectly fine for me on latest develop (including funding and mark data).
Can you please try to run the following command (timeframe and pair selection for speed - nobody wants to wait for hours for an error to pop up):
freqtrade download-data --exchange binance -t 1h 2h --trading-mode futures --timerange 20210101- --pairs ETH/USDT:USDT BTC/USDT:USDT STORJ/USDT:USDT
then - please provide me with the full output the bot outputs (not just where you think the error is).
Also - please provide the output of freqtrade show-config
. do a double-check on secrets - but they should be obfuscated by default (let me know if one is not).
Thanks for reply. Here is the requested info.
Error log from freqtrade download-data:
2024-08-14 11:45:03,602 - freqtrade.data.history.history_utils - ERROR - Failed to download history data for pair: "STORJ/USDT:USDT", timeframe: 8h.
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
Output of freqtrade show-config:
2024-08-14 11:47:35,664 - freqtrade - INFO - freqtrade 2024.8-dev-b3b67ea7a
2024-08-14 11:47:35,664 - freqtrade.configuration.load_config - INFO - Using config: config.json ...
2024-08-14 11:47:35,664 - freqtrade.loggers - INFO - Verbosity set to 0
2024-08-14 11:47:35,665 - freqtrade.configuration.configuration - INFO - Using user-data directory: /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data ...
2024-08-14 11:47:35,665 - freqtrade.configuration.configuration - INFO - Using data directory: /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance ...
2024-08-14 11:47:35,665 - freqtrade.exchange.check_exchange - INFO - Checking exchange...
2024-08-14 11:47:35,674 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team.
2024-08-14 11:47:35,674 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration.
2024-08-14 11:47:35,674 - freqtrade.configuration.config_validation - INFO - Validating configuration ...
Your combined configuration is:
{
"max_open_trades": 6,
"stake_currency": "USDT",
"stake_amount": "unlimited",
"tradable_balance_ratio": 1,
"fiat_display_currency": "USD",
"dry_run": true,
"dry_run_wallet": 100,
"cancel_open_orders_on_exit": false,
"trading_mode": "futures",
"margin_mode": "isolated",
"liquidation_buffer": 0.05,
"fee": 0.0002,
"unfilledtimeout": {
"entry": 10,
"exit": 10,
"exit_timeout_count": 0,
"unit": "minutes"
},
"entry_pricing": {
"price_side": "other",
"use_order_book": true,
"order_book_top": 1,
"price_last_balance": 0.0,
"check_depth_of_market": {
"enabled": false,
"bids_to_ask_delta": 1
}
},
"exit_pricing": {
"price_side": "other",
"use_order_book": true,
"order_book_top": 1
},
"exchange": {
"name": "binance",
"key": "REDACTED",
"secret": "REDACTED",
"_ft_has_params": {
"ohlcv_candle_limit": 2000
},
"ccxt_config": {},
"ccxt_async_config": {},
"pair_whitelist": [
"1000BONK/USDT:USDT",
"XRP/USDT:USDT",
"ADA/USDT:USDT",
"TRX/USDT:USDT",
"XLM/USDT:USDT",
"ONT/USDT:USDT"
],
"pair_blacklist": [
"BNB/.*"
],
"api_key": "REDACTED",
"apiKey": "REDACTED",
"password": "REDACTED",
"uid": "REDACTED",
"account_id": "REDACTED",
"accountId": "REDACTED",
"wallet_address": "REDACTED",
"walletAddress": "REDACTED",
"private_key": "REDACTED",
"privateKey": "REDACTED"
},
"freqai": {
"enabled": false,
"purge_old_models": 2,
"fit_live_predictions_candles": 500,
"train_period_days": 20,
"backtest_period_days": 7,
"live_retrain_hours": 0,
"identifier": "unique-id-regressor",
"feature_parameters": {
"include_timeframes": [
"5m",
"15m",
"1h"
],
"include_corr_pairlist": [],
"label_period_candles": 20,
"include_shifted_candles": 3,
"DI_threshold": 0.99,
"weight_factor": 0.99,
"use_DBSCAN_to_remove_outliers": false,
"principal_component_analysis": false,
"use_SVM_to_remove_outliers": true,
"indicator_periods_candles": [
5,
10,
20
],
"plot_feature_importances": 0
},
"data_split_parameters": {
"test_size": 0.33,
"random_state": 1
},
"model_training_parameters": {},
"rl_config": {
"train_cycles": 25,
"add_state_info": true,
"max_trade_duration_candles": 300,
"max_training_drawdown_pct": 0.02,
"cpu_count": 6,
"model_type": "PPO",
"policy_type": "MlpPolicy",
"model_reward_parameters": {
"rr": 1,
"profit_aim": 0.025
},
"model_kwargs": {
"hidden_dim": 512,
"dropout_percent": 0.2,
"n_layer": 1
}
}
},
"pairlists": [
{
"method": "StaticPairList"
}
],
"telegram": {
"enabled": false,
"token": "REDACTED",
"chat_id": "REDACTED"
},
"api_server": {
"enabled": true,
"listen_ip_address": "127.0.0.1",
"listen_port": 8080,
"verbosity": "error",
"enable_openapi": false,
"jwt_secret_key": "78058858b82e3636c84741cc495ace962bf957dea3cd7600d215924cf7ec9741",
"ws_token": "aGKct66Qak-aS81qHlVjeal9TghbkEA6fg",
"CORS_origins": [],
"username": "leolucard",
"password": "REDACTED"
},
"bot_name": "freqtrade",
"initial_state": "running",
"force_entry_enable": false,
"internals": {
"process_throttle_secs": 10
},
"config_files": [
"config.json"
]
}
Full bot output:
catman@catman-hp ~/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade 2024.7.2 freqtrade download-data --exchange binance -t 1h 2h --trading-mode futures --timerange 20210101- --pairs ETH/USDT:USDT BTC/USDT:USDT STORJ/USDT:USDT
2024-08-14 11:44:08,362 - freqtrade - INFO - freqtrade 2024.8-dev-b3b67ea7a
2024-08-14 11:44:08,362 - freqtrade.configuration.load_config - INFO - Using config: config.json ...
2024-08-14 11:44:08,363 - freqtrade.loggers - INFO - Verbosity set to 0
2024-08-14 11:44:08,363 - freqtrade.configuration.configuration - INFO - Parameter --timerange detected: 20210101- ...
2024-08-14 11:44:08,363 - freqtrade.configuration.configuration - INFO - Using exchange binance
2024-08-14 11:44:08,363 - freqtrade.configuration.configuration - INFO - Using user-data directory: /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data ...
2024-08-14 11:44:08,363 - freqtrade.configuration.configuration - INFO - Using data directory: /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance ...
2024-08-14 11:44:08,363 - freqtrade.configuration.configuration - INFO - Using pairs ['ETH/USDT:USDT', 'BTC/USDT:USDT', 'STORJ/USDT:USDT']
2024-08-14 11:44:08,364 - freqtrade.configuration.configuration - INFO - timeframes --timeframes: ['1h', '2h']
2024-08-14 11:44:08,364 - freqtrade.configuration.configuration - INFO - Detected --trading-mode: futures
2024-08-14 11:44:08,364 - freqtrade.configuration.configuration - INFO - Filter trades by timerange: 20210101-
2024-08-14 11:44:08,373 - freqtrade.exchange.check_exchange - INFO - Checking exchange...
2024-08-14 11:44:08,382 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team.
2024-08-14 11:44:08,382 - freqtrade.configuration.config_validation - INFO - Validating configuration ...
2024-08-14 11:44:08,385 - freqtrade.exchange.exchange - INFO - Instance is running with dry_run enabled
2024-08-14 11:44:08,385 - freqtrade.exchange.exchange - INFO - Using CCXT 4.2.42
2024-08-14 11:44:08,385 - freqtrade.exchange.exchange - INFO - Overriding exchange._ft_has with config params, result: {'stoploss_on_exchange': True, 'stop_price_param': 'stopPrice', 'stop_price_prop': 'stopPrice', 'order_time_in_force': ['GTC', 'FOK', 'IOC'], 'ohlcv_params': {}, 'ohlcv_candle_limit': 2000, 'ohlcv_has_history': True, 'ohlcv_partial_candle': True, 'ohlcv_require_since': False, 'ohlcv_volume_currency': 'base', 'tickers_have_quoteVolume': True, 'tickers_have_percentage': True, 'tickers_have_bid_ask': True, 'tickers_have_price': False, 'trades_limit': 1000, 'trades_pagination': 'id', 'trades_pagination_arg': 'fromId', 'trades_has_history': True, 'l2_limit_range': [5, 10, 20, 50, 100, 500, 1000], 'l2_limit_range_required': True, 'mark_ohlcv_price': 'mark', 'mark_ohlcv_timeframe': '8h', 'funding_fee_timeframe': '8h', 'ccxt_futures_name': 'swap', 'needs_trading_fees': False, 'order_props_in_contracts': ['amount', 'cost', 'filled', 'remaining'], 'marketOrderRequiresPrice': False, 'exchange_has_overrides': {}, 'ws.enabled': False, 'stoploss_order_types': {'limit': 'stop', 'market': 'stop_market'}, 'floor_leverage': True, 'stop_price_type_field': 'workingType', 'stop_price_type_value_mapping': {<PriceType.LAST: 'last'>: 'CONTRACT_PRICE', <PriceType.MARK: 'mark'>: 'MARK_PRICE'}}
2024-08-14 11:44:08,385 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'options': {'defaultType': 'swap'}}
2024-08-14 11:44:08,393 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'options': {'defaultType': 'swap'}}
2024-08-14 11:44:08,401 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance"
2024-08-14 11:44:08,401 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'...
2024-08-14 11:44:08,401 - freqtrade.exchange.exchange - INFO - Markets were not loaded. Loading them now..
2024-08-14 11:44:10,704 - freqtrade.data.history.history_utils - INFO - About to download pairs: ['ETH/USDT:USDT', 'BTC/USDT:USDT', 'STORJ/USDT:USDT'], intervals: ['1h', '2h'] to /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance
2024-08-14 11:44:10,765 - freqtrade.data.history.history_utils - INFO - Download history data for "ETH/USDT:USDT", 1h, futures and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:44:19,712 - freqtrade.exchange.exchange - INFO - Downloaded data for ETH/USDT:USDT with length 24000.
2024-08-14 11:44:19,778 - freqtrade.data.history.history_utils - INFO - Download history data for "ETH/USDT:USDT", 2h, futures and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:44:24,922 - freqtrade.exchange.exchange - INFO - Downloaded data for ETH/USDT:USDT with length 12000.
2024-08-14 11:44:24,949 - freqtrade.data.history.history_utils - INFO - Download history data for "ETH/USDT:USDT", 8h, funding_rate and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:44:25,728 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 4 times.
2024-08-14 11:44:26,059 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 3 times.
2024-08-14 11:44:26,387 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 2 times.
2024-08-14 11:44:26,719 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 1 times.
2024-08-14 11:44:27,049 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Giving up.
2024-08-14 11:44:27,051 - freqtrade.data.history.history_utils - ERROR - Failed to download history data for pair: "ETH/USDT:USDT", timeframe: 8h.
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/data/history/history_utils.py", line 276, in _download_pair_history
new_data = exchange.get_historic_ohlcv(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2260, in get_historic_ohlcv
pair, _, _, data, _ = self.loop.run_until_complete(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/binance.py", line 117, in _async_get_historic_ohlcv
x = await self._async_get_candle_history(pair, timeframe, candle_type, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 150, in wrapper
return await wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 150, in wrapper
return await wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 150, in wrapper
return await wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 1 more time]
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 153, in wrapper
raise ex
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for ETH/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
2024-08-14 11:44:27,110 - freqtrade.data.history.history_utils - INFO - Download history data for "ETH/USDT:USDT", 8h, mark and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:44:28,772 - freqtrade.exchange.exchange - INFO - Downloaded data for ETH/USDT:USDT with length 3000.
2024-08-14 11:44:28,808 - freqtrade.data.history.history_utils - INFO - Download history data for "BTC/USDT:USDT", 1h, futures and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:44:37,988 - freqtrade.exchange.exchange - INFO - Downloaded data for BTC/USDT:USDT with length 24000.
2024-08-14 11:44:38,071 - freqtrade.data.history.history_utils - INFO - Download history data for "BTC/USDT:USDT", 2h, futures and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:44:43,199 - freqtrade.exchange.exchange - INFO - Downloaded data for BTC/USDT:USDT with length 12000.
2024-08-14 11:44:43,228 - freqtrade.data.history.history_utils - INFO - Download history data for "BTC/USDT:USDT", 8h, funding_rate and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:44:44,009 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 4 times.
2024-08-14 11:44:44,336 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 3 times.
2024-08-14 11:44:44,671 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 2 times.
2024-08-14 11:44:45,004 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 1 times.
2024-08-14 11:44:45,342 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Giving up.
2024-08-14 11:44:45,344 - freqtrade.data.history.history_utils - ERROR - Failed to download history data for pair: "BTC/USDT:USDT", timeframe: 8h.
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/data/history/history_utils.py", line 276, in _download_pair_history
new_data = exchange.get_historic_ohlcv(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2260, in get_historic_ohlcv
pair, _, _, data, _ = self.loop.run_until_complete(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/binance.py", line 117, in _async_get_historic_ohlcv
x = await self._async_get_candle_history(pair, timeframe, candle_type, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 150, in wrapper
return await wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 150, in wrapper
return await wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 150, in wrapper
return await wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 1 more time]
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 153, in wrapper
raise ex
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for BTC/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit
can not greater than 1000"},"data":null,"subData":null,"params":null}
2024-08-14 11:44:45,382 - freqtrade.data.history.history_utils - INFO - Download history data for "BTC/USDT:USDT", 8h, mark and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:44:47,055 - freqtrade.exchange.exchange - INFO - Downloaded data for BTC/USDT:USDT with length 3000.
2024-08-14 11:44:47,090 - freqtrade.data.history.history_utils - INFO - Download history data for "STORJ/USDT:USDT", 1h, futures and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:44:56,245 - freqtrade.exchange.exchange - INFO - Downloaded data for STORJ/USDT:USDT with length 24000.
2024-08-14 11:44:56,323 - freqtrade.data.history.history_utils - INFO - Download history data for "STORJ/USDT:USDT", 2h, futures and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:45:01,463 - freqtrade.exchange.exchange - INFO - Downloaded data for STORJ/USDT:USDT with length 12000.
2024-08-14 11:45:01,495 - freqtrade.data.history.history_utils - INFO - Download history data for "STORJ/USDT:USDT", 8h, funding_rate and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:45:02,278 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 4 times.
2024-08-14 11:45:02,608 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 3 times.
2024-08-14 11:45:02,937 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 2 times.
2024-08-14 11:45:03,271 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Retrying still for 1 times.
2024-08-14 11:45:03,600 - freqtrade.exchange.common - WARNING - _async_get_candle_history() returned exception: "Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}". Giving up.
2024-08-14 11:45:03,602 - freqtrade.data.history.history_utils - ERROR - Failed to download history data for pair: "STORJ/USDT:USDT", timeframe: 8h.
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2599, in _async_get_candle_history
data = await self._fetch_funding_rate_history(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2648, in _fetch_funding_rate_history
data = await self._api_async.fetch_funding_rate_history(pair, since=since_ms, limit=limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 7750, in fetch_funding_rate_history
response = await self.fapiPublicGetFundingRate(self.extend(request, params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9537, in request
response = await self.fetch2(path, api, method, params, headers, body, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 781, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/base/exchange.py", line 243, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File "/home/catman/anaconda3/lib/python3.11/site-packages/ccxt/async_support/binance.py", line 9506, in handle_errors
raise ExchangeError(feedback)
ccxt.base.errors.ExchangeError: binance {"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/data/history/history_utils.py", line 276, in _download_pair_history
new_data = exchange.get_historic_ohlcv(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2260, in get_historic_ohlcv
pair, _, _, data, _ = self.loop.run_until_complete(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/anaconda3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/binance.py", line 117, in _async_get_historic_ohlcv
x = await self._async_get_candle_history(pair, timeframe, candle_type, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 150, in wrapper
return await wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 150, in wrapper
return await wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 150, in wrapper
return await wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 1 more time]
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 153, in wrapper
raise ex
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/common.py", line 126, in wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/freqtrade/exchange/exchange.py", line 2626, in _async_get_candle_history
raise TemporaryError(
freqtrade.exceptions.TemporaryError: Could not fetch historical candle (OHLCV) data for STORJ/USDT:USDT, 8h, funding_rate due to ExchangeError. Message: binance
{"status":"ERROR","type":"VALID","code":"000002","errorData":{"limit":"limit can not greater than 1000"},"data":null,"subData":null,"params":null}
2024-08-14 11:45:03,627 - freqtrade.data.history.history_utils - INFO - Download history data for "STORJ/USDT:USDT", 8h, mark and store in /home/catman/Yandex.Disk/PyAutoTrade/BT/Systems/RL/freqtrade/user_data/data/binance. From
2021-01-01T00:00:00 to now
2024-08-14 11:45:05,311 - freqtrade.exchange.exchange - INFO - Downloaded data for STORJ/USDT:USDT with length 3000.
Timeframe ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4/4 100% • 0:00:18 • 0:00:00
Downloading STORJ/USDT:USDT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3/3 100% • 0:00:54 • 0:00:00
"_ft_has_params": { "ohlcv_candle_limit": 2000 },
Remove this section from your config - and you'll see your error is gone.
_ft_has_params
is an (intentionally) undocumented configuration flag - as it should only be used in very specific instances.
binance's correct limit is 1000 (which is also what we have in the bot itself). Some endpoints MAY support a higher limit (though they'll still only provide 1k candles) - or ccxt will trim the limit to 1000.
You should also delete all data you downloaded based on this configuration - if freqtrade downloads with a wrong assumption, you'll be missing data (in your case, you'll be missing 1000 candles every 1000 candles - so if you look at it over a longer period of time - you'll get tons of holes in your data.
There's nothing to do for us here - remove the faulty configuration settings - and you'll see that it'll work.
Thanks!
Describe your environment
Describe the problem:
Funding rate data is not downloaded from the binance and bybit exchanges.
Steps to reproduce:
freqtrade download-data --exchange binance --trading-mode futures --timerange 20220101- --data-format-ohlcv feather --pairs ".*USDT" -t 1m 5m 15m 30m 1h 2h 4h 1d
Observed Results:
Relevant code exceptions or logs