UNPKG

polygon.io

Version:

Isomorphic Javascript client for Polygon.io Stocks, Forex, and Crypto APIs

16 lines (12 loc) 399 B
// CF: https://polygon.io/docs/#!/Reference/get_v2_reference_markets import { get } from "../transport/request"; export interface IMarket { market: string; desc: string; } export interface IMarketResponse { status?: string; results?: IMarket[]; } export const markets = async (apiKey: string, apiBase: string): Promise<IMarketResponse> => get("/v2/reference/markets", apiKey, apiBase);