OpenBB-finance / OpenBB

Investment Research for Everyone, Everywhere.
https://openbb.co
Other
33.73k stars 3.08k forks source link

[Bug] stocks/options/voi - Chart weirdness + `--raw` flag does not work. #3403

Closed deeleeramone closed 1 year ago

deeleeramone commented 1 year ago

stocks/load qqq/options/exp 0/voi

The chart displays volume and oi. However, oi is added on to the end of the volume graph, instead of being an overlapping value that begins at 0. The chart title also states that open interest is only displayed during market hours, it appears to be inaccurate.

When the strike range is defined as -m 250 -M 290, the chart does not display the full-width of the values. One needs to zoom out before seeing the complete bar.

Screenshot 2022-11-12 at 2 26 29 PM

voi --raw does not show the raw table.

hjoaquim commented 1 year ago

@deeleeramone I think when we use the --source Nasdaq we can accomplish what you're saying. Should the default (yf) has a similiar chart? image

I started addressing this here (mainly the --raw issue): #3665

jmaslek commented 1 year ago

@deeleeramone I think when we use the --source Nasdaq we can accomplish what you're saying. Should the default (yf) has a similiar chart? image

I started addressing this here (mainly the --raw issue): #3665

Yeah when I made the nasdaq chart the goal was to have all of them, but what we actually should want is a single function that would plot vol/oi/voi independent of the data source. I have thought about the options menu and that we should probably have a self.data option like in stocks where we can pass that through to the different functions and this would let us do things much quicker.

hjoaquim commented 1 year ago

@jmaslek yup, that make a lot of sense!