Skip to main content
POST/v2/tradeups/evaluateDEVELOPER+

Trade-up Contracts

Evaluate one CS2 trade-up contract: every possible outcome with its probability, predicted float and wear, priced at the best cash bid after the seller fee, the best cash ask, and the sale median of the outcome's float band, with the contract's cost, expected value, chance of profit and worst and best case on each of those three bases. The rule is CS2's current one: 10 weapon skins of one rarity from Consumer to Classified trade up one rarity, and 5 Covert weapon skins trade up to a knife or gloves. A contract CS2 would refuse is a 400 with a reason code. Prices are integer USD cents; a missing price is null with a reason, never 0. Every plan. CS2 only.

The rule: 10 weapon skins of one rarity, Consumer to Classified, give one skin of the next rarity from the inputs' collections. 5 Covert weapon skins give a knife or gloves from the cases their collections drop from. StatTrak and non-StatTrak inputs never mix, and StatTrak inputs give a StatTrak outcome, so a StatTrak Covert contract never gives gloves and one whose cases drop only gloves is refused (no_outcomes). A Souvenir input counts as a normal one and gives a normal outcome. Knives and gloves are refused as inputs (special_input).

The odds: each input picks its own collection with weight 1/N, and every outcome of the next rarity inside that collection is equally likely, so an outcome's chance is (inputs from its collection) / (N × outcomes in that collection). For a Covert contract the pool is every knife and glove finish of the cases, each equally likely. A Doppler outcome is priced on its phase-less row, since the phase is random.

The output float: each input's float is scaled to its own skin's range, (float − min) / (max − min); the mean of those is normalizedFloat, and each outcome's float is outMin + normalizedFloat × (outMax − outMin). This is the community's measured rule, which matches published contracts to float32 precision; Valve documents the contracts, not the float formula. A plain average of the raw floats gives a different answer whenever an input's range is not 0 to 1. Skins, rarities, collections, cases and float ranges come from the item schema.

The prices come from the latest-prices snapshot (pricesGeneratedAt). An ask is the cheapest cash ask at its buyer cost, whatever the listed skin's float, so a low float can cost more than costCents. A bid is the highest cash buy order after the venue's seller fee. A fresh quote wins over a stale one; a stale one carries stale: true and is counted in staleCostShare and staleProbability. bandSaleMedian is an estimate from past sales (see Float Premium), not a quote.

Reading economics: cashBid is what selling the outcome at once would return, bestAsk what buying it would cost, bandSaleMedian what it has typically sold for at that float. A basis with an unpriced outcome has null totals and a pricedProbability below 1. Requests are not cached (Cache-Control: no-store) and cost 1 rate-limit unit.

Parameters

inputsobject[]required
Body. The contract's inputs: 10 below Covert, or 5 Covert. Repeat an object to use the same skin several times.
inputs[].marketHashNamestringrequired
Body. Exact market hash name of a CS2 weapon skin with its wear, and the StatTrak™ prefix for a StatTrak input, for example UMP-45 | Carbon Fiber (Factory New).
inputs[].floatnumberrequired
Body. The input's float. It must lie inside the skin's float range and inside the wear its name carries.

Response fields

TradeupEvaluationOne contract's outcomes and economics. The body is the object itself, with no envelope.
gamestring
cs2.
kindstring
standard (10 inputs below Covert) or covert (5 Covert inputs, knife and glove outcomes).
inputRaritystring
consumer_grade, industrial_grade, mil_spec_grade, restricted, classified or covert.
outcomeRaritystringnullable
One rarity above inputRarity. Null for a Covert contract, whose outcomes are knives and gloves.
stattrakboolean
Whether the inputs, and so the outcomes, are StatTrak.
normalizedFloatnumber
Mean of the inputs' floats, each scaled to its own skin's float range, 0 to 1. Every outcome's float is this value mapped onto the outcome's range.
pricesGeneratedAtstring (date-time)
generatedAt of the latest-prices snapshot the prices come from.
The inputs in request order, each with its best cash ask.
costCentsintegernullable
Sum of the inputs' best cash asks in USD cents. Null when an input has no cash ask.
staleCostSharenumber
Share of costCents that comes from stale asks, 4 places.
Every possible outcome, highest probability first.
The contract's economics on each price basis.

Nested and shared shapes link to the API Objects reference.

Errors

400Invalid body, or a contract CS2 refuses. The message names the input and a reason code, for example inputs[3] (float_not_in_wear): 0.08 is not Factory New. Codes: unknown_skin, float_not_in_wear, special_input, mixed_stattrak, mixed_rarity, rarity_not_tradeable, float_out_of_range, input_count, no_outcomes.
404The route is switched off.
401Missing Authorization header, unsupported scheme, or a key that is unknown, inactive, expired, or revoked.
403Valid key, but the subscription is inactive/expired or the plan does not include this endpoint.
429Rate limit exceeded; see Retry-After + X-RateLimit-* headers. Pooled per account across all keys.
503No trade-up prices were built in the last 15 minutes, the trade-up catalog is being rebuilt, or a store is unavailable. Retry later.

Companion endpoints

GET/v2/tradeups/top

The best contracts among liquid inputs by expected cash bid value over cost, searched every 10 minutes, with each input's float assumed at the middle of its wear. Filter by rarity and stattrak.

Full reference →
export SKINPRICER_API_KEY="sp_live_•••"

curl -X POST "https://pricing.skinpricer.com/v2/tradeups/evaluate" \
  -H "Authorization: ApiKey $SKINPRICER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inputs":[{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05}]}'
// No SDK helper for this endpoint yet, so call it directly.
const url = new URL("https://pricing.skinpricer.com/v2/tradeups/evaluate");

const res = await fetch(url, {
  method: "POST",
  headers: { Authorization: `ApiKey ${process.env.SKINPRICER_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({"inputs":[{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05}]}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
import os
import requests

res = requests.post(
    "https://pricing.skinpricer.com/v2/tradeups/evaluate",
    json={"inputs":[{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05},{"marketHashName":"UMP-45 | Carbon Fiber (Factory New)","float":0.05}]},
    headers={"Authorization": f"ApiKey {os.environ['SKINPRICER_API_KEY']}"},
    timeout=10,
)
res.raise_for_status()
print(res.json())

Authenticated endpoint: call it with your API key from your own client (see the code sample).

Response 200
{
  "game": "cs2",
  "kind": "standard",
  "inputRarity": "industrial_grade",
  "outcomeRarity": "mil_spec_grade",
  "stattrak": false,
  "normalizedFloat": 0.416667,
  "pricesGeneratedAt": "2026-11-29T13:45:24.720Z",
  "inputs": [
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null},
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null},
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null},
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null},
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null},
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null},
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null},
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null},
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null},
    {"marketHashName": "UMP-45 | Carbon Fiber (Factory New)", "float": 0.05, "bestAsk": {"cents": 9, "market": "waxpeer", "observedAt": "2026-11-29T13:44:30.006Z", "ageSeconds": 95, "stale": false}, "bestAskReason": null}
  ],
  "costCents": 90,
  "staleCostShare": 0,
  "outcomes": [
    {
      "marketHashName": "CZ75-Auto | Tuxedo (Field-Tested)",
      "baseName": "CZ75-Auto | Tuxedo",
      "stattrak": false,
      "probability": 0.333333,
      "float": 0.333333,
      "wear": "Field-Tested",
      "sources": [
        "The Bank Collection"
      ],
      "cashBid": {
        "cents": 17,
        "market": "dmarket",
        "observedAt": "2026-11-29T13:44:01.649Z",
        "ageSeconds": 123,
        "stale": false,
        "grossCents": 18
      },
      "cashBidReason": null,
      "bestAsk": {
        "cents": 17,
        "market": "dmarket",
        "observedAt": "2026-11-29T13:44:01.649Z",
        "ageSeconds": 123,
        "stale": false
      },
      "bestAskReason": null,
      "bandSaleMedian": null,
      "bandSaleMedianReason": "no_curve"
    },
    {
      "marketHashName": "Desert Eagle | Meteorite (Minimal Wear)",
      "baseName": "Desert Eagle | Meteorite",
      "stattrak": false,
      "probability": 0.333333,
      "float": 0.075,
      "wear": "Minimal Wear",
      "sources": [
        "The Bank Collection"
      ],
      "cashBid": {
        "cents": 92,
        "market": "dmarket",
        "observedAt": "2026-11-29T13:44:01.926Z",
        "ageSeconds": 123,
        "stale": false,
        "grossCents": 97
      },
      "cashBidReason": null,
      "bestAsk": {
        "cents": 74,
        "market": "lis-skins",
        "observedAt": "2026-11-29T13:45:15.377Z",
        "ageSeconds": 49,
        "stale": false
      },
      "bestAskReason": null,
      "bandSaleMedian": null,
      "bandSaleMedianReason": "no_curve"
    },
    {
      "marketHashName": "Galil AR | Tuxedo (Field-Tested)",
      "baseName": "Galil AR | Tuxedo",
      "stattrak": false,
      "probability": 0.333333,
      "float": 0.333333,
      "wear": "Field-Tested",
      "sources": [
        "The Bank Collection"
      ],
      "cashBid": {
        "cents": 65,
        "market": "dmarket",
        "observedAt": "2026-11-29T13:44:03.546Z",
        "ageSeconds": 121,
        "stale": false,
        "grossCents": 68
      },
      "cashBidReason": null,
      "bestAsk": {
        "cents": 64,
        "market": "lis-skins",
        "observedAt": "2026-11-29T13:45:15.377Z",
        "ageSeconds": 49,
        "stale": false
      },
      "bestAskReason": null,
      "bandSaleMedian": {
        "cents": 99,
        "market": "dmarket_sell_listing",
        "floatBand": {
          "kind": "float_bin",
          "fromFloat": 0.33,
          "toFloat": 0.34
        },
        "comparableSaleCount": 9,
        "comparableWindowDays": 56,
        "confidence": "high",
        "fittedAt": "2026-11-29T09:09:15.000Z"
      },
      "bandSaleMedianReason": null
    }
  ],
  "economics": {
    "cashBid": {
      "expectedValueCents": 58,
      "expectedProfitCents": -32,
      "expectedReturn": 0.6444,
      "profitProbability": 0.3333,
      "worstCaseCents": 17,
      "bestCaseCents": 92,
      "pricedProbability": 1,
      "staleProbability": 0
    },
    "bestAsk": {
      "expectedValueCents": 52,
      "expectedProfitCents": -38,
      "expectedReturn": 0.5778,
      "profitProbability": 0,
      "worstCaseCents": 17,
      "bestCaseCents": 74,
      "pricedProbability": 1,
      "staleProbability": 0
    },
    "bandSaleMedian": {
      "expectedValueCents": null,
      "expectedProfitCents": null,
      "expectedReturn": null,
      "profitProbability": null,
      "worstCaseCents": null,
      "bestCaseCents": null,
      "pricedProbability": 0.3333,
      "staleProbability": 0
    }
  }
}
Response headers
X-RateLimit-Limit: <per-minute, set by your plan>
X-RateLimit-Remaining: <remaining this minute>
X-RateLimit-Reset: <seconds to reset>
X-Request-ID: req_xxxxxxxxxxxxxxxx

Usage & licensing

Access to the API and its data is governed by our Terms of Service. You may not resell or redistribute the data, use it to build a competing service, or exceed your plan’s rate limits, and you must attribute SkinPricer as the source wherever the Terms permit you to display it. Abuse may be throttled or suspended.