initial qm operation tracker
This commit is contained in:
parent
73399ef142
commit
4ad232c35e
8 changed files with 928 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import {
|
|||
ScheduledOperation,
|
||||
} from '@stock-bot/handlers';
|
||||
import { checkSessions, createSession, searchSymbols, spiderSymbol } from './actions';
|
||||
import { updatePrices, updateIntradayBars, getOperationStats } from './actions/price.action';
|
||||
|
||||
@Handler('qm')
|
||||
export class QMHandler extends BaseHandler {
|
||||
|
|
@ -37,4 +38,27 @@ export class QMHandler extends BaseHandler {
|
|||
|
||||
@Operation('search-symbols')
|
||||
searchSymbols = searchSymbols;
|
||||
|
||||
/**
|
||||
* PRICE DATA
|
||||
*/
|
||||
@ScheduledOperation('update-prices', '0 */6 * * *', {
|
||||
priority: 5,
|
||||
immediately: false,
|
||||
description: 'Update daily prices every 6 hours'
|
||||
})
|
||||
updatePrices = updatePrices;
|
||||
|
||||
@ScheduledOperation('update-intraday-bars', '*/30 * * * *', {
|
||||
priority: 6,
|
||||
immediately: false,
|
||||
description: 'Update intraday bars every 30 minutes during market hours'
|
||||
})
|
||||
updateIntradayBars = updateIntradayBars;
|
||||
|
||||
/**
|
||||
* MONITORING
|
||||
*/
|
||||
@Operation('get-operation-stats')
|
||||
getOperationStats = getOperationStats;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue