🌐
GitHub
github.com › pstadler › ticker.sh
GitHub - pstadler/ticker.sh: Real-time stock tickers from the command-line. · GitHub
Real-time stock tickers from the command-line. ticker.sh is a simple shell script using the Yahoo Finance API as a data source. It features colored output and is able to display pre- and post-market prices (denoted with *).
Starred by 519 users
Forked by 91 users
Languages   Shell
🌐
David Walsh
davidwalsh.name › stock-quotes-command-line
Get Stock Quotes From Command Line
April 23, 2015 - Before May 2017, I used Yahoo Finance, and it was great, but at the moment Yahoo! closed free access and I switched to https://eodhistoricaldata.com, highly recommend them, you can easy get everything, they have examples for Excel, python, R and even Matlab. Creating console example is very easy: curl -s "https://eodhistoricaldata.com/api/eod/AAPL.US?from=2017-01-05&to=2017-02-10&api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&period=d" ... Just whipped this up using marketwatch.com. ie, for AAPL: curl -s https://www.marketwatch.com/investing/stock/aapl |grep '<meta name="price" content="' |cut -d'"' -f4
Discussions

Getting stock quotes in terminal

Thanks, works. What are the options for the second field where you put "NYSEARCA"?

More on reddit.com
🌐 r/commandline
4
24
March 31, 2022
Bash script to pull Stock Quotes
Can this be done easily using curl? Yes if you know the name of a site that serves the data Do stock quotes require a login? Entirely up to the site you choose. Can I pull it down using json? Again entirely up to the site you choose. Is this a bash question? No. I suggest you do a google search for 'stocks quote api' and take a look at some of the results that come back. They will point you in the right direction. Once you have gotten a bit further and have some actual code you want help with, come back to us and we will be glad to assist. PLEASE don't delete this question. More on reddit.com
🌐 r/bash
11
2
August 9, 2022
Are there any CLI apps that track the stock markets?
curl -s ' http://download.finance.yahoo.com/d/quotes.csv?s=aapl,meip&f=l1 ' Just change the s= Put this is a bash script with labels, and there you go. More on reddit.com
🌐 r/commandline
5
25
July 2, 2016
[OC] tstock - a lightweight command-line tool to view stocks in the terminal, written in C.
Very cool -- maybe the nerdy apes over at r/wallstreetbets would enjoy it, too. More on reddit.com
🌐 r/linux
59
973
January 13, 2022
🌐
Xmodulo
xmodulo.com › monitor-stock-quotes-command-line-linux.html
How to monitor stock quotes from the command line on Linux
$ sudo yum install git $ go get github.com/michaeldv/mop $ cd $GOPATH/src/github.com/michaeldv/mop $ make install · The above commands will install Mop under $GOPATH/bin. Now edit your .bashrc to include $GOPATH/bin in your PATH variable. ... To launch Mod, simply run the command called cmd. ... At the first launch, you will see a few stock tickers which Mop comes pre-configured with. The quotes show information like the latest price, %change, daily low/high, 52-week low/high, dividend, and annual yield.
🌐
LinuxConfig
linuxconfig.org › home › get stock and crypto price data using shell terminal on linux
Get stock and crypto price data using shell terminal on Linux
October 14, 2022 - In this tutorial, we saw how to get stock and crypto price data via the command line terminal on a Linux system. Bash can be used for many powerful functions, and we have shown here how you do not even need to leave your shell terminal to get the latest quotes and pricing on stocks and ...
🌐
Reddit
reddit.com › r/commandline › getting stock quotes in terminal
r/commandline on Reddit: Getting stock quotes in terminal
March 31, 2022 -

Wrote a shell function for this:

q () {
        curl -sL "https://www.google.com/finance/quote/$1" | pandoc -f html -t plain | grep -A9 "${1%:*}" | awk 'NR==1 || NR==9' ORS=' '
}

Usage:

$ q "SPY:NYSEARCA"
SPY • NYSEARCA $451.64
🌐
GitHub
github.com › frossm › quoter
GitHub - frossm/quoter: Command line utility to display stock quotes and index data
Quoter is a small command line tool to fetch stock quotes and US index data. It's a single executable JAR file.
Starred by 23 users
Forked by 4 users
Languages   Java 97.9% | Python 1.9% | Shell 0.2% | Java 97.9% | Python 1.9% | Shell 0.2%
🌐
GitHub
github.com › tbloncar › stock_quote_cli
GitHub - tbloncar/stock_quote_cli: Get stock info from the command line.
You can use Stock Quote CLI to fetch real-time attributes of multiple stocks. Use the stock command in tandem with any of the available subcommands and stock symbols to fetch the relevant attribute(s). Get the latest price for the specified stock(s).
Starred by 4 users
Forked by 2 users
Languages   Ruby 100.0% | Ruby 100.0%
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-desktop-74 › cli-command-to-pull-stock-price-and-volume-from-google-4175617060
CLI command to pull Stock Price and volume from Google
November 6, 2017 - I have an app that has been pulling stock data from yahoo. The part that pulls it is a Pascal program that is run by cron and executes the following
🌐
GitHub
github.com › ghulette › stock-quote
GitHub - ghulette/stock-quote: A simple command line tool to grab stock quotes from Yahoo Finance.
A simple command line tool to grab stock quotes from Yahoo Finance. - ghulette/stock-quote
Author   ghulette
Find elsewhere
🌐
Commandlinefu
commandlinefu.com › commands › view › 2086 › command-line-to-get-the-stock-quote-via-yahoo
Command Line to Get the Stock Quote via Yahoo
May 4, 2009 - curl -s 'http://download.finance.yahoo.com/d/quotes.csv?s=csco&f=l1' - (Command Line to Get the Stock Quote via Yahoo Retrieve the current stock price from Yahoo Finance. The output is simply the latest price (which could be delayed). If you want to look up stock for a different company, replace ...
🌐
Circlemud
circlemud.org › jelson › software › quote
quote -- command-line stock quote display
quote can be used to retrieve prices of U.S. stocks (CSCO, DELL), non-U.S. stocks (NT.TO), and market indices (^DJI, ^IXIC). Note that the ^ character is a shell meta-character and may need to be escaped or quoted. quote uses the Perl LWP module if available, or lynx otherwise (found in /usr/bin/lynx). OPTIONS -r Attempt to retrieve real-time quotes from Yahoo! Finance. This is not supported for all stock symbols. EXAMPLES Use of quote is very simple: % quote csco ibm dell nt.to '^ixic' CSCO: 55.19 -2.00 (-3.50%) on vol of 72.6M @4:00PM IBM: 119.12 -3.88 (-3.15%) on vol of 6.2M @4:52PM DELL: 3
🌐
LinuxLinks
linuxlinks.com › quoter-console-based-stock-quote-tool
Quoter - The Console Based Stock Quote Tool - LinuxLinks
March 24, 2022 - Quoter is a command-line tool that fetches stock prices. It's written in Java and published under an open source license.
🌐
Tiny Core Linux Forum
forum.tinycorelinux.net › index.php
Getting stock quotes through the command line
July 1, 2017 - Getting stock quotes through the command line · « previous next » · Print · Pages: [1] Go Down · Print · Pages: [1] Go Up · « previous next » · Tiny Core Linux » · General TC » · Programming & Scripting - Unofficial » · Getting stock quotes through the command line ·
🌐
GitHub
gist.github.com › m-manu › 6411582
Command-line utility to get stock price from Nasdaq and display it in INR (or any other currency). This script is created only for academic purpose. Please check terms and conditions Yahoo! Finance and Google Finance APIs before using this. · GitHub
Command-line utility to get stock price from Nasdaq and display it in INR (or any other currency). This script is created only for academic purpose. Please check terms and conditions Yahoo! Finance and Google Finance APIs before using this. - stock
🌐
GitHub
github.com › achannarasappa › ticker
GitHub - achannarasappa/ticker: Track stocks, crypto, and derivatives prices and positions in real time from your terminal · GitHub
Track stocks, crypto, and derivatives prices and positions in real time from your terminal - achannarasappa/ticker
Starred by 6.1K users
Forked by 331 users
Languages   Go
🌐
NoWarTools
nowardev.wordpress.com › 2017 › 01 › 01 › get-real-time-stock-quote-from-terminal-bash
get real time stock quote from terminal bash | NoWarTools
January 1, 2017 - curl -s http://www.nasdaq.com/symbol/baba | awk '/qwidget_lastsale/{gsub( "[^[:digit:].]","");print }' qwidget_lastsale THIS indicates to awk to search for qwidget_lastsale line which has the value you are searching for gsub( "[^[:digit:].]","" this just remove all html stuff and just keep numbers and dots in thi end just print it :D
🌐
Lifehacker
lifehacker.com › home
Display Stock Quotes on the Desktop | Lifehacker
June 9, 2025 - Linux or Mac: The Command-Line Fu web site writes up a quick trick to display stock quotes via the shell prompt—ready to be added to your customized desktop with GeekTool or Conky. Using the command is simple enough—it just grabs the current stock price from Yahoo using the curl utility (Ubuntu users will need to use sudo apt-get install curl to install it).
🌐
HackerNoon
hackernoon.com › you-can-track-stock-market-data-from-your-terminal-1k1h3135
You Can Track Stock Market Data From Your Terminal | HackerNoon
January 1, 2021 - You need to provide the ticker of the stock and terminal-stocks will give you the price information of the stock. terminal-stocks uses yahoo finance’s ticker to fetch stock information. ... This will give the 10 entries. To fetch more you can get it by providing page parameters like below.
🌐
GnuCash
wiki.gnucash.org › wiki › Online_Quotes
Online Quotes - GnuCash
One resolution for this, courtesy of SyncEvolution - The Missing Link, is to launch dbus for the duration of the quote retrieval with a cron command similar to: ... env `dbus-launch` sh -c 'trap "kill $DBUS_SESSION_BUS_PID" EXIT; gnucash-cli --quotes get /path/to/file.gnucash' ... env `dbus-launch` sh -c 'trap "kill $DBUS_SESSION_BUS_PID" EXIT; gnucash --add-price-quotes /path/to/file.gnucash' Note: This has been documented in Bug #639776. If your GnuCash version is built with Python Bindings, you can use the scripts shown on these pages: ... Importing fund or stock prices from an OFX file.