import useAxios from "@/utils/useAxios"; import type {Price} from "@/models/home"; export const getChart = async () => await useAxios.get>>(`/api/candle`) export const getPrice = async () => await useAxios.get(`/api/price/up`) export const getLastPrice = async () => await useAxios.get(`/api/price/last`) export const getAllPrices = async () => await useAxios.post('/customer/prices/all')