0.1.4 • Published 4 years ago

react-stock-crawler v0.1.4

Weekly downloads
21
License
-
Repository
-
Last release
4 years ago

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.

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;
0.1.2

4 years ago

0.1.1

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago