alpha-xone / xbbg

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

enable interval in xbbg.live #42

Closed swiecki closed 3 years ago

swiecki commented 3 years ago

Hi,

I would like to set xbbg.live's subscription update interval as shown on page 11 of the bbg guide.

Given that blapi's subscriptionlist's add already takes an options dict and converts to strings correctly, I propose passing an options dict through xbbg.live, through subscribe, to add. My initial approach is to add a parameter to these functions and pass options={'interval':5}. This has worked for me in my projects.

Please let me know if you would like me to take a different approach with more or less explicit use of options/interval as parameters. Also please feel free to edit.

Thanks! Dan

alpha-xone commented 3 years ago

Thanks. There's some minor error in line 513. Should be good after you add space there.

alpha-xone commented 3 years ago

Merged