Files
boursecu_user/src/api/home.ts
T

10 lines
423 B
TypeScript
Raw Normal View History

2026-01-18 13:01:46 +03:30
import useAxios from "@/utils/useAxios";
import type {Price} from "@/models/home";
export const getChart = async () => await useAxios.get<Array<Array<any>>>(`/api/candle`)
export const getPrice = async () => await useAxios.get<Price>(`/api/price/up`)
export const getLastPrice = async () => await useAxios.get<Price>(`/api/price/last`)
export const getAllPrices = async () => await useAxios.post('/customer/prices/all')