tarkah / tickrs

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

Custom user data source (CSV/JSON) instead of from Yahoo? #131

Open NLKNguyen opened 2 years ago

NLKNguyen commented 2 years ago

Hi,

Thanks for your work. It's amazing. I've been looking for candlestick chart in the terminal for so long. Is there any way to provide my own OHLC data in a common format such as CSV and JSON? An example use case is to show technical analysis in history, and therefore recent tickers are not needed.

Just a way to show a static candlestick chart is enough. Something like this would be nice:

cat ohlc.json | tickrs --candlestick
tarkah commented 2 years ago

Great suggestion! We could define a simple format that would be easy to deserialize and feed the charts. User could provide candle data or series data (if supplying TA data).

I've got "scrolling" working with the Kagi chart, and we'd definitely want to leverage that for a feature like this. Adding zooming would be nice so the user can control the level of precision for looking at the data.

I don't have much free time these days, but once I find some, I'll try to add in this feature.