Skip to main content

Model Configs

A fair-value model config identifies which pricing model Tradepost uses to value products in an asset type. Configs are versioned, so a new model can run alongside an older one without affecting strategies pinned to the previous version.

You reference a config's id when building strategiesfilterCriteria.fvModelConfigId scopes price and confidence lookups to that model. For trading cards the current model is CardHedge, with more models coming soon.

Listing model configs

query M($i: ListFairValueModelConfigsInput!) {
listFairValueModelConfigs(input: $i) {
modelConfigs { id name version description assetTypeId isActive }
grouped {
assetTypeId
assetTypeName
modelConfigs { id name version isActive }
}
error { message code }
}
}
FieldTypeDescription
assetTypeIdIDFilter to one asset type — read modelConfigs (flat list). Omit to get everything — read grouped, bucketed by asset type with names included
{ "i": { "assetTypeId": "<assetTypeId>" } }

FairValueModelConfig

FieldTypeDescription
idID!Pass this as filterCriteria.fvModelConfigId in a strategy
nameString!Human-readable name (e.g. "CardHedge Trading Card Market")
versionString!Internal model version identifier. Informational — pass id, not version, when configuring a strategy
descriptionStringWhat the model does
assetTypeIdID!Asset type this config prices
isActiveBoolean!Whether the config is currently in use. Inactive configs may still be referenced for historical lookups