---
title: "Single-market detail series."
method: GET
path: "/v1/analytics/markets/snapshots/{chainId}/{marketIdx}"
tags: ["markets"]
---

# Single-market detail series.

`GET /v1/analytics/markets/snapshots/{chainId}/{marketIdx}`

## Path parameters

- `chainId` string, required
- `marketIdx` string, required

## Query parameters

- `windowSeconds` string
- `window` string
- `timeframeSeconds` string

## Response `200`

Single-market detail series.

- object
  - `success` true, required
  - `data` object[], required
    - `bucketStart` number, required
    - `marketId` string, required
    - `assetToken` string, required
    - `assetDecimals` number, required
    - `isLegacy` union, required
      - number
      - boolean
    - `ppsRaw` string, required
    - `watermarkPpsRaw` string, required
    - `withdrawableRaw` string, required
    - `assetPriceUsdRaw` string, required
    - `ybPriceUsdRaw` string, required
    - `virtualPriceRaw` string, required
    - `xcpProfitRaw` string, required
    - `lpXcpProfitRaw` string, required
    - `priceScaleRaw` string, required
    - `policyAddress` string, nullable, required
    - `policyEmaFastRaw` string, nullable, required
    - `policyEmaSlowRaw` string, nullable, required
    - `policyPriceScaleRaw` string, nullable, required
    - `policyKappaRaw` string, nullable, required — 1e18-scaled. Null when unavailable.
    - `donationSharesRaw` string, required
    - `availableSharesRaw` string, required
    - `lastDonationReleaseTs` number, required
    - `donationDuration` number, required
    - `ybEmissionsPerShareRaw` string, required
    - `pendingFeesUsdRaw` string, required
    - `adminFeesRaw` string, required
    - `adminFeesUsdRaw` string, required
    - `priceOracleRaw` string, required
    - `liquidityTotalAssetRaw` string, required — LT liquidity, always 18 decimals whatever the asset's own decimals are — do not apply assetDecimals. TVL in USD = liquidityTotalAssetRaw * assetPriceUsdRaw / 1e18.
    - `liquidityStakedAssetRaw` string, required
    - `liquidityAdminAssetRaw` string, required
    - `stakedBasePpsRaw` string, nullable, required
    - `stakedBaseWithdrawableRaw` string, nullable, required
    - `stakedPpsRaw` string, nullable, required
    - `stakedWithdrawableRaw` string, nullable, required
    - `crvUsdBalanceRaw` string, required — Cryptopool crvUSD reserve, 18 decimals.
    - `assetBalanceRaw` string, required — Cryptopool asset reserve, in the asset's own decimals (apply assetDecimals).
    - `dynamicFeeRaw` string, required — Cryptopool dynamic fee, as a fraction scaled by 1e18 (4300000000000000 = 0.43%).
    - `sampleBlockNumber` number, required
    - `sampleBlockTimestamp` number, required
  - `timestamp` string, required

## Other responses

- `400` — Invalid request
- `500` — Internal error
- `502` — Upstream data/schema error

---

[API](https://skmtc.dev/yieldbasis/apis/yieldbasis-api.md) · [All operations](https://skmtc.dev/yieldbasis/apis/yieldbasis-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yieldbasis/yieldbasis-api/revisions/b5b24c7435c8/schema)
