JSPM

stock-price-fetcher

2.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q37419F
    • License MIT

    Fetches currency and value of a stock in real time provided yahoo finance representation of the stock ticker.

    Package Exports

    • stock-price-fetcher
    • stock-price-fetcher/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stock-price-fetcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Usage example


    const spf = require("stock-price-fetcher")
    const data = await spf.data('AAPL'); // param should be a valid yahoo finance ticker
    console.log(data) // { currency: 'USD', price: 148.11 }