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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user