0.3.3 • Published 3 years ago

yfinance-live v0.3.3

Weekly downloads
17
License
MIT
Repository
github
Last release
3 years ago

NPM License: MIT

yfinance-live

Yahoo Finance Live Data on Node.js with WebSocket

Installation

npm

npm install yfinance-live

yarn

yarn add yfinance-live

Usage

JavaScript

Example using the default import:

var YFinance = require('yfinance-live')

function onchange(data) {
  console.log(data)
}
let yfinanceObj = YFinance(['GOOGL', 'AAPL', 'TSLA'], onchange)

Example using the YFinanceLive class import:

var { YFinanceLive } = require('yfinance-live')

function onchange(data) {
  console.log(data)
}
let yfinanceObj = new YFinanceLive(['GOOGL', 'AAPL', 'TSLA'], onchange)

TypeScript

Example using the default import:

import YFinance, { yfinancedata } from 'yfinance-live'
function onchange(data: yfinancedata) {
  console.log(yfinancedata)
}
let yfinanceObj = YFinance(['GOOGL', 'AAPL', 'TSLA'], onchange)

Example using the YFinanceLive class import:

import { YFinanceLive, yfinancedata } from 'yfinance-live'
function onchange(data: yfinancedata) {
  console.log(yfinancedata)
}
let yfinanceObj = new YFinanceLive(['GOOGL', 'AAPL', 'TSLA'], onchange)
0.3.2

3 years ago

0.3.1

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago