alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 375 forks source link

[QUESTION] is there a way to listen do economic calendar updates? #384

Closed LeonardoRick closed 3 years ago

LeonardoRick commented 3 years ago

I wish to have realtime updates on news but I don't want to call the API every minute. Is there a way to listen to all new updates that's comming?

alvarobartt commented 3 years ago

Hi @LeonardoRick I'm not sure you can do that even through the Investing.com website, since I've checked and it seems that there's no socket opened while querying the economic calendar... 😖

So I think that you can just call the investpy.economic_calendar() function to get the updates... If you have any additional information or tips on how this could be done so as to avoid sending too many requests, please lmk!

Thank you! :+1:

LeonardoRick commented 3 years ago

Yes, I taught some socket could be opened. But if its not, I have no idea too. Thanks for answering!