GET /v1/market/steam/latest
返回所有饰品最新的 Steam 买/卖订单簿全深度快照。
响应未压缩时约为 100 MB,因此必须使用 Accept-Encoding: gzip。完整档位以列式数组返回:卖价按升序排列,买价按降序排列,每个 volumes 值对应相同数组索引上的价格。
订单簿约每 5 分钟更新一次。
访问
适用于所有套餐。
请求
GETapi.cs2.sh/v1/market/steam/latest
curl https://api.cs2.sh/v1/market/steam/latest \
-H "Authorization: Bearer <<YOUR_API_KEY>>" \
-H "Accept-Encoding: gzip" --compressed响应
{
"response_time": "2026-07-26T18:54:14.123567967Z",
"currency": "USD",
"as_of": "2026-07-26T18:53:53.202Z",
"items": {
"USP-S | Printstream (Factory New)": {
"updated_at": "2026-07-26T18:52:21.42Z",
"collected_at": "2026-07-26T18:52:56.46Z",
"top": {
"ask": 169.14,
"ask_volume": 70,
"bid": 155.05,
"bid_volume": 2951
},
"depth": {
"ask_levels": 2,
"bid_levels": 2,
"asks": {
"prices": [
169.14,
169.4
],
"volumes": [
1,
1
]
},
"bids": {
"prices": [
155.05,
154.88
],
"volumes": [
1,
1
]
}
}
}
}
}响应字段
SteamOrderbookLatestResponse 字段:
| 字段 | 类型 | 必需 | 描述 |
|---|---|---|---|
response_time | string (date-time) | 是 | 此快照响应的生成时间。 |
currency | string | 是 | 货币代码(始终为 USD)。 |
as_of | string (date-time) | 是 | 整个快照中最新的 updated_at。 |
items | Record<string, SteamOrderbookItem> | 是 | 具有当前订单簿数据的常规饰品,按 market_hash_name 键控。 |
订单簿数据
| 字段 | 描述 |
|---|---|
items.<name>.top | 最优买/卖价以及 Steam 卖/买挂单总数。 |
items.<name>.depth | 完整的列式档位:asks.prices/asks.volumes 和 bids.prices/bids.volumes。 |
items.<name>.updated_at、collected_at | Steam 的更新时间与 cs2.sh 的抓取时间。 |
as_of | 整个快照中最新的 updated_at。 |
- 不包含变体饰品。
完整结构:SteamOrderbookItem、SteamOrderbookTop、SteamOrderbookDepth、SteamOrderbookDepthSide。
错误
503 service_unavailable 表示最新订单簿快照缺失、过期或为空。共有错误见请求错误。