tarkah / tickrs

Realtime ticker data in your terminal 📈
MIT License
1.2k stars 59 forks source link

Price history stretches to fit the timespan #46

Closed Slickytail closed 3 years ago

Slickytail commented 3 years ago

If you try to view a timespan longer than the available data for an asset, the longest available history will be shown instead, but with no indication that it is being stretched.

20210205_10h33m51s_grim 20210205_10h34m07s_grim

For example, THNQ has existed for only about 9 months -- but attempting to view 5Y of its history gives no indication of this. This is not an issue when labels are visible, but it could be misleading in the summary view as there is no indication that different assets are not shown on the same timescale.

tarkah commented 3 years ago

Hmm, good point. I'll look into a fix for this. Thanks for opening this issue!

tarkah commented 3 years ago

Ok, I think I found a very reliable solution to make sure graphing is accurate... How does this look?

Code_fMfjY94mVn

Code_zSoQzPsp3l Code_mLStOexiH7

tarkah commented 3 years ago

Works for very recent IPOs as well... here's a few from today / this past week:

Code_LyP0LYSwiM Code_HdjXfSAUNP Code_fwAgf0UQLz

Slickytail commented 3 years ago

Awesome, thank you so much!

tarkah commented 3 years ago

No problem! I'll get a release out before Monday hopefully