work on qm symbols
This commit is contained in:
parent
1d62343051
commit
34671ea427
4 changed files with 68 additions and 95 deletions
|
|
@ -4,7 +4,7 @@ import {
|
|||
Operation,
|
||||
ScheduledOperation,
|
||||
} from '@stock-bot/handlers';
|
||||
import { checkSessions, createSession, searchSymbols, spiderSymbolSearch } from './actions';
|
||||
import { checkSessions, createSession, searchSymbols, spiderSymbol } from './actions';
|
||||
|
||||
@Handler('qm')
|
||||
export class QMHandler extends BaseHandler {
|
||||
|
|
@ -22,15 +22,12 @@ export class QMHandler extends BaseHandler {
|
|||
@Operation('create-session')
|
||||
createSession = createSession;
|
||||
|
||||
@ScheduledOperation('spider-symbol-search', '* * * * *', {
|
||||
priority: 8,
|
||||
@ScheduledOperation('spider-symbols', '* * * * *', {
|
||||
priority: 9,
|
||||
immediately: false,
|
||||
description: 'Weekly comprehensive symbol search using QM API spider - runs every Saturday at midnight'
|
||||
})
|
||||
spiderSymbolSchedule = spiderSymbolSearch;
|
||||
|
||||
@Operation('spider-symbols')
|
||||
spiderSymbolsJob = spiderSymbolSearch;
|
||||
spiderSymbol = spiderSymbol;
|
||||
|
||||
@Operation('search-symbols')
|
||||
searchSymbols = searchSymbols;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue