• Stars
    star
    502
  • Rank 84,708 (Top 2 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 6 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Real-time stock tickers from the command-line.

ticker.sh

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 *).

ticker.sh

Install

$ curl -o ticker.sh https://raw.githubusercontent.com/pstadler/ticker.sh/master/ticker.sh

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

Usage

# Single symbol:
$ ./ticker.sh AAPL

# Multiple symbols:
$ ./ticker.sh AAPL MSFT GOOG BTC-USD

# Read from file:
$ echo "AAPL MSFT GOOG BTC-USD" > ~/.ticker.conf
$ ./ticker.sh $(cat ~/.ticker.conf)

# Use different colors:
$ COLOR_BOLD="\e[38;5;248m" \
  COLOR_GREEN="\e[38;5;154m" \
  COLOR_RED="\e[38;5;202m" \
  ./ticker.sh AAPL

# Disable colors:
$ NO_COLOR=1 ./ticker.sh AAPL

# Update every five seconds:
$ watch -n 5 -t -c ./ticker.sh AAPL MSFT GOOG BTC-USD
# Or if `watch` is not available:
$ while true; do clear; ./ticker.sh AAPL MSFT GOOG BTC-USD; sleep 5; done

Please note that ticker.sh may require periodic updates of its session with Yahoo Finance. During these instances, the script may take slightly longer to complete.

This script works well with GeekTool and similar software:

PATH=/usr/local/bin:$PATH # make sure to include the path where jq is located
~/GitHub/ticker.sh/ticker.sh AAPL MSFT GOOG BTC-USD

More Repositories

1

keybase-gpg-github

Step-by-step guide on how to create a GPG key on keybase.io, adding it to a local GPG setup and using it with Git and GitHub.
2,609
star
2

flightplan

Run sequences of shell commands against local and remote hosts.
JavaScript
1,815
star
3

metrics.sh

Collect and forward metrics using portable shell scripts
Shell
132
star
4

battery.js

A tiny wrapper for the HTML5 Battery Status API.
JavaScript
118
star
5

octofolders

The missing GitHub folder icons for Mac OS X.
97
star
6

dotfiles

For my very own convenience.
Vim Script
62
star
7

alfred-screensharing

Connect to a host in Alfred with automatic network discovery.
53
star
8

alfred-cask

Manage Homebrew Casks with Alfred.
Shell
46
star
9

alfred-mount

Use Alfred to connect to your network shares with ease.
Makefile
41
star
10

non-terminating-bash-processes

Taming non-terminating Bash processes.
Shell
40
star
11

optometrist

Your optometrists favorite color theme for Terminal.app and iTerm2.
34
star
12

alfred-top

Process management in Alfred with top and kill.
Shell
20
star
13

candy-node

Deploy Candy as a node.js application
JavaScript
20
star
14

plex-duplicates

Find duplicate movie files in Plex Media Server.
Ruby
17
star
15

dtox

Extensible data transfer objects in JavaScript.
JavaScript
11
star
16

pagerank-service

A web service providing Google PageRank results.
Ruby
10
star
17

the-cube

The Cube is an experiment with CSS3 transitions.
HTML
10
star
18

alfred-play

Intelligent global hotkeys for Music.app and Spotify with Alfred.
Makefile
9
star
19

rethinkdb-udp-charts

Real-time charts using RethinkDB changefeeds.
JavaScript
5
star
20

ff-pagerank-client

A simple Firefox extension for displaying the Google PageRank of the websites you're visiting.
JavaScript
5
star
21

octoprowl

GitHub + Prowl = Octoprowl
Ruby
4
star
22

ticker-rs

Real-time stock tickers from the command-line. Written in Rust.
Rust
4
star
23

cloudflare-webfinger

Bring your own domain to Mastodon using Cloudflare Workers.
JavaScript
4
star
24

redirectcheck-service

A web service to check the HTTP status code behind a URL.
Ruby
3
star
25

candy-go

Deploy Candy as a Go application.
Go
3
star
26

candy-gae

Candy on Google App Engine (experimental)
Python
1
star
27

pfsense-traffic

Command-line tool for displaying traffic data from pfSense
Shell
1
star
28

candy-rack

Deploy Candy as a Rack application.
Ruby
1
star
29

rancheros-uefi

UEFI bootable RancherOS image.
1
star
30

ff-redirectcheck-client

A simple Firefox extension for retrieving and displaying the HTTP status code right beside the link on a page.
JavaScript
1
star