Stockmarket

tstock – generate stock charts in the terminal

In Operation

Here’s example output from tstock showing the stock price for Nvidia Corp.

Stock chart for NVIDIA using tstock

The software supports stocks listed on the majority of global exchanges as well as major cryptocurrencies.

The software also shows Forex markets and currency exchange rates. The candlestick chart below shows the exchange rate between sterling (GBP) and the US dollar (USD) over the last couple of months.

tstock exchange rate chart

If you’re not sure of the stock ticker, tstock performs simple searches. Here’s a search for Amazon and the available codes.

Amazon shortcodes

What else does tstock offer? You can define the time interval of each candlestock, set the currency, set the height of the chart, and choose between the asset class (stock, crypto, and forex). There are also some other customization options.

Summary

tstock generates attractive candlestick charts in your terminal. It shows intraday trading and offers sufficient customization options. For stocks that are listed on an exchange that doesn’t use USD, the software doesn’t show the currency which is annoying.

The developer noted in April 2022 that he was going to retrieve financial data from Yahoo Finance API rather than Alpha Vantage. At the time of writing, this has not been implemented. The free tier of the Alpha Vantage API is limited to 500 API calls per day, 5 calls per minute.

The -w adds ‘words of wisdom’ which can be statements like “Stocks can only go down 100% but can go up infinite %. Stocks can literally only go up. Q.E.D. 📈📈📈”, “Apes alone weak. Apes together strong 🦍🦍🦍”, or even just a terse “GUH”. Whatever floats your boat.

Website: github.com/Gbox4/tstock
Support:
Developer: Gabe Banks
License: GNU General Public License v3.0

tstock is written in Python. Learn Python with our recommended free books and free tutorials.

Pages in this article:
Page 1 – Introduction and Installation
Page 2 – In Operation and Summary

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments