BarShelf › Widgets › Stock

Stock

Live stock quote (any ticker) over the Yahoo Finance API — a big price with a colored up/down change. Demonstrates the HTTP source with a required User-Agent header.

Category
Everyday
Type
Workflow (no code)
Requires
Nothing beyond BarShelf
Permissions
network: query1.finance.yahoo.com
Refresh
Every 5 min while visible
Source
github.com/Open330/barshelf/tree/main/widgets/stock
Stock widget, rendered by BarShelf

A live quote for any ticker from the Yahoo Finance chart API: a large price and the change since the previous close.

What it shows

Settings

SettingDefaultEffect
TickerAAPLAny symbol Yahoo Finance knows, such as MSFT or 005930.KS.

Permissions and refresh

The only permission is HTTPS access to query1.finance.yahoo.com. The request sends a browser User-Agent header, which the API requires; the widget is also BarShelf's example of an HTTP source with custom headers. It refreshes every five minutes while the popover is visible. Clicking it opens the quote page on Yahoo Finance. Prices can be delayed; do not trade on them.

Install

Included with BarShelf. Open the popover, go to the Gallery, and add it. BarShelf asks you to approve the permissions listed above first.

brew install --cask open330/tap/barshelf