IEX Group operates the Investors Exchange (IEX), a stock exchange for U.S. equities that is built for investors and companies. They currently handle 3% of daily market trading volume
The company provides a rest API with historical data (daily) five years deep. Intraday data by the minute for prior 30 days.
https://iextrading.com/developer/docs/
npm install iex-api-wrapper
import * as IEX from "iex-api-wrapper"
Reminder that all IEX static methods return a Promise
export declare function allSymbols(): Promise<any>;
export declare function price(symbol: string): Promise<any>;
export declare function profile(symbol: string): Promise<any>;
export declare function ohlc(symbol: string): Promise<any>;
export declare function book(symbol: string): Promise<any>;
export declare function quote(symbol: string): Promise<any>;
export declare function effectiveSpread(symbol: string): Promise<any>;
export declare function previous(symbol: string): Promise<any>;
export declare function dividends(symbol: string, range?: string): Promise<any>;
export declare function earnings(symbol: string): Promise<any>;
export declare function peers(symbol: string): Promise<any>;
export declare function history(symbol: string, range?: string): Promise<any>;
export declare function byMinuteToday(symbol: string): Promise<any>;
export declare function byMinuteFor(symbol: string, dateAsYYYYMMDD: string): Promise<any>;
export declare function annualFinancials(symbol: string): Promise<any>;
export declare function quarterlyFinancials(symbol: string): Promise<any>;
export declare function tops(symbols: string): Promise<any>;
export declare function last(symbols: string): Promise<any>;
export declare function auction(symbols: string): Promise<any>;