UNPKG

@itick/browser-sdk

Version:

Official iTick API SDK for browser. Real-time & historical data for global Stocks, Forex, Crypto, Indices, Futures, Funds, Precious Metals. REST (OHLCV/K-line) + low-latency WebSocket. Promise-based, TypeScript-ready. For quant trading & fintech

40 lines 1.26 kB
/** * Tick Data (Latest Trade) * Represents the most recent trade data for a product * - s: product code * - ld: last price * - t: timestamp (milliseconds) * - v: trade volume * - d: trade direction 0:neutral 1:sell 2:buy (stock only) * - te: trading session 0:regular 1:pre-market 2:after-hours (stock only) * - tu: trade amount (crypto only) * - ts: trading status 0:normal 1:suspended 2:delisted 3:circuit breaker (crypto only) */ export interface TickData { /** Product code */ s: string; /** Last price */ ld: number; /** Timestamp (milliseconds) */ t: number; /** Trade volume */ v: number; /** Trade direction 0:neutral 1:sell 2:buy (stock only) */ d?: number; /** Trading session 0:regular 1:pre-market 2:after-hours (stock only) */ te?: number; /** Trade amount (crypto only) */ tu?: number; /** Trading status 0:normal 1:suspended 2:delisted 3:circuit breaker (crypto only) */ ts?: number; } /** * Tick Batch Data Collection * Collection of all latest trade data * @property key - Product code * @property value - Latest trade data for corresponding product {@link TickData} */ export type TickDataMap = { [key: string]: TickData; }; //# sourceMappingURL=tick.d.ts.map