gofinance / ib

Pure Go interface to Interactive Brokers IB API
392 stars 122 forks source link

Add valid bar sizes from IB #30

Closed nothize closed 5 years ago

nothize commented 7 years ago

Although when an invalid bar size is used, the returned error message uses 1W and 1M, I have tested that both '1 week' and '1 month' work.

Reference: http://interactivebrokers.github.io/tws-api/historical_bars.html#gsc.tab=0

Note: Append "?w=1" in the diff url to ignore whitespace. (eg. https://github.com/gofinance/ib/pull/30/commits/660ffe77a56fc70f0ab92052907cda624f173bb9?w=1)

nothize commented 5 years ago

@creack @indrekj @joelreymont @uwe

Please review, thanks!