7 lines
276 B
TypeScript
7 lines
276 B
TypeScript
import { MarketHistoryResponse } from "@/generated/mammon";
|
|
import { marketApi } from "@/mammon";
|
|
|
|
export type MarketHistory = MarketHistoryResponse;
|
|
|
|
export const getHistory = async (typeId: number): Promise<MarketHistory[]> =>
|
|
(await marketApi.findHistory(typeId)).data; |