traded.gg logotraded.gg
Skip to documentation content

get_metrics

Query named market metrics across cards or sets.

Arguments and Behavior

The tool can appear in discovery before metric reads are enabled for your credentials. Metric queries have no public REST reference.

Uniform metric values for named metrics, windows and subjects: one row per subject, cohort, metric and window with value, unit, observation count, quality, availability and reason. Discover ids with meta(topic=metrics). Omit grades and one card fans out to every grade and finish cohort, so pass grades to narrow it and page large answers with cursor. Rows pass through untouched, including null values with their availability and reason; unestablished finish/grade cells are withheld into not_shown. Unrecognized ids answer invalid_params with the valid list.

metricsarray · Required

Metric ids, e.g. median_price. Discover ids with meta(topic=metrics); Unrecognized ids answer invalid_params with the valid list.

windowsarray · Required

Trailing windows, e.g. 7d, 30d or 90d. Unrecognized windows answer invalid_params with the valid list.

subject_typestring · Optional

Subject type, e.g. card (default). Only card is served today; set and index answer invalid_params listing the current types until added.

Default "card"

subject_idsarray · Required

Subject ids, 1 to 100 (same format as card_id for cards).

gradesarray · Optional

Grade keys narrowing the cohorts, e.g. PSA:10. Omit for every grade.

finishstring · Optional

Print finish cohort. A metric without a finish grain rejects it.

languagestring · Optional

Language token, e.g. en.

editionstring · Optional

Edition, e.g. first_edition.

stampstring · Optional

Stamp token.

gamestring · Optional

TCG: pokemon (default), onepiece, or riftbound.

optionsobject · Optional

Open per-metric options. Unrecognized options answer invalid_params with the valid list.

cursorstring · Optional

Opaque page cursor from the previous page.