Market

A Market object represents a virtual database that stores constituents in supported index and stock exchanges. For example, S&P 500 and NASDAQ.

Get NASDAQ constituents

Get the symbol and name of NASDAQ constituents

import { Market } from 'traders';

const market = new Market();

const result = await market.listNasdaq();
# Example of partial listNasdaq result
[
  { symbol: 'AACG', name: 'ATA Creativity Global' },
  { symbol: 'AACQ', name: 'Artius Acquisition Inc.' },
  { symbol: 'AACQU', name: 'Artius Acquisition Inc.' },
  { symbol: 'AACQW', name: 'Artius Acquisition Inc.' },
  { symbol: 'AAL', name: 'American Airlines Group, Inc.' },
  { symbol: 'AAME', name: 'Atlantic American Corporation' },
  { symbol: 'AAOI', name: 'Applied Optoelectronics, Inc.' },
  { symbol: 'AAON', name: 'AAON, Inc.' },
  { symbol: 'AAPL', name: 'Apple Inc.' },
  { symbol: 'AAWW', name: 'Atlas Air Worldwide Holdings' },
  ... much more items
]

Get S&P 500 constituents

Get the symbol and name of S&P 500 constituents

Last updated

Was this helpful?