added deduplication and exchange stats

This commit is contained in:
Boki 2025-06-29 14:48:40 -04:00
parent 133f37e755
commit 100efb575f
7 changed files with 309 additions and 6 deletions

View file

@ -9,6 +9,7 @@ import type { DataIngestionServices } from '../../types';
import {
checkSessions,
createSession,
deduplicateSymbols,
scheduleCorporateActionsUpdates,
scheduleFilingsUpdates,
scheduleFinancialsUpdates,
@ -18,6 +19,8 @@ import {
searchSymbols,
spiderSymbol,
updateCorporateActions,
updateExchangeStats,
updateExchangeStatsAndDeduplicate,
updateFilings,
updateFinancials,
updateIntradayBars,
@ -63,6 +66,25 @@ export class QMHandler extends BaseHandler<DataIngestionServices> {
})
spiderSymbol = spiderSymbol;
/**
* EXCHANGE STATS & DEDUPLICATION
*/
@Operation('update-exchange-stats')
updateExchangeStats = updateExchangeStats;
@Operation('deduplicate-symbols')
deduplicateSymbols = deduplicateSymbols;
@Operation('update-exchange-stats-and-deduplicate')
updateExchangeStatsAndDeduplicate = updateExchangeStatsAndDeduplicate;
@ScheduledOperation('schedule-exchange-stats-and-dedup', '0 1 * * *', {
priority: 7,
immediately: false,
description: 'Update exchange statistics and deduplicate symbols daily at 1 AM'
})
scheduleExchangeStatsAndDedup = updateExchangeStatsAndDeduplicate;
/**
* SYMBOL INFO
*/