alpha-xone / xbbg

An intuitive Bloomberg API
https://xbbg.readthedocs.io/
Apache License 2.0
244 stars 51 forks source link

BEQS doesn't wait enough #100

Open HedgeShot opened 1 year ago

HedgeShot commented 1 year ago

Hi,

When looping over several EQS screens, it looks like the library doesn't wait long enough to get the answer from BBG. I tried with a loop over 5 screens and instead of getting 5 different results, I had screen 1 and 2 giving the same results, 3 getting results of screen 2 and so on. Note that it isn't necessarily 1 and 2 that have the same result, sometime it is 3 and 4 or 2 and 3.

Any idea on how to bypass this issue?

Thank you

PS: tia lib doesn't have this problem but it is stuck on python2.7...

avantgardeam commented 1 year ago

Any solutions? Facing the same problem here.

HedgeShot commented 1 year ago

unfortunately no, I am stuck using tia lib on python2.7...

avantgardeam commented 1 year ago

I implemented the functionality using blp (authored by matthewgilbert) since I couldn't use xbbg. Although it's not available on PyPI yet, you can import it directly from GitHub.