跳到主要内容
GET/v1/containers/:id/simulateDEVELOPER+

开箱模拟

用可复现的种子模拟 n 次相互独立的 CS2 单次开箱。返回完整的估值,外加抽样收益统计与收益直方图。n 是各为一次开箱的试验次数,不是 n 次开箱的组合。抽样使用估值的模型概率,因此同样的注意事项适用。价格为整数美分。

n 是相互独立的单次开箱试验次数,而不是 n 次开箱的组合:统计描述的是一次开箱,抽样 n 次。相同的 seed 与估值返回相同的抽样。simulation.statistics 是抽样值,valuation.statistics 是抽样前的模型值,因此没有抽到稀有物品的样本,其 EV 会远低于模型值。估值统计为 null 时 simulation 也为 null;估计型估值会把未定价结果按零收入抽样。

参数

idstring必填
路径段。CS2 箱子 id、规范饰品 id 或目录 slug,例如 chroma-3-case。
keyCostCentsinteger可选
查询参数。覆盖假设的钥匙成本,0 到 100000 美分。
ninteger可选
查询参数。相互独立的单次开箱试验次数,1 到 10000。默认 1000。
seedinteger可选
查询参数。无符号 32 位种子,0 到 4294967295。默认 574。相同的种子与估值得到相同的抽样。

响应字段

UnboxingSimulationResponse一份估值加上抽样的单次开箱。
抽样所用的箱子估值。
simulationUnboxingSimulationnullable
抽样结果;valuation.statistics 为 null 时为 null。

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

错误

400箱子 id 无效,keyCostCents 不在 0 到 100000 之间,n 不在 1 到 10000 之间,或 seed 不在 0 到 4294967295 之间。
404未找到该 CS2 箱子。
401缺少 Authorization 头、认证方案不支持,或密钥未知、未激活、已过期、已吊销。
403密钥有效,但订阅未激活/已过期,或套餐不含此接口。
429超出速率限制;见 Retry-After 与 X-RateLimit-* 响应头。配额按账号合并计算,所有密钥共享。
5xx上游快照不可用或服务端问题。请退避后重试。
export SKINPRICER_API_KEY="sp_live_•••"

curl -G "https://pricing.skinpricer.com/v1/containers/chroma-3-case/simulate" \
  --data-urlencode "n=1000" \
  --data-urlencode "seed=574" \
  -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/v1/containers/chroma-3-case/simulate");
url.searchParams.set("n", "1000");
url.searchParams.set("seed", "574");

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/v1/containers/chroma-3-case/simulate",
    params={"n": "1000", "seed": "574"},
    headers={"Authorization": f"ApiKey {os.environ['SKINPRICER_API_KEY']}"},
    timeout=10,
)
res.raise_for_status()
print(res.json())

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

响应 200
{
  "valuation": {
    "containerId": "cmlop6t2a00kq01yo4hnc8z1w",
    "slug": "chroma-3-case",
    "name": "Chroma 3 Case",
    "game": "cs2",
    "calculatedAt": "2026-10-24T21:00:04.118Z",
    "modelVersion": "unboxing-v2-uniform-float-phase-proxy",
    "feeModelVersion": "exec-fees-v3-estimated",
    "oddsSource": "https://www.csgo.com.cn/news/gamebroad/20170911/206155.html",
    "assumptions": [
      "Seller fees are estimates; bids do not guarantee a future sale or executable size.",
      "Pattern premiums, trade locks, taxes and future price changes are not modeled.",
      "Wear is modeled as uniform float within exact source bounds; actual wear odds can differ.",
      "Doppler phases share one family and use the phase-less market price; phase and gem premiums are not modeled.",
      "Key cost is an assumed USD store price; regional prices can differ."
    ],
    "status": "available",
    "unavailableReason": null,
    "caseQuote": {
      "market": "skinport",
      "priceCents": 294,
      "updatedAt": "2026-10-24T20:59:12.000Z"
    },
    "keyCostCents": 249,
    "keyCostSource": "assumed_usd_key_price",
    "openingCostCents": 543,
    "catalogCoverageProbability": 1,
    "pricedProbability": 1,
    "unpricedProbability": 0,
    "statisticsBasis": "fresh_cash_bids",
    "pricedContributionCents": 280,
    "statistics": {
      "expectedProceedsCents": 280,
      "expectedProfitCents": -263,
      "edgeBps": -4843,
      "varianceCentsSquared": 4183592,
      "payoffP05Cents": -539,
      "payoffMedianCents": -533,
      "payoffP95Cents": -463,
      "valueAtRisk5Cents": 539,
      "profitProbability": 0.009112,
      "rareSpecialProbability": 0.002557544757
    },
    "navCents": 31,
    "premiumBps": 84839,
    "outcomes": [
      {
        "canonicalItemId": "cmlofd2xk0rq101vs3b7ty9a2",
        "familyName": "MP9 | Bioleak",
        "exterior": "FIELD_TESTED",
        "isStatTrak": false,
        "rare": false,
        "probability": 0.033765,
        "quote": {
          "market": "dmarket",
          "priceCents": 4,
          "updatedAt": "2026-10-24T20:58:31.000Z"
        },
        "missingReason": null
      },
      {
        "canonicalItemId": "cmlofb7qe0hz301yo8m2cd4wq",
        "familyName": "★ Karambit | Doppler",
        "exterior": "FACTORY_NEW",
        "isStatTrak": false,
        "rare": true,
        "probability": 0.000067136,
        "quote": {
          "market": "csfloat",
          "priceCents": 98510,
          "updatedAt": "2026-10-24T20:57:44.000Z"
        },
        "missingReason": null
      }
    ]
  },
  "simulation": {
    "n": 1000,
    "seed": 574,
    "statistics": {
      "expectedProceedsCents": 37,
      "expectedProfitCents": -506,
      "edgeBps": -9321,
      "varianceCentsSquared": 52270,
      "payoffP05Cents": -539,
      "payoffMedianCents": -533,
      "payoffP95Cents": -463,
      "valueAtRisk5Cents": 539,
      "profitProbability": 0.007,
      "rareSpecialProbability": 0
    },
    "histogram": [
      { "payoffCents": -540, "count": 30 },
      { "payoffCents": -539, "count": 160 },
      { "payoffCents": -536, "count": 200 },
      { "payoffCents": -533, "count": 300 },
      { "payoffCents": -520, "count": 150 },
      { "payoffCents": -495, "count": 100 },
      { "payoffCents": -463, "count": 53 },
      { "payoffCents": 2207, "count": 7 }
    ]
  }
}
响应头
X-RateLimit-Limit: <每分钟配额,由套餐决定>
X-RateLimit-Remaining: <本分钟剩余次数>
X-RateLimit-Reset: <距重置的秒数>
X-Request-ID: req_xxxxxxxxxxxxxxxx

使用与许可

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