npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

alfred-real-time-stock-price

v1.1.2

Published

Get the real-time stock price from US stock market! (Dow Jones, Nasdaq, S&P 500) - stonks stonks stonks

Downloads

3

Readme

alfred-stock-price-workflow

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

Release

Latest Version is v1.1.1 (September 22, 2020) - Release Page

or Download from this direct link

Step-by-Step Instructions

  1. Go to IEX Cloud website to register a new account.

  2. In IEX Cloud console, copy your own API Tokens.

002

  1. Download the stock.alfredworkflow file from this direct link, and import into your Alfred app.

001

  1. Add your token into this workflow's configuration and variables. Variable name must be token, and value is your token from IEX Cloud.

003

  1. Type stock AAPL to test it out. The result is the latest price in subject, subtitle is the change in percentage and 52-week low & high price.

01

API Library

API Example

Get quote detail from a symbol

https://cloud.iexapis.com/v1/stock/aapl/quote?token=${YOUR_TOKEN}

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

Response:

{
    "symbol": "AAPL",
    "companyName": "Apple, Inc.",
    "primaryExchange": "NASDAQ",
    "calculationPrice": "iexlasttrade",
    "open": null,
    "openTime": null,
    "openSource": "official",
    "close": null,
    "closeTime": null,
    "closeSource": "official",
    "high": null,
    "highTime": 1599767376677,
    "highSource": "15 minute delayed price",
    "low": null,
    "lowTime": 1599765385646,
    "lowSource": "15 minute delayed price",
    "latestPrice": 113.465,
    "latestSource": "IEX Last Trade",
    "latestTime": "September 10, 2020",
    "latestUpdate": 1599767996317,
    "latestVolume": null,
    "iexRealtimePrice": 113.45,
    "iexRealtimeSize": 1,
    "iexLastUpdated": 1599768125766,
    "delayedPrice": null,
    "delayedPriceTime": null,
    "oddLotDelayedPrice": null,
    "oddLotDelayedPriceTime": null,
    "extendedPrice": null,
    "extendedChange": null,
    "extendedChangePercent": null,
    "extendedPriceTime": null,
    "previousClose": 117.32,
    "previousVolume": 176940455,
    "change": -3.855,
    "changePercent": -0.03286,
    "volume": null,
    "iexMarketPercent": 0.00636250051851494,
    "iexVolume": 1142855,
    "avgTotalVolume": 201473381,
    "iexBidPrice": 0,
    "iexBidSize": 0,
    "iexAskPrice": 0,
    "iexAskSize": 0,
    "iexOpen": null,
    "iexOpenTime": null,
    "iexClose": 113.465,
    "iexCloseTime": 1599767996317,
    "marketCap": 1967176744500,
    "peRatio": 34.19,
    "week52High": 137.98,
    "week52Low": 52.93,
    "ytdChange": 0.529584,
    "lastTradeTime": 1599768029914,
    "isUSMarketOpen": false
}

License

MIT © Wei Xia

Contact: hi#weixia.dev