1404/10/28-base
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user