Socket
Socket
Sign inDemoInstall

react-stock-crawler

Package Overview
Dependencies
68
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-stock-crawler

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)](https://finnhub.io/docs/api) to fetch the stock data, hence, an api key


Version published
Weekly downloads
8
increased by166.67%
Maintainers
2
Install size
4.69 kB
Created
Weekly downloads
 

Readme

Source

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;

FAQs

Last updated on 03 Aug 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc