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


Related Software

Stock Tickers
tickerAnother command-line tool written in Go
tickrsCommand-line tool that's written Rust
mopThis is billed as a stock market tracker for hackers
JStockTrack your stock investments
StonksGo-based terminal based stock visualizer and tracker
MerkatoFinancial markets tracker for stocks, currencies, and cryptocurrencies
stocksTUICheck stock prices, crypto, news, and historical charts
tstockPython-based tool which generates stock charts in the terminal
QuoterSmall command-line tool to fetch stock prices
terminal-stocksQuery stock data directly from your shell with simple requests
InfoDashDisplays RSS feeds, weather and stock information

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted