Is there any way to automatically log on through the Bloomberg API to fetch data? From my testing with Python the API can pull data when I am logged into Bloomberg through the terminal and some time after I log off.
The next morning I try to run my code with an error, but the problem goes away as soon as I log on the terminal.
Thanks.
Yes, you need to log in to be able to run the API. Once you log off, you can still pull data as long as you don't log onto a different computer. That's by design.
So there is no other solution than either manually logging onto your terminal in the morning or making sure that you don't use Bloomberg Anywhere on another PC.
Automatically log onto Bloomberg through API Python