alpha-xone / xbbg

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

interval for subscription [Solved by modifying blp.py] #65

Open mrhaa opened 2 years ago

mrhaa commented 2 years ago

refer to the blpapi guide, I can set the interval for subscription. but xbbg does not pass the interval or any option argument to blpapi.

For example, If you want to set the interval 10 seconds, You have to modify subscribe function of blp.py in xbbg line# 532 sub_list.add(topic, flds, correlationId=cid) ---> sub_list.add(topic, flds, correlationId=cid, options='interval=10')