The following code stop working:
import eikon as ek
import pandas as pd
ek_date = date.today()
brent = ek.get_timeseries(["LCOc1"], start_date = str(ek_date) , end_date = str(ek_date))['CLOSE'].values
Now I have the following error:
EikonError: Error code 404 | Client Error: <!DOCTYPE html>
<pre>Cannot POST /api/v1/data</pre>
Could you help ?
404 error means "Not found".
As you code was working, many of the common causes of 404 error do not apply in your case, the code is valid, your Eikon user is permissioned for API access, the cause is most likely within environment.
I would first review as per Eikon Data API(Python) Troubleshooting article, and if no obvious discrepancy is found, would next try restarting Eikon and machine running it, as per this previous discussion thread on the same error.