Add company overview skeleton and cache
This commit is contained in:
@@ -559,10 +559,11 @@ export async function getSearchAnswer(input: {
|
||||
}, 'Unable to generate cited answer');
|
||||
}
|
||||
|
||||
export async function getCompanyAnalysis(ticker: string) {
|
||||
export async function getCompanyAnalysis(ticker: string, options?: { refresh?: boolean }) {
|
||||
const result = await client.api.analysis.company.get({
|
||||
$query: {
|
||||
ticker: ticker.trim().toUpperCase()
|
||||
ticker: ticker.trim().toUpperCase(),
|
||||
...(options?.refresh ? { refresh: 'true' } : {})
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user