import { MarketHistoryResponse } from "@/generated/mammon"; import { marketApi } from "@/mammon"; export type MarketHistory = MarketHistoryResponse; export const getHistory = async (typeId: number): Promise => (await marketApi.findHistory(typeId)).data;