work on ceo

This commit is contained in:
Boki 2025-06-24 18:09:32 -04:00
parent c8dcd697c9
commit b25222778e
18 changed files with 391 additions and 110 deletions

View file

@ -5,7 +5,7 @@ import {
ScheduledOperation,
type IServiceContainer,
} from '@stock-bot/handlers';
import { processIndividualSymbol, updateCeoChannels, updateUniqueSymbols } from './actions';
import { getChannels, getPosts, getShorts, updateUniqueSymbols } from './actions';
@Handler('ceo')
// @Disabled()
@ -14,12 +14,12 @@ export class CeoHandler extends BaseHandler {
super(services); // Handler name read from @Handler decorator
}
@ScheduledOperation('update-ceo-channels', '0 */15 * * *', {
@ScheduledOperation('get-channels', '0 */15 * * *', {
priority: 7,
immediately: false,
description: 'Get all CEO symbols and exchanges',
})
updateCeoChannels = updateCeoChannels;
getChannels = getChannels;
@Operation('update-unique-symbols')
@ScheduledOperation('update-unique-symbols', '0 0 1 * *', {
@ -29,6 +29,9 @@ export class CeoHandler extends BaseHandler {
})
updateUniqueSymbols = updateUniqueSymbols;
@Operation('process-individual-symbol')
processIndividualSymbol = processIndividualSymbol;
@Operation('get-posts')
getPosts = getPosts;
@Operation('get-shorts')
getShorts = getShorts;
}