UNPKG

@cranberry-money/shared-types

Version:

Shared TypeScript type definitions for Blueberry platform

81 lines 1.9 kB
export interface InstrumentTypeInfo { isEtf?: boolean; isFund?: boolean; } export interface InstrumentBasicInfo { symbol: string; name: string; } export interface PriceChangeResult { change: number; changePercent: number; isPositive: boolean; } export interface PriceSnapshot { change: string; changePercent: string; } export interface FormattedPriceChange { changeText: string; changePercentText: string; colorClass: string; } export interface TradeableInstrument { isActive: boolean; isActivelyTrading: boolean; } export interface MarketDataInfo { openPrice?: string | null; dayHigh?: string | null; dayLow?: string | null; volume?: number | null; } export interface InstrumentReference { uuid: string; symbol: string; name: string; } export interface Instrument { uuid: string; exchange: string; exchangeName: string; country: string; countryName: string; industry: string; industryName: string; sector: string; sectorName: string; symbol: string; name: string; currentPrice: string; currency: string | null; isEtf: boolean; isFund: boolean; isActive: boolean; isActivelyTrading: boolean; } export interface MarketData { pe: string | null; eps: string | null; volume: number; dayLow: string | null; dayHigh: string | null; yearLow: string | null; yearHigh: string | null; avgVolume: number | null; marketCap: string | null; openPrice: string | null; priceAvg50: string | null; priceAvg200: string | null; previousClose: string | null; sharesOutstanding: number | null; } export interface InstrumentSnapshot { uuid: string; price: string; change: string; changePercent: string; marketData: MarketData; sourceTimestamp: string; } //# sourceMappingURL=instruments.d.ts.map