Все предметы торговой площадки Steam для игры одним запросом: последняя, медианная, минимальная и максимальная цены, объём продаж, тренды и ордера.
interface Response {
status: "OK";
data: {
marketHashName: string;
itemNameId: string;
image: string | null;
appId: string;
type: string | null;
prices: {
unstableReason?:
| "LOW_SALES_3PLUS_MONTHS"
| "LOW_SALES_MONTH"
| "LOW_SALES_OVERALL"
| "LOW_SALES_WEEK"
| "NO_SALES_3PLUS_MONTHS";
unstable: boolean | null;
sold: {
avgDailyVolume: number | null;
last90d: number | null;
last30d: number | null;
last7d: number | null;
last24h: number | null;
};
median: number | null;
max: number | null;
avg: number | null;
min: number | null;
latest: number | null;
trend: {
last24h: number | null;
last48h: number | null;
last7d: number | null;
last30d: number | null;
last60d: number | null;
last90d: number | null;
};
};
histogram: {
lowestSellOrder: number | null;
highestBuyOrder: number | null;
buyOrderCount: number;
sellOrderCount: number;
};
updatedAt: string;
}[];
start: number;
count: number;
totalCount: number;
}