新增 Web 浏览端(Go+Vue 报表系统)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
19
web/frontend/src/api/candles.ts
Normal file
19
web/frontend/src/api/candles.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import client from './client'
|
||||
|
||||
export interface Candle {
|
||||
ts_code: string
|
||||
trade_date: string
|
||||
open: number
|
||||
high: number
|
||||
low: number
|
||||
close: number
|
||||
vol: number
|
||||
amount: number
|
||||
oi: number
|
||||
oi_chg: number
|
||||
pre_close: number
|
||||
}
|
||||
|
||||
export function listCandles(ts_code: string, start?: string, end?: string) {
|
||||
return client.get<Candle[]>('/candles', { params: { ts_code, start, end } }).then((r) => r.data)
|
||||
}
|
||||
Reference in New Issue
Block a user