achannarasappa / ticker

Terminal stock ticker with live updates and position tracking
GNU General Public License v3.0
5.02k stars 273 forks source link

NTDOY doesn't show values after market closes #97

Closed ngocphamm closed 3 years ago

ngocphamm commented 3 years ago

Describe the bug I'm not sure if this is because of the particular stock (NTDOY) or what. Just weird that after market closes the values are all 0s, so my lots show incorrect numbers, too. If I restart ticker, it's showing again, until the next time it refreshes (by the interval set), it's all 0s again.

To Reproduce Steps to reproduce the behavior:

  1. Start ticker with lots containing NTDOY
    lots:
    - symbol: "NTDOY"
    quantity: xxx
    unit_cost: xx.xx
  2. See all zeros for the symbol, once the market closes
  3. If ticker is left open, once the market opens again the next day, values will come back again

Expected behavior Values are not set to 0s after market closes.

Screenshots CleanShot 2021-02-11 at 08 09 42@2x

Environment (please complete the following information):

achannarasappa commented 3 years ago

Assuming you took this just now, I can see this stock is in the PRE market state but there is no pre-market price. Definitely a bug - thanks for reporting

ngocphamm commented 3 years ago

Yup the screenshot was taken at the time I created the issue.

danemacmillan commented 3 years ago

I've noticed something similar, so it's probably relevant to add. Leaving ticker to run overnight--it probably doesn't need all night--will result in all my lots, values, percentages, etc to be either some random negative number, or no number at all. In my case, there are three stocks with lots defined for each, all on the TSX Venture exchange (TSX.V).

I've added a screenshot of just the summary line, but the price differences and percentage for the day for each row also become all negative. Just looking at this screenshot would make one think I've just lost a tonne of money, but it's not accurate.

Screen Shot 2021-02-11 at 9 29 05 AM

As soon as the markets open, all the values are corrected and displayed properly.

achannarasappa commented 3 years ago

Fixed in v3.0.8