- MoexHttpClient: infrastructure (axios, rate limiter, circuit breaker) - MoexSecuritiesClient: search and security descriptions - MoexMarketDataClient: share/bond market data and batch queries - MoexCandlesClient: candle data - MoexHistoryClient: share/bond history - MoexDividendsClient: dividend data - Removed @Global() from MoexClientModule - Updated all 7 consumers with explicit DI - All 141 tests passing
27 lines
757 B
TypeScript
27 lines
757 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { MoexHttpClient } from './moex-http.client';
|
|
import { MoexSecuritiesClient } from './moex-securities.client';
|
|
import { MoexMarketDataClient } from './moex-market-data.client';
|
|
import { MoexCandlesClient } from './moex-candles.client';
|
|
import { MoexHistoryClient } from './moex-history.client';
|
|
import { MoexDividendsClient } from './moex-dividends.client';
|
|
|
|
@Module({
|
|
providers: [
|
|
MoexHttpClient,
|
|
MoexSecuritiesClient,
|
|
MoexMarketDataClient,
|
|
MoexCandlesClient,
|
|
MoexHistoryClient,
|
|
MoexDividendsClient,
|
|
],
|
|
exports: [
|
|
MoexSecuritiesClient,
|
|
MoexMarketDataClient,
|
|
MoexCandlesClient,
|
|
MoexHistoryClient,
|
|
MoexDividendsClient,
|
|
],
|
|
})
|
|
export class MoexClientModule {}
|