Legacy V1/V2YouPin Market Cap

GET /v1/indexes/market-cap

Legacy V1/V2 reference. These routes stay supported for existing integrations. V3 returns every price in USD or 29 other currencies, with the marketplace's own value alongside — see /v3/indexes/market-cap.

Daily or hourly aggregate YouPin market cap — the sum of

price × listing count across the YouPin898 catalogue, in CNY.

This is the same cleaned series shown on the public Market Index page:

  • unit price must be > 0 and < 1,000,000 RMB (drops joke listings)
  • at least 2 active listings (a single seller cannot move the index)
  • only skins that exist in the internal catalogue

Daily data is cached server-side for 6 hours. Hourly data is cached for

10 minutes and reads the pre-aggregated hourly table when available.

market_cap_rmb is a decimal string. cleaned is true when the

outlier filters were applied; false means a fast fallback from the

precomputed daily table was used.

Access

Available on Enterprise.

Query parameters

ParameterDescription
resolution
Point density. Defaults to daily.
days
Lookback for resolution=daily (clamped to 7–365).
hours
Lookback for resolution=hourly (clamped to 12–168).

Request

GET https://api.cspriceapi.com/v1/indexes/market-cap

curl -s --compressed "https://api.cspriceapi.com/v1/indexes/market-cap?resolution=daily&days=30" \
  -H "x-api-key: YOUR_API_KEY"

Response

{
  "currency": "CNY",
  "resolution": "daily",
  "days": 30,
  "cleaned": true,
  "formula": "sum(price * listing_count)",
  "filters": {
    "max_price_rmb": 1000000,
    "min_listings": 2
  },
  "current": {
    "day": "2026-09-05",
    "market_cap_rmb": "1854321000.2500",
    "listing_count": 412003
  },
  "change_7d": "1.24",
  "change_range": "-2.10",
  "from": "2026-08-07",
  "to": "2026-09-05",
  "count": 2,
  "data": [
    {
      "day": "2026-08-07",
      "market_cap_rmb": "1894000000.0000",
      "listing_count": 401220
    },
    {
      "day": "2026-09-05",
      "market_cap_rmb": "1854321000.2500",
      "listing_count": 412003
    }
  ],
  "source": "YouPin Market Cap",
  "requestor": "customer@example.com",
  "plan": "enterprise",
  "timestamp": "2026-09-05T16:00:00.000Z"
}

Response fields

FieldTypeRequiredDescription
currencystringYes–
resolutionstringYes–
daysintegerNoPresent for resolution=daily.
hoursintegerNoPresent for resolution=hourly.
cleanedbooleanYestrue when outlier filters were applied. false when the precomputed market_cap_daily fallback was used.
formulastringNo–
filtersobjectNo–
filters.max_price_rmbintegerNo–
filters.min_listingsintegerNo–
currentanyNoLatest point in the returned series, or null if empty.
change_7dstringNoPercent change vs ~7 days earlier. null if not enough history.
change_rangestringNoPercent change from the first to the last point in this response.
fromstring (date)NoFirst daily point (resolution=daily only).
tostring (date)NoLast daily point (resolution=daily only).
countintegerYes–
dataany[]Yes–
sourcestringYes–
requestorstring (email)No–
planstringNo–
timestampstring (date-time)YesISO-8601 UTC timestamp (millisecond precision).

Errors

  • 400Invalid parameters.
  • 401Missing, invalid, disabled or expired API key.
  • 403The API key is valid but is not allowed to call this endpoint (endpoint ACL).
  • 429Rate limit exceeded (10 requests per second per key). Retry after 1 second.
  • 500Internal server error – temporary upstream failure, etc.

This endpoint as Markdown (.md) · openapi.yaml