Python (blpapi) _ Bloomberg API _ take Screenshot

156 Views Asked by At

I am trying to retrieve (automate) a price + a screenshot of the given price out of Bloomberg. I use Bloomberg Desktop in combination with the API (programming in Python).

I already read the documentation available on the official site and all the threads I could find but documentation overall seems limited.

I can retrieve the price of the security I want with :

from xbbg import blp
import blpapi

[...]

blp.bdp("MYSECURITY", ["PX_LAST"])

And I can't find a way to have the screenshot of the page. Manually I would do : Search bar -> MYSECURITY -> "Take Window Screenshot" -> "View Screen as Image"

I see 2 ways of doing it : the best way would be a direct function / query. The other way would be to "physically" open the DES page with python commands to the API and asking python to take a screenshot of the given screen with another library.

Hope someone can help,

Best Regards,

0

There are 0 best solutions below