[Bug] Python SDK `/eod` endpoint missing date parameter
Closed this issue · 1 comments
rku-carta commented
Describe the bug
According to the API documentation, the /eod
endpoint should support a date
parameter/specification. However, in the latest version of the Python SDK date
is not supported parameter on the /eod
endpoint.
To Reproduce
Run the following Python code
from twelvedata.client import TDClient
client = TDClient(apikey=API_KEY)
client.eod(**{'symbol': "AAPL", 'date': "2024-08-08"}).as_json()
Expected behavior
Expected response:
{'symbol': 'AAPL',
'exchange': 'NASDAQ',
'mic_code': 'XNGS',
'currency': 'USD',
'datetime': '2024-08-08',
'timestamp': 1723147199,
'close': '213.34000'}
Actual response:
TypeError: EODEndpoint.__init__() got an unexpected keyword argument 'date'
Desktop (please complete the following information):
- OS: macOS Sonoma 14.5
- Browser: Chrome
- Version: 126
- Python version: 3.11.8
- TwelveData SDK version: 1.2.20
sgacode commented
Fixed in version 1.2.21
Please, update twelvedata package using pip install -U twelvedata