Algobook
- The developer's handbook
mode-switch
back-button
Buy Me A Coffee

react-stocks

A slim and tidy widget created in React to provide real time stock prices. The widget will support as many ticket as you provide it with, and also the possibility to poll updates so you don't have to refresh the page to get price updates.

We are using our own API to fetch the stock information. More info here.

Download

npm i react-stocks

Implementation

Provide it with tickers you want to subscribe to

import { ReactStocks } from "react-stocks"; <ReactStocks tickers={["AAPL", "MSFT", "META"]} />;

Live updates

Set doPoll to true, and the widget will poll for updates

import { ReactStocks } from "react-stocks"; <ReactStocks doPoll tickers={["AAPL", "MSFT", "META"]} />;

Example of how the widget looks

example

Feedback

We love to improve our software. Any ideas, feature requests or bug reports - don't hesitate to email us. Contact info can be found here.

signature
See all our articlesSee all our open source projects