10 lines
423 B
TypeScript
10 lines
423 B
TypeScript
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')
|