initial masterExchanges
This commit is contained in:
parent
d068898e32
commit
660a2a1ec2
7 changed files with 446 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ import { processItems, QueueManager, type QueueConfig } from '@stock-bot/queue';
|
|||
import { Shutdown } from '@stock-bot/shutdown';
|
||||
import { initializeIBResources } from './providers/ib.tasks';
|
||||
import { initializeProxyResources } from './providers/proxy.tasks';
|
||||
import { healthRoutes, queueRoutes } from './routes';
|
||||
import { exchangeRoutes, healthRoutes, queueRoutes } from './routes';
|
||||
|
||||
// Load environment variables
|
||||
loadEnvVariables();
|
||||
|
|
@ -45,6 +45,12 @@ function createDataServiceQueueManager(): QueueManager {
|
|||
const { initializeProxyProvider } = await import('./providers/proxy.provider');
|
||||
return initializeProxyProvider();
|
||||
},
|
||||
async () => {
|
||||
const { initializeExchangeSyncProvider } = await import(
|
||||
'./providers/exchange-sync.provider'
|
||||
);
|
||||
return initializeExchangeSyncProvider();
|
||||
},
|
||||
],
|
||||
enableScheduledJobs: true,
|
||||
};
|
||||
|
|
@ -59,6 +65,7 @@ export const queueManager = createDataServiceQueueManager();
|
|||
export { processItems };
|
||||
|
||||
// Register all routes
|
||||
app.route('', exchangeRoutes);
|
||||
app.route('', healthRoutes);
|
||||
app.route('', queueRoutes);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue