/** * Search */ export declare type SearchAsset = { market: string; name: string; price: number; symbol: string; }; export declare type SearchResponse = { page: number; maxPages: number; values: SearchAsset[]; }; /** * Historical */ export declare type SymbolType = string; export declare type HistoricalArgs = { symbols: SymbolType[]; options: { startDate?: string; duration?: Duration; period?: Period; concatenate?: boolean; }; }; export declare type HistoricalQuote = { date: string; last: number; }; export declare type HistoricalAsset = { symbol: string; values: HistoricalQuote[]; }; export declare type HistoricalResponse = HistoricalAsset[] | any; export declare type Duration = '1M' | '2M' | '3M' | '4M' | '5M' | '6M' | '7M' | '8M' | '9M' | '10M' | '11M' | '1Y' | '2Y' | '3Y'; export declare type Period = 'daily' | 'weekly' | 'monthly' | 'yearly'; export declare type RawPeriod = 1 | 7 | 30 | 365; export declare type GetHistoricalUrlArgs = { symbol: string; startDate?: string; duration?: Duration; period?: RawPeriod; page?: number; };