支持手动指定品种和日期进行打分
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
24
web/frontend/src/api/run.ts
Normal file
24
web/frontend/src/api/run.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import client from './client'
|
||||
|
||||
export interface RunRequest {
|
||||
ts_code?: string
|
||||
symbol?: string
|
||||
trade_date?: string
|
||||
}
|
||||
|
||||
export interface RunResponse {
|
||||
ts_code: string
|
||||
trade_date: string
|
||||
close: number
|
||||
oi: number
|
||||
oi_chg: number
|
||||
short_term: number
|
||||
medium_term: number
|
||||
long_term: number
|
||||
composite: number
|
||||
signal: string
|
||||
}
|
||||
|
||||
export function runPipeline(req: RunRequest) {
|
||||
return client.post<RunResponse>('/run', req).then((r) => r.data)
|
||||
}
|
||||
Reference in New Issue
Block a user