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