Files
gemory/src/market/history/MarketHistory.ts
T
2026-06-11 20:46:40 +02:00

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;