stock price

Get real time stock price for US market! (Dow Jones, Nasdaq, S&P 500)

From this project's GitHub repository:

alfred-stock-price-workflow

Get real time stock price in US market! (Dow Jones, Nasdaq, S&P 500)

To-do List

  • [ ] Icon for this workflow
  • [ ] Up/Down indicator image for stock price
  • [ ] Error handling
  • [ ] Open Yahoo Finance after hitting enter
  • [ ] Add test (optional)
  • [ ] Publish this workflow
  • [ ] Add stock list (low priority)
  • [ ] Support company name search, not only stock symbol
  • [ ] Support global stock markets
  • [ ] Add top Gainers/Losers/MostActive for different keywords API
  • [ ] Show market index change when starting keyword

Usage

01

With ${symbol}

If you’re preferring using $, you can download this version with supporint $.
For example, you’re looking for AAPL‘s price, simply type $aapl, will return the correct price.

Download here: https://github.com/Wei-Xia/alfred-stock-price-workflow/releases/tag/v0.92

Download

Release Page

Known Issue

  • [ ] API doesn’t work when markets are close. Will return undefined.

API Library

API Example

Get quote detail from a symbol

https://api.iextrading.com/1.0/stock/aapl/batch?types=quote

This API call will get the following response for stock AAPL.

Response:

{
    "quote": {
        "symbol": "AAPL",
        "companyName": "Apple Inc.",
        "primaryExchange": "Nasdaq Global Select",
        "sector": "Technology",
        "calculationPrice": "close",
        "open": 171.02,
        "openTime": 1523021400347,
        "close": 168.38,
        "closeTime": 1523044800156,
        "high": 172.48,
        "low": 168.2,
        "latestPrice": 168.38,
        "latestSource": "Close",
        "latestTime": "April 6, 2018",
        "latestUpdate": 1523044800156,
        "latestVolume": 34743599,
        "iexRealtimePrice": 168.35,
        "iexRealtimeSize": 111,
        "iexLastUpdated": 1523044799801,
        "delayedPrice": 168.47,
        "delayedPriceTime": 1523045261620,
        "previousClose": 172.8,
        "change": -4.42,
        "changePercent": -0.02558,
        "iexMarketPercent": 0.03523,
        "iexVolume": 1224017,
        "avgTotalVolume": 34083025,
        "iexBidPrice": 0,
        "iexBidSize": 0,
        "iexAskPrice": 0,
        "iexAskSize": 0,
        "marketCap": 854362308940,
        "peRatio": 17.31,
        "week52High": 183.5,
        "week52Low": 140.06,
        "ytdChange": 0.007224856537489812
    }
}

Changelog

License

MIT © Wei Xia