0.4.25 • Published 12 months ago

@quantgate-systems/oppwatchlist v0.4.25

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Opportunity Watchlist

Installation

npm i --save @quantgate-systems/oppwatchlist or if you are using yarn, yarn add @quantgate-systems/oppwatchlist

Usage

create-react-app

import {OppWatchlistApp} from '@quantgate-systems/oppwatchlist';

const [symbols, setSymbols] = useState([]); //changed symbols sent as prop

//your app's symbol handler (OPTIONAL)
const handler = () => {
  setSymbols(prev => {
    return [...prev, newSymbolToAdd];
  });
};

const onItemClick = instrument => {
  console.log(instrument);
};

return (
  <OppWatchlistApp
    symbols={symbols}
    onSymbolsAdded={symbol => console.log(symbol)}
    onItemClick={onItemClick}
    miniFilter
  />
);

next.js

import dynamic from 'next/dynamic';

const OppWatchlistApp = dynamic(() => import('@quantgate-systems/oppwatchlist'));

//your app's symbol handler (OPTIONAL)
const handler = () => {
  setSymbols(prev => {
    return [...prev, newSymbolToAdd];
  });
};

const onItemClick = instrument => {
  console.log(instrument);
};

return (
  <OppWatchlistApp
    symbols={symbols}
    onSymbolsAdded={symbol => console.log(symbol)}
    onItemClick={onItemClick}
    miniFilter
  />
);
0.0.22

1 year ago

0.0.23

12 months ago

0.0.24

12 months ago

0.4.25

12 months ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.9

1 year ago

0.0.16

1 year ago

0.0.8

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago