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

import { Market } from 'traders';

const market = new Market();

const result = await market.listSNP();
# Example of partial listSNP result
[
  { symbol: 'MMM', name: '3M Company' },
  { symbol: 'ABT', name: 'Abbott Laboratories' },
  { symbol: 'ABBV', name: 'AbbVie Inc.' },
  { symbol: 'ABMD', name: 'Abiomed' },
  { symbol: 'ACN', name: 'Accenture' },
  { symbol: 'ATVI', name: 'Activision Blizzard' },
  { symbol: 'ADBE', name: 'Adobe Inc.' },
  { symbol: 'AMD', name: 'Advanced Micro Devices' },
  { symbol: 'AAP', name: 'Advance Auto Parts' },
  { symbol: 'AES', name: 'AES Corp' },
  { symbol: 'AFL', name: 'Aflac' },
  { symbol: 'A', name: 'Agilent Technologies' },
  { symbol: 'APD', name: 'Air Products & Chemicals' },
  { symbol: 'AKAM', name: 'Akamai Technologies' },
  ... much more items
]

Last updated