polygon.io
Version:
Isomorphic Javascript client for Polygon.io Stocks, Forex, and Crypto APIs
16 lines (15 loc) • 412 B
TypeScript
export interface ILastQuote {
askprice: number;
asksize: number;
askexchange: number;
bidprice: number;
bidsize: number;
bidexchange: number;
timestamp: number;
}
export interface ILastQuoteResult {
status: string;
symbol: string;
last: ILastQuote;
}
export declare const lastQuoteForSymbol: (apiKey: string, apiBase: string, symbol: string) => Promise<ILastQuoteResult>;