GET /v1/market/steam/latest
返回所有饰品最新的 Steam 买/卖订单簿全深度快照。
此快照包含每件被追踪的常规饰品,因此响应体较大(约 100mb)——必须发送 Accept-Encoding: gzip。完整档位以列式数组返回:depth.asks.prices/depth.asks.volumes 和 depth.bids.prices/depth.bids.volumes。卖价按升序排列,买价按降序排列,volumes 是每个价位的数量。
此端点的价格对流动性高的饰品每 10 分钟更新一次,对其他饰品每 60 分钟更新一次——流动性由 liquidity/items 决定。
访问
所有套餐均可使用(Developer、Scale、Enterprise)。
请求
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响应字段
每件饰品携带 updated_at、collected_at、top 和 depth。top 包含最优买/卖价以及 Steam 卖/买挂单总数。depth 包含完整的列式买卖档位。饰品名称是 items 中的键,因此不会在每个饰品值内重复。不包含变体饰品。
完整结构:SteamOrderbookItem、SteamOrderbookTop、SteamOrderbookDepth、SteamOrderbookDepthSide。
错误
| 状态 | 触发条件 |
|---|---|
401 / 403 | 缺少密钥、密钥无效或套餐无权访问。 |
429 | 触发限流。 |
503 service_unavailable | 最新订单簿缓存缺失、过期或为空。 |
5xx | 服务端问题。 |
响应
json
{
"response_time": "2026-06-14T12:00:00Z",
"currency": "USD",
"as_of": "2026-06-14T11:57:00Z",
"items": {
"AK-47 | Redline (Field-Tested)": {
"updated_at": "2026-06-14T11:57:00Z",
"collected_at": "2026-06-14T11:57:05Z",
"top": {
"ask": 41.32,
"ask_volume": 1120,
"bid": 41.24,
"bid_volume": 53678
},
"depth": {
"ask_levels": 2,
"bid_levels": 2,
"asks": {
"prices": [
41.32,
41.33
],
"volumes": [
2,
4
]
},
"bids": {
"prices": [
41.24,
41.23
],
"volumes": [
27,
18
]
}
}
}
}
}返回 SteamOrderbookLatestResponse 对象。完整结构见对象。