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

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.

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

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
Related Software
| Stock Tickers | |
|---|---|
| ticker | Another command-line tool written in Go |
| tickrs | Command-line tool that's written Rust |
| mop | This is billed as a stock market tracker for hackers |
| JStock | Track your stock investments |
| Stonks | Go-based terminal based stock visualizer and tracker |
| Merkato | Financial markets tracker for stocks, currencies, and cryptocurrencies |
| stocksTUI | Check stock prices, crypto, news, and historical charts |
| tstock | Python-based tool which generates stock charts in the terminal |
| Quoter | Small command-line tool to fetch stock prices |
| terminal-stocks | Query stock data directly from your shell with simple requests |
| InfoDash | Displays RSS feeds, weather and stock information |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

