react-stock-crawler

0.1.4 • Public • Published

A lightweight react component that gets stock data periodically and displays a list of stocks that crawls from right to left. It uses the Finnhub API (https://finnhub.io/docs/api) to fetch the stock data, hence, an api key is needed to use this component which will be passed in through props.

Gif not loading

Getting Started

  1. Install the package npm install react-stock-crawler

  2. Install peer dependencies npm install react-ticker

Props

  • stocks A list of stocks represented by their ticker symbol (Maximum Length = 7)
  • apiKey Your api key to use the Finnhub API

Example Usage

import StockCrawler from 'react-stock-crawler/dist'

function App() {
  return (
    <StockCrawler stocks={['AAPL', 'MSFT']} apiKey={"API_KEY"} />
  );
}

export default App;

Readme

Keywords

none

Package Sidebar

Install

npm i react-stock-crawler

Weekly Downloads

2

Version

0.1.4

License

none

Unpacked Size

4.8 kB

Total Files

3

Last publish

Collaborators

  • steffy-lo
  • victoria-lo