refactor(selection): 统一信号与股票处理逻辑,重构相关数据结构与接口,更新前端展示以支持股票信息
This commit is contained in:
@@ -43,6 +43,15 @@ export interface SelectionSignal {
|
||||
details: Record<string, number | string | null>
|
||||
}
|
||||
|
||||
export interface SelectionStockResult {
|
||||
ts_code: string
|
||||
name: string
|
||||
target_trade_date: string
|
||||
strategy: SelectionStrategy
|
||||
close: number
|
||||
signals: SelectionSignal[]
|
||||
}
|
||||
|
||||
export interface SelectionFailure {
|
||||
ts_code: string
|
||||
name: string
|
||||
@@ -69,7 +78,7 @@ export interface SelectionResults {
|
||||
finished_at: string | null
|
||||
page: number
|
||||
page_size: number
|
||||
signals_total: number
|
||||
stocks_total: number
|
||||
failures: SelectionFailure[]
|
||||
signals: SelectionSignal[]
|
||||
stocks: SelectionStockResult[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user