新增自定义时间段批量打分功能:支持设置日期区间,对区间内每天自动拉取数据并打分
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,33 @@ export function runPipeline(req: RunRequest) {
|
||||
return client.post<RunResponse>('/run', req).then((r) => r.data)
|
||||
}
|
||||
|
||||
export interface RunRangeRequest {
|
||||
symbol: string
|
||||
start_date: string
|
||||
end_date: string
|
||||
}
|
||||
|
||||
export interface RunRangeResult {
|
||||
trade_date: string
|
||||
close: number
|
||||
composite: number
|
||||
signal: string
|
||||
}
|
||||
|
||||
export interface RunRangeResponse {
|
||||
ts_code: string
|
||||
start_date: string
|
||||
end_date: string
|
||||
scored: number
|
||||
skipped: number
|
||||
warnings: string[]
|
||||
results: RunRangeResult[]
|
||||
}
|
||||
|
||||
export function runRange(req: RunRangeRequest) {
|
||||
return client.post<RunRangeResponse>('/run/range', req, { timeout: 180_000 }).then((r) => r.data)
|
||||
}
|
||||
|
||||
export function runBatch() {
|
||||
return client.post('/run/batch', null, { timeout: 180_000 }).then((r) => r.data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user