手动打分页改为按品种选择,日期限定主力合约范围,结果自动滚动到视图
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,19 @@ export interface RunResponse {
|
||||
signal: string
|
||||
}
|
||||
|
||||
export interface ActiveContract {
|
||||
symbol: string
|
||||
ts_code: string
|
||||
min_date: string
|
||||
max_date: string
|
||||
}
|
||||
|
||||
export function runPipeline(req: RunRequest) {
|
||||
return client.post<RunResponse>('/run', req).then((r) => r.data)
|
||||
}
|
||||
|
||||
export function getActiveContract(symbol: string) {
|
||||
return client
|
||||
.get<ActiveContract>('/contracts/active', { params: { symbol } })
|
||||
.then((r) => r.data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user