Skip to main content
Schema: external.polymarket Table: dim_markets Type: View

What

This table contains all markets and tokens available via the Polymarket CLOB API, enriched with event-level data from the Gamma API. This provides a complete dimensional view that links markets to their parent events, enabling analysis of event-market relationships.

Columns

Column NameData TypeDescription
CONDITION_IDTEXTID of the specific market (CTF condition ID).
QUESTIONTEXTThe actual question the market is based on.
DESCRIPTIONTEXTA detailed description of the market.
TOKENSVARIANTToken information for the market.
TOKEN_1_TOKEN_IDTEXTToken ID for the first token, available on-chain to make the on-chain data human-readable.
TOKEN_1_OUTCOMETEXTOutcome for the first token, typically “yes” or “no.”
TOKEN_1_WINNERTEXTWinner status for the first token.
TOKEN_2_TOKEN_IDTEXTToken ID for the second token, available on-chain to make the on-chain data human-readable.
TOKEN_2_OUTCOMETEXTOutcome for the second token, typically “yes” or “no.”
TOKEN_2_WINNERTEXTWinner status for the second token.
ENABLE_ORDER_BOOKTEXTIndicates if the order book is enabled.
ACTIVEBOOLEANIndicates if the market is currently live.
CLOSEDBOOLEANIndicates if the market is not currently live.
ARCHIVEDBOOLEANIndicates if the market is archived.
ACCEPTING_ORDERSBOOLEANIndicates if the market is accepting orders.
ACCEPTING_ORDER_TIMESTAMPTIMESTAMP_NTZTimestamp when the market started accepting orders.
MINIMUM_ORDER_SIZENUMBERMinimum size of an order in the market.
MINIMUM_TICK_SIZENUMBERMinimum tick size for the market.
QUESTION_IDTEXTID of the question associated with the market (primary join key for event-market mapping).
MARKET_SLUGTEXTURL-friendly slug for the market.
END_DATE_ISOTIMESTAMP_NTZEnd date of the market in ISO format.
GAME_START_TIMETIMESTAMP_NTZStart time of the game/event associated with the market, used to trigger delay.
SECONDS_DELAYNUMBERSeconds of match delay for in-game trading.
FPMMTEXTFixed Product Market Maker (FPMM) Polygon address.
MAKER_BASE_FEENUMBERBase fee for makers in the market.
TAKER_BASE_FEENUMBERBase fee for takers in the market.
NOTIFICATIONS_ENABLEDBOOLEANIndicates if notifications are enabled for the market.
NEG_RISKBOOLEANIndicates if negative risk is present in the market.
NEG_RISK_MARKET_IDTEXTMarket ID for negative risk.
NEG_RISK_REQUEST_IDTEXTRequest ID for negative risk.
REWARDSVARIANTRewards associated with the market.
TAGSVARIANTAll the associated tags in the market, contained in an object.
EVENT_IDTEXTUnique identifier for the parent event (from Gamma API).
EVENT_SLUGTEXTURL-friendly slug for the parent event.
EVENT_TITLETEXTTitle of the parent event.
EVENT_SUBTITLETEXTSubtitle of the parent event.
EVENT_DESCRIPTIONTEXTDescription of the parent event.
EVENT_CATEGORYTEXTCategory classification of the event.
EVENT_SUBCATEGORYTEXTSubcategory classification of the event.
EVENT_ACTIVEBOOLEANIndicates if the event is currently active.
EVENT_CLOSEDBOOLEANIndicates if the event is closed.
EVENT_RESTRICTEDBOOLEANIndicates if the event is restricted.
EVENT_ARCHIVEDBOOLEANIndicates if the event is archived.
EVENT_FEATUREDBOOLEANIndicates if the event is featured.
EVENT_ENABLE_NEG_RISKBOOLEANIndicates if negative risk is enabled for the event.
EVENT_START_DATETIMESTAMP_NTZStart date/timestamp of the event.
EVENT_END_DATETIMESTAMP_NTZEnd date/timestamp of the event.
EVENT_CREATION_DATETIMESTAMP_NTZCreation date/timestamp of the event.
EVENT_TAGSTEXTTags associated with the event (comma-separated).
MARKET_IDTEXTMARKET_ID column
MARKET_SLUG_FROM_EVENTTEXTMarket slug as provided in the event data (may differ from market_slug).
MARKET_CLOB_TOKEN_IDSTEXTCLOB token IDs for connecting markets to trading data.
MARKET_OUTCOMESVARIANTAvailable outcomes for the market (JSON array).
MARKET_OUTCOME_PRICESVARIANTCurrent prices for each outcome (JSON array).
GROUP_ITEM_TITLETEXTTitle for grouped market items.
GROUP_ITEM_THRESHOLDFLOATThreshold value for grouped market items.
MARKET_ACTIVEBOOLEANActive status of the market as reported in event data.
MARKET_CLOSEDBOOLEANClosed status of the market as reported in event data.
MARKET_RESTRICTEDBOOLEANRestricted status of the market as reported in event data.
MARKET_NEG_RISK_OTHERBOOLEANNegative risk flag for the market from event data.
MARKET_END_DATE_FROM_EVENTTIMESTAMP_NTZEnd date of the market as reported in event data.
MARKET_CREATED_ATTIMESTAMP_NTZCreation timestamp of the market as reported in event data.
MARKETS_IN_EVENTNUMBERTotal number of markets in the parent event.
DIM_MARKETS_IDTEXTSurrogate key for the dimension table (conditionid + inserted_timestamp).
_INSERTED_TIMESTAMPTIMESTAMP_NTZTimestamp when the record was inserted into the silver table.
INSERTED_TIMESTAMPTIMESTAMP_NTZTimestamp when the record was inserted into this table.
MODIFIED_TIMESTAMPTIMESTAMP_NTZTimestamp when the record was last modified.