新增合约全历史拉取与 K 线打分叠加功能
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -53,10 +53,34 @@ export interface RunRangeResponse {
|
||||
results: RunRangeResult[]
|
||||
}
|
||||
|
||||
export interface RunFullRequest {
|
||||
ts_code: string
|
||||
}
|
||||
|
||||
export interface RunFullResult {
|
||||
trade_date: string
|
||||
close: number
|
||||
composite: number
|
||||
signal: string
|
||||
}
|
||||
|
||||
export interface RunFullResponse {
|
||||
ts_code: string
|
||||
total_days: number
|
||||
scored_count: number
|
||||
skipped_count: number
|
||||
warnings: string[]
|
||||
results: RunFullResult[]
|
||||
}
|
||||
|
||||
export function runRange(req: RunRangeRequest) {
|
||||
return client.post<RunRangeResponse>('/run/range', req, { timeout: 180_000 }).then((r) => r.data)
|
||||
}
|
||||
|
||||
export function runFull(req: RunFullRequest) {
|
||||
return client.post<RunFullResponse>('/run/full', req, { timeout: 300_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