OpenBB icon indicating copy to clipboard operation
OpenBB copied to clipboard

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

Open deeleeramone opened this issue 3 years ago • 3 comments

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.

deeleeramone avatar Nov 13 '22 05:11 deeleeramone

@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

hjoaquim avatar Dec 06 '22 17:12 hjoaquim

@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.

jmaslek avatar Dec 06 '22 17:12 jmaslek

@jmaslek yup, that make a lot of sense!

hjoaquim avatar Dec 06 '22 18:12 hjoaquim