UNPKG

fitr

Version:
21 lines (20 loc) 1.03 kB
import { PricePoint } from "../types"; /** * Update historical price data for a symbol * @param symbol The stock/ETF symbol to update * @param weekStartsOn The day of the week to consider as the first day (0 = Sunday, 1 = Monday, etc.) * @returns Promise that resolves when the update is complete */ export declare function updateHistoricalPricesDataForSymbol(symbol: string, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6): Promise<void>; /** * Merge two price histories, avoiding duplicates * @param existingHistory Existing price history * @param newHistory New price history to merge * @returns Merged price history without duplicates */ export declare function mergePriceHistories(existingHistory: PricePoint[], newHistory: PricePoint[]): PricePoint[]; /** * Update historical price data for all assets in the portfolio * @param weekStartsOn The day of the week to consider as the first day (0 = Sunday, 1 = Monday, etc.) */ export declare function updateData(weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6): Promise<void>;