Refactor signal generation in TradingService to process indicators individually, improving clarity and performance. Add new API types for refining indicators, including request and response structures.

This commit is contained in:
2025-12-28 20:59:11 +07:00
parent 4f3ec31501
commit 8a7addafd7
4 changed files with 110 additions and 32 deletions

View File

@@ -1469,6 +1469,19 @@ export interface IndicatorRequestDto {
requesterName: string;
}
export interface RefineIndicatorsResponse {
indicatorsValues?: { [key in keyof typeof IndicatorType]?: IndicatorsResultBase; } | null;
signals?: LightSignal[] | null;
}
export interface RefineIndicatorsRequest {
ticker: Ticker;
timeframe: Timeframe;
startDate: Date;
endDate: Date;
indicators: IndicatorRequest[];
}
export interface LoginRequest {
name: string;
address: string;