Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to analyze candle (OHLCV) data for pair DGB/USDT: input_arrays parameter missing required data key: ema1 #88

Closed
LucianPopaLVP opened this issue Aug 19, 2021 · 15 comments

Comments

@LucianPopaLVP
Copy link

Hi there, ive been running this strat live since sunday...everything worked fine until few hours ago when my console started spamming and I am getting this error and can not find in the strategy a ema1 that can cause it , what would be the problem?

2021-08-19 11:16:40,594 - freqtrade.strategy.interface - WARNING - Unable to analyze candle (OHLCV) data for pair DGB/USDT: input_arrays parameter missing required data key: ema1
2021-08-19 11:16:40,598 - freqtrade.strategy.strategy_wrapper - ERROR - Unexpected error input_arrays parameter missing required data key: ema1 calling <bound method IStrategy._analyze_ticker_internal of <strategy.strategy object at 0x7fdc0e631a30>>
Traceback (most recent call last):
File "/home/lvp/freqtrade/freqtrade/strategy/strategy_wrapper.py", line 17, in wrapper
return f(*args, **kwargs)
File "/home/lvp/freqtrade/freqtrade/strategy/interface.py", line 417, in _analyze_ticker_internal
dataframe = self.analyze_ticker(dataframe, metadata)
File "/home/lvp/freqtrade/freqtrade/strategy/interface.py", line 396, in analyze_ticker
dataframe = self.advise_indicators(dataframe, metadata)
File "/home/lvp/freqtrade/freqtrade/strategy/interface.py", line 750, in advise_indicators
return self.populate_indicators(dataframe, metadata)
File "/home/lvp/freqtrade/user_data/strategies/strategy.py", line 2915, in populate_indicators
informative_1h = self.informative_1h_indicators(dataframe, metadata)
File "/home/lvp/freqtrade/user_data/strategies/strategy.py", line 2593, in informative_1h_indicators
informative_1h['ema_12'] = ta.EMA(informative_1h, timeperiod=12)
File "talib/_abstract.pxi", line 398, in talib._ta_lib.Function.call
File "talib/_abstract.pxi", line 270, in talib._ta_lib.Function.set_function_args
File "talib/_abstract.pxi", line 221, in talib._ta_lib.Function.set_input_arrays
Exception: input_arrays parameter missing required data key: ema1
2021-08-19 11:16:40,598 - freqtrade.strategy.interface - WARNING - Unable to analyze candle (OHLCV) data for pair ICX/USDT: input_arrays parameter missing required data key: ema1
2021-08-19 11:16:40,602 - freqtrade.strategy.strategy_wrapper - ERROR - Unexpected error input_arrays parameter missing required data key: ema1 calling <bound method IStrategy._analyze_ticker_internal of <strategy.strategy object at 0x7fdc0e631a30>>
Traceback (most recent call last):

haven't made any chances until today when started spamming.
Reinstalled all from fresh and it keeps spamming,
Unable to analyze candle OHLCV data for pairs: imputs are all NAN
ERROR - Unexpected error inputs are all NAN calling <bound method Istrategy._analyze_ticker_internal of<infinitynext.infinitynext object at 0x7fef705febb0>>

Do not know /understand what is happening....its showing this for all the pairs in the dynamic list i have set in the config. :(
Please help!

@nakapola
Copy link
Contributor

Look like DDOS protection from exchange. Increase your rate limit would help in long terms

@LucianPopaLVP
Copy link
Author

Look like DDOS protection from exchange. Increase your rate limit would help in long terms

Translate please? :)) what limit should i increase?

@jurekl
Copy link
Contributor

jurekl commented Aug 19, 2021

"exchange": {
    "name": "binance",
    "key": "",
    "secret": "",
    "ccxt_config": {"enableRateLimit": true},
    "ccxt_async_config": {
        "enableRateLimit": true,
        "rateLimit": 200  <=========== HERE !!!
    },

@LucianPopaLVP
Copy link
Author

"exchange": {
    "name": "binance",
    "key": "",
    "secret": "",
    "ccxt_config": {"enableRateLimit": true},
    "ccxt_async_config": {
        "enableRateLimit": true,
        "rateLimit": 200  <=========== HERE !!!
    },

no go. i am still getting the error. :(

@HenriPiot-dev
Copy link

I got the same error from today, my bot is running for 6 days !
This Is a log exemple :
freqtrade.strategy.interface: WARNING - Empty candle (OHLCV) data for pair OMG/USDT
My rate limit is set to 300

@LucianPopaLVP
Copy link
Author

I got the same error from today, my bot is running for 6 days !
This Is a log exemple :
freqtrade.strategy.interface: WARNING - Empty candle (OHLCV) data for pair OMG/USDT
My rate limit is set to 300

don't know what is the problem....the error came back today, after I've done nothing in the first place to fix it :( just restarted everything and worked in that day, but doesn't;t work today .

@eSeR1805
Copy link
Collaborator

eSeR1805 commented Aug 25, 2021

Are you using docker or native install?
what does this output?
curl -s -D - "https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1h"

@LucianPopaLVP
Copy link
Author

Are you using docker or native install?
what does this output?
curl -s -D - "https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1h"

(.env) lvp@lvp-VirtualBox:~/freqtrade$ curl -s -D - "https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval=1h"

Command 'curl' not found, but can be installed with:

sudo snap install curl # version 7.78.0, or
sudo apt install curl # version 7.68.0-1ubuntu2.6

See 'snap info curl' for additional versions.

should I just go ahead and install this?

@topscoder
Copy link

Had same issue here. Fixed by installing pandas-ta:

pip install pandas-ta

@eSeR1805
Copy link
Collaborator

eSeR1805 commented Aug 31, 2021

should I just go ahead and install this?

Yes. Also tell us if you're using docker or not.

@LucianPopaLVP
Copy link
Author

should I just go ahead and install this?

Yes. Also tell us if you're using docker or not.

not using docker, just native install.

@moemelek
Copy link

moemelek commented Sep 1, 2021

I had similar issue. Might have found the reason.

Initial error, and this was for most if not all coins:
freqtrade.strategy.interface - WARNING - Unable to analyze candle (OHLCV) data for pair CELR/EUR: input_arrays parameter missing required data key: ema1

By suggestion from @topscoder I did "pip install pandas-ta".

Now log just mentioned one coin:
freqtrade.strategy.interface - WARNING - Unable to analyze candle (OHLCV) data for pair CELR/EUR: inputs are all NaN

I found out that on my exchange (Bitvavo) CELR was blocked from trading. So api-request must have reported NaN witch must have threw off the script. I blacklisted this coin and now it appears to be working.

@LucianPopaLVP
Copy link
Author

Had same issue here. Fixed by installing pandas-ta:

pip install pandas-ta

didn't help! already had that library installed :(

@Gjuju
Copy link
Contributor

Gjuju commented Sep 7, 2021

Try with pandas_ta instead of pandas-ta

@eSeR1805
Copy link
Collaborator

@LucianPopaLVP is this still a problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants