The polygon.predictions.user_positions table provides daily snapshots of user holdings across all prediction markets. Each row represents a user’s position in a specific outcome token on a given day, enriched with comprehensive market metadata. Use this table for portfolio analysis, position tracking, exposure calculation, and understanding user investment patterns across different market categories.

Table Columns

Unique Key: unique_id
Column NameData TypeDescription
projectVARCHARProject name (ex. polymarket).
protocolVARCHARProtocol name (ex. polymarket).
unique_idVARCHARUnique identifier combining day, address, and token_id.
dayDATEDate of the position snapshot.
addressVARCHARUser wallet address holding the position.
token_addressVARCHARConditional Tokens contract address.
token_idVARCHARToken ID for the specific outcome token.
token_balanceFLOATNumber of outcome tokens held, normalized by dividing by 1e6.
condition_idVARCHARUnique condition identifier for the market.
market_unique_idVARCHARUnique key for grouping related markets.
market_idVARCHARMarket identifier from onchain data.
market_nameVARCHARMarket name (uses question for single markets).
market_descriptionVARCHARMarket description from onchain events.
question_idVARCHARUnique question identifier.
questionVARCHARMarket question text.
question_descriptionVARCHARMarket description from API.
token_nameVARCHARCombined outcome and question name.
token_outcomeVARCHARToken outcome name (Yes/No).
is_winnerBOOLEANWhether this outcome won the market.
market_activeBOOLEANWhether market is currently active.
market_closedBOOLEANWhether market is closed.
market_accepting_ordersBOOLEANWhether market is accepting new orders.
categoryVARCHARMain market category.
sub_categoryVARCHARSpecific market subcategory.
tagsVARCHARAPI category tags.
neg_riskBOOLEANWhether this is a NegRisk market.
resolved_byVARCHAREntity responsible for resolution.
oracleVARCHAROracle contract address for market resolution.
resolution_outcomeVARCHARMarket resolution outcome if resolved.
resolved_atTIMESTAMP_NTZ(9)Market resolution timestamp.
_created_atTIMESTAMP_NTZ(9)Record creation timestamp.
_updated_atTIMESTAMP_NTZ(9)Record update timestamp.