Skip to content

Real-time stock tickers from the command-line.

License

Notifications You must be signed in to change notification settings

parambirs/ticker.fish

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ticker.fish

Real-time stock tickers from the command-line.

ticker.fish is a fish shell function using the Yahoo Finance API as a data source. It features colored output and is able to display pre- and post-market prices.

ticker.fish

Install

~> curl -o $HOME/.config/fish/functions/ticker.fish https://github.com/parambirs/ticker.fish/master/ticker.fish

Make sure to install jq, a versatile command-line JSON processor.

Usage

# Single symbol:
~> ticker AAPL

# Multiple symbols:
~> ticker AAPL MSFT GOOG BTC-USD

# Read from file:
~> echo "AAPL MSFT GOOG BTC-USD" > ~/.ticker.conf
~> ticker (string split " " <  ~/.ticker.conf)

# Use different colors:
~> set -x COLOR_BOLD "\e[38;5;248m"; \
  set -x COLOR_GREEN "\e[38;5;202m"; \
  set -x COLOR_RED "\e[38;5;154m"; \
  ticker AAPL

# Disable colors:
~> set -x NO_COLOR 1; ticker AAPL

# Update every five seconds:
~> while true; clear; ticker AAPL MSFT AMZN BTC-USD; sleep 5; end

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%