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
StatTrak™ prefix for a StatTrak input, for example UMP-45 | Carbon Fiber (Factory New).Response fields
cs2.standard (10 inputs below Covert) or covert (5 Covert inputs, knife and glove outcomes).consumer_grade, industrial_grade, mil_spec_grade, restricted, classified or covert.inputRarity. Null for a Covert contract, whose outcomes are knives and gloves.generatedAt of the latest-prices snapshot the prices come from.costCents that comes from stale asks, 4 places.Nested and shared shapes link to the API Objects reference.
Errors
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.Authorization header, unsupported scheme, or a key that is unknown, inactive, expired, or revoked.Companion endpoints
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.
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).
{
"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
}
}
}