Ticker

A Ticker object represents a stock in the market and there are functions for you to easily access the financial data about it. For example, real-time quoting and historical prices.

Real Time Quoting

Get the real-time market price related information on that stock

import { Ticker } from 'traders';

const ticker = new Ticker('AAPL');

const result = await ticker.liveQuote();
# Example of liveQuote result
{
  open: '120.40',
  price: '121.03',
  high: '121.17',
  low: '119.16',
  volume: '88.11M',
  change: '-0.93',
  changePercent: '-0.76%'
}

Historical Prices

Get the historical prices for particular stock

Last updated

Was this helpful?