first commit
This commit is contained in:
6
frontend/src/api/ohlcv.ts
Normal file
6
frontend/src/api/ohlcv.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import apiClient from './client';
|
||||
import type { OHLCVBar } from '../lib/types';
|
||||
|
||||
export function getOHLCV(symbol: string) {
|
||||
return apiClient.get<OHLCVBar[]>(`ohlcv/${symbol}`).then((r) => r.data);
|
||||
}
|
||||
Reference in New Issue
Block a user