updated ib handler
This commit is contained in:
parent
9492f1b15e
commit
fbff428e90
13 changed files with 94 additions and 69 deletions
|
|
@ -14,13 +14,19 @@ export class IbHandler extends BaseHandler {
|
|||
}
|
||||
|
||||
@Operation('fetch-session')
|
||||
fetchSession = fetchSession;
|
||||
async fetchSession(): Promise<Record<string, string> | undefined> {
|
||||
return fetchSession(this);
|
||||
}
|
||||
|
||||
@Operation('fetch-exchanges')
|
||||
fetchExchanges = fetchExchanges;
|
||||
async fetchExchanges(): Promise<unknown[] | null> {
|
||||
return fetchExchanges(this);
|
||||
}
|
||||
|
||||
@Operation('fetch-symbols')
|
||||
fetchSymbols = fetchSymbols;
|
||||
async fetchSymbols(): Promise<unknown[] | null> {
|
||||
return fetchSymbols(this);
|
||||
}
|
||||
|
||||
@Operation('ib-exchanges-and-symbols')
|
||||
@ScheduledOperation('ib-exchanges-and-symbols', '0 0 * * 0', {
|
||||
|
|
@ -28,6 +34,9 @@ export class IbHandler extends BaseHandler {
|
|||
description: 'Fetch and update IB exchanges and symbols data',
|
||||
immediately: false,
|
||||
})
|
||||
fetchExchangesAndSymbols = fetchExchangesAndSymbols;
|
||||
async fetchExchangesAndSymbols(): Promise<unknown> {
|
||||
return fetchExchangesAndSymbols(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue