tarkah / tickrs

Realtime ticker data in your terminal 📈
MIT License
1.16k stars 58 forks source link

1H graph #116

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi there, is there any chance we could get an hourly graph? Love tickrs, thanks!

tarkah commented 3 years ago

I'm currently hard-coding the interval that I get the OHLCV (Open, High, Low, Close, Volume) data from the API based on the different time-frames. Here are the current intervals:

TimeFrame::Day1    => Interval::Minute1,
TimeFrame::Week1   => Interval::Minute5,
TimeFrame::Month1  => Interval::Minute30,
TimeFrame::Month3  => Interval::Minute60,
TimeFrame::Month6  => Interval::Minute60,
 _ (all others)    => Interval::Day1,

So the 3M & 6M time-frame are actually an hourly graph!

If you're looking to change the interval for any specific time-frame, I haven't built a feature out for that yet. But it's something I can consider and add to the backlog.