跳到主要内容
GET/v2/nbbo/depth/historyPRO+

挂单簿历史

单件饰品按时间存储的挂单档位:每个市场挂单簿、每个 UTC 时间桶内最后一份完整的在售与求购档位,每边最多 20 档,含每档的价格、数量与订单数。Steam 档位 CS2 自 2026-09-01 起、Rust 自 2026-09-08 起可查。没有档位的时间桶不出现,从不记为零。价格为整数美分,或请求的 currency。Pro 与 Enterprise 套餐。支持 CS2 与 Rust。

/v2/nbbo/depth 背后的历史:每个市场挂单簿、每个 UTC 时间桶内最后一份完整的在售与求购档位。档位从第 1 档起连续无缺口才算完整。Steam(steamcommunity,markets 的默认值)每边最多存储 20 档,CS2 自 2026-09-01 起、Rust 自 2026-09-08 起;其他市场大多只存储一档。

缺失的数据从不记为零。时间桶内某一边没有档位时为 null,两边都没有档位的时间桶不出现在 points 中。实时深度读取会丢弃的求购档位(WhiteMarket 被屏蔽的 $2,000 求购、数量为零的首档求购)在这里同样被丢弃。上方示例每边只列出三档;Steam 档位最多 20 档。

范围:from 与 to 都包含在内,默认为最近 24 小时。HOUR_1(默认)每次请求最多 90 天;DAY_1 不限范围。时间桶数乘以市场数不能超过 10,000。超过任一上限返回 400。

Pro 与 Enterprise 套餐(历史数据功能)。范围不超过七天的读取与其他历史读取一样计 5 个限流单位;更长的范围计 15 个。

参数

gamestring必填
查询参数。cs2 或 rust。
marketHashNamestring可选
查询参数。精确的 market hash name。此参数与 id 二选一(都缺失返回 400)。
idstring可选
查询参数。规范饰品 id。此参数与 marketHashName 二选一(都缺失返回 400)。
marketsstring可选
查询参数。市场 id CSV。默认:steamcommunity,唯一存储完整档位的市场;其他市场大多只存储一档。
fromstring可选
查询参数。范围起点(含,ISO 8601)。默认:to 之前 24 小时。不能晚于 to。
tostring可选
查询参数。范围终点(含,ISO 8601)。默认:当前时间。
intervalstring可选
查询参数。按 UTC 对齐的时间桶宽度:HOUR_1(默认)每次请求最多 90 天,DAY_1 不限范围。时间桶数乘以市场数不能超过 10,000;超过任一上限返回 400。
currencystring可选
查询参数。ISO 4217 代码,例如 EUR、GBP 或 JPY。按同一个当前汇率换算每档 price,汇率见 fx 块(fxBasis: "current");originalPriceCents 保留平台原币种金额。缺省或 USD:美分。见以其他货币计价。

响应字段

DepthHistoryResponse单件饰品在一个范围内存储的档位,每个市场挂单簿一条序列。
marketHashNamestring
Market hash name。
canonicalItemIdstring
规范饰品 id。
intervalstring
实际使用的 HOUR_1 或 DAY_1。
fromstring (date-time)
实际返回范围的起点。
tostring (date-time)
实际返回范围的终点。
currencystring
每档 price 的货币:USD 或请求的 currency。
fxFx
仅当 /v2 请求传入 USD 以外的 currency 时出现:本响应中所有价格换算所用的那一个汇率。见以其他货币读取价格。
范围内至少有一份档位的每个市场挂单簿一条序列。没有存储任何档位时为空。

嵌套与共享结构链接到 API 对象 参考页。

错误

400game、饰品标识、markets、范围、interval 或 currency 无效,该游戏不支持的市场,HOUR_1 范围超过 90 天,或时间桶数乘以市场数超过 10,000。
401缺少 Authorization 头、认证方案不支持,或密钥未知、未激活、已过期、已吊销。
403密钥有效,但套餐不是 Pro 或 Enterprise,或订阅未激活/已过期。
404该游戏中没有收录此饰品。
409饰品名称有歧义;请改用 id。
429超出速率限制;见 Retry-After 与 X-RateLimit-* 响应头。配额按账号合并计算,所有密钥共享。
5xx上游快照不可用或服务端问题。请退避后重试。
export SKINPRICER_API_KEY="sp_live_•••"

curl -G "https://pricing.skinpricer.com/v2/nbbo/depth/history" \
  --data-urlencode "game=cs2" \
  --data-urlencode "marketHashName=AK-47 | Redline (Field-Tested)" \
  --data-urlencode "interval=HOUR_1" \
  -H "Authorization: ApiKey $SKINPRICER_API_KEY"
// No SDK helper for this endpoint yet, so call it directly.
const url = new URL("https://pricing.skinpricer.com/v2/nbbo/depth/history");
url.searchParams.set("game", "cs2");
url.searchParams.set("marketHashName", "AK-47 | Redline (Field-Tested)");
url.searchParams.set("interval", "HOUR_1");

const res = await fetch(url, {
  headers: { Authorization: `ApiKey ${process.env.SKINPRICER_API_KEY}` },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
import os
import requests

res = requests.get(
    "https://pricing.skinpricer.com/v2/nbbo/depth/history",
    params={"game": "cs2", "marketHashName": "AK-47 | Redline (Field-Tested)", "interval": "HOUR_1"},
    headers={"Authorization": f"ApiKey {os.environ['SKINPRICER_API_KEY']}"},
    timeout=10,
)
res.raise_for_status()
print(res.json())

需要认证的接口:请在你自己的客户端中携带 API 密钥调用(见代码示例)。

响应 200
{
  "marketHashName": "AK-47 | Redline (Field-Tested)",
  "canonicalItemId": "cmlofczf90qj401vsd80dskd1",
  "interval": "HOUR_1",
  "from": "2026-11-28T10:00:00.000Z",
  "to": "2026-11-28T11:59:59.000Z",
  "currency": "USD",
  "series": [
    {
      "market": "steamcommunity",
      "marketItemId": "AK-47 | Redline (Field-Tested)",
      "points": [
        {
          "bucket": "2026-11-28T10:00:00.000Z",
          "asks": {
            "ts": "2026-11-28T10:50:01.859Z",
            "levels": [
              { "price": 2707, "originalPriceCents": 2707, "originalCurrency": "USD", "quantity": 3, "ordersCount": 3 },
              { "price": 2772, "originalPriceCents": 2772, "originalCurrency": "USD", "quantity": 1, "ordersCount": 1 },
              { "price": 2780, "originalPriceCents": 2780, "originalCurrency": "USD", "quantity": 8, "ordersCount": 8 }
            ]
          },
          "bids": {
            "ts": "2026-11-28T10:50:01.859Z",
            "levels": [
              { "price": 2501, "originalPriceCents": 2501, "originalCurrency": "USD", "quantity": 1, "ordersCount": 1 },
              { "price": 2500, "originalPriceCents": 2500, "originalCurrency": "USD", "quantity": 15, "ordersCount": 15 },
              { "price": 2444, "originalPriceCents": 2444, "originalCurrency": "USD", "quantity": 20, "ordersCount": 20 }
            ]
          }
        },
        {
          "bucket": "2026-11-28T11:00:00.000Z",
          "asks": {
            "ts": "2026-11-28T11:50:01.995Z",
            "levels": [
              { "price": 2707, "originalPriceCents": 2707, "originalCurrency": "USD", "quantity": 2, "ordersCount": 2 },
              { "price": 2772, "originalPriceCents": 2772, "originalCurrency": "USD", "quantity": 1, "ordersCount": 1 },
              { "price": 2780, "originalPriceCents": 2780, "originalCurrency": "USD", "quantity": 8, "ordersCount": 8 }
            ]
          },
          "bids": {
            "ts": "2026-11-28T11:50:01.995Z",
            "levels": [
              { "price": 2500, "originalPriceCents": 2500, "originalCurrency": "USD", "quantity": 16, "ordersCount": 16 },
              { "price": 2444, "originalPriceCents": 2444, "originalCurrency": "USD", "quantity": 20, "ordersCount": 20 },
              { "price": 2443, "originalPriceCents": 2443, "originalCurrency": "USD", "quantity": 2, "ordersCount": 2 }
            ]
          }
        }
      ]
    }
  ]
}
响应头
X-RateLimit-Limit: <每分钟配额,由套餐决定>
X-RateLimit-Remaining: <本分钟剩余次数>
X-RateLimit-Reset: <距重置的秒数>
X-Request-ID: req_xxxxxxxxxxxxxxxx

使用与许可

API 及其数据的使用受我们的服务条款(英文)约束:不得转售或再分发数据,不得用于构建竞争性服务, 不得超出套餐的速率限制;在条款允许展示数据的场景下须注明数据来源为 SkinPricer。滥用行为可能被限流或封禁。