stock-price-live-feed

1.0.3 • Public • Published

Live Stock Price

npm version GitHub license

Live Stock Price is an NPM package that provides live stock data prices for a given symbol. It fetches the stock price from Yahoo Finance using web scraping techniques.

Installation

npm install live-stock-price

Usage

const liveStockPrice = require('live-stock-price');

liveStockPrice('AAPL')
    .then((price) => {
        console.log('Stock price:', price);
    })
    .catch((error) => {
        console.error('Error:', error);
    });

Replace 'AAPL' with the desired stock symbol. The liveStockPrice function returns a promise that resolves to the live stock price.

License

This project is licensed under the MIT License - see the MIT License file for details.

Package Sidebar

Install

npm i stock-price-live-feed

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

3.8 kB

Total Files

6

Last publish

Collaborators

  • prnnys