Trading bot for Binance exchange using EMA cross strategy on 1D, 4h, and 1h timeframes. Analyzes 4yrs of coin prices to select profitable EMA cross. Auto-identifies accumulation and bullish phases. Has web dashboard and Telegram alerts.
Arrived on the dashboard I get these, do you know where it could come from ? :
"TypeError: _TypedDictMeta.new() got an unexpected keyword argument 'closed'
Traceback:
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling
result = func()
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 579, in code_to_exec
exec(code, module.dict)
File "C:\Program Files\BEC\dashboard.py", line 10, in <module>
import altair as alt
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\altair\__init__.py", line 650, in <module>
from altair.vegalite import *
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\altair\vegalite\__init__.py", line 2, in <module>
from .v5 import *
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\altair\vegalite\v5\__init__.py", line 4, in <module>
from .api import *
File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\altair\vegalite\v5\api.py", line 618, in <module>
class _ConditionClosed(TypedDict, closed=True, total=False): # type: ignore[call-arg]
...<6 lines>...
value: Any"
Hi, that seems to be related with altair version or python version.
Check if youre using the altair version 4.2.2 of the requirements.txt file. If so, try to downgrade to python 3.12.
Arrived on the dashboard I get these, do you know where it could come from ? :
"TypeError: _TypedDictMeta.new() got an unexpected keyword argument 'closed' Traceback: File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling result = func() File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 579, in code_to_exec exec(code, module.dict)