Skip to main content
Schema: crosschain.defi Table: dim_prediction_markets Type: View

What

This is the central table to all dimensions pertaining to Polymarket markets, events, questions, outcomes, and related metadata. It contains all markets and tokens available via various prediction market APIs, providing a comprehensive view of market and token data.

Columns

Column NameData TypeDescription
BLOCKCHAINTEXTBlockchain, Network, or Platform the transaction or event occurs on.
PLATFORMTEXTThe platform on which the prediction market operates.
PROTOCOLTEXTThe protocol name for the prediction market.
PROTOCOL_VERSIONTEXTThe version of the protocol being used.
CONDITION_IDTEXTID of the specific market, linking it to the event or question it is based on.
QUESTIONTEXTThe actual question the market is based on, which defines the event participants are betting on.
DESCRIPTIONTEXTA detailed description of the market, providing context and additional information about the question.
TOKENSVARIANTThe tokens associated with the market outcomes.
TOKEN_1_TOKEN_IDTEXTToken ID for the first outcome in the market, making on-chain data human-readable.
TOKEN_1_OUTCOMETEXTOutcome associated with the first token, typically indicating ‘yes’ or ‘no.‘
TOKEN_1_WINNERTEXTIndicates the winner status of the first token, showing if it was the successful outcome.
TOKEN_2_TOKEN_IDTEXTToken ID for the second outcome in the market, making on-chain data human-readable.
TOKEN_2_OUTCOMETEXTOutcome associated with the second token, typically indicating ‘yes’ or ‘no.‘
TOKEN_2_WINNERTEXTIndicates the winner status of the second token, showing if it was the successful outcome.
ENABLE_ORDER_BOOKTEXTIndicates if the order book feature is enabled for this market.
ACTIVEBOOLEANIndicates if the market is currently live and accepting participation.
CLOSEDBOOLEANIndicates if the market is not currently live or has concluded.
ARCHIVEDBOOLEANIndicates if the market has been archived.
ACCEPTING_ORDERSBOOLEANIndicates if the market is currently accepting new orders.
ACCEPTING_ORDER_TIMESTAMPTIMESTAMP_NTZThe timestamp when the market started accepting orders.
MINIMUM_ORDER_SIZENUMBERMinimum size of an order in the market, determining the smallest amount participants can trade.
MINIMUM_TICK_SIZENUMBERMinimum tick size for the market, indicating the smallest price increment for orders.
QUESTION_IDTEXTID of the question associated with the market, used to link market data with the underlying event or scenario.
MARKET_SLUGTEXTThe URL-friendly identifier for the market.
END_DATE_ISOTIMESTAMP_NTZEnd date of the market in ISO 8601 format, indicating when the market will resolve.
GAME_START_TIMETIMESTAMP_NTZStart time of the event associated with the market, used for timing-related aspects of trading.
SECONDS_DELAYNUMBERThe delay in seconds before the market resolves after the event occurs.
FPMMTEXTFixed Product Market Maker indicator for the market.
MAKER_BASE_FEENUMBERBase fee charged to makers in the market for providing liquidity.
TAKER_BASE_FEENUMBERBase fee charged to takers in the market for executing trades against maker orders.
NOTIFICATIONS_ENABLEDBOOLEANIndicates if notifications are enabled for this market.
NEG_RISKBOOLEANIndicates if negative risk is present in the market, highlighting specific risk conditions.
NEG_RISK_MARKET_IDTEXTThe ID of the negative risk market associated with this market.
NEG_RISK_REQUEST_IDTEXTThe ID of the negative risk request associated with this market.
REWARDSVARIANTRewards information for the market.
TAGSVARIANTTags associated with the market for categorization and filtering.
EVENT_IDTEXTThe unique identifier for the event, from the dimpredictionmarkets table.
EVENT_SLUGTEXTThe URL-friendly identifier for the event, from the dimpredictionmarkets table.
EVENT_TITLETEXTThe plain text title of the event associated with the market, from the dimpredictionmarkets table. Questions will typically roll up to event titles. A good column to track an entire specific polymarket market (ie. Fed decision in January?). This is the best representation of a market when it is a multi-choice market with multiple questions/outcomes.
EVENT_SUBTITLETEXTThe subtitle of the event associated with the market.
EVENT_DESCRIPTIONTEXTA detailed description of the event associated with the market.
EVENT_CATEGORYTEXTThe category of the event (e.g., politics, sports, crypto).
EVENT_SUBCATEGORYTEXTThe subcategory of the event, providing more specific classification.
EVENT_ACTIVEBOOLEANIndicates if the event is currently active.
EVENT_CLOSEDBOOLEANIndicates if the event has been closed.
EVENT_RESTRICTEDBOOLEANIndicates if the event has restrictions.
EVENT_ARCHIVEDBOOLEANIndicates if the event has been archived.
EVENT_FEATUREDBOOLEANIndicates if the event is featured.
EVENT_ENABLE_NEG_RISKBOOLEANIndicates if negative risk is enabled for the event.
EVENT_START_DATETIMESTAMP_NTZThe start date of the event.
EVENT_END_DATETIMESTAMP_NTZThe end date of the event.
EVENT_CREATION_DATETIMESTAMP_NTZThe date when the event was created.
EVENT_TAGSTEXTTags associated with the event for categorization and filtering.
MARKET_IDTEXTThe unique identifier for the market from the event data.
MARKET_SLUG_FROM_EVENTTEXTThe market slug from the event data.
MARKET_CLOB_TOKEN_IDSTEXTThe CLOB token IDs for the market from the event data.
MARKET_OUTCOMESVARIANTThe outcomes available in the market from the event data.
MARKET_OUTCOME_PRICESVARIANTThe prices for each outcome in the market from the event data.
GROUP_ITEM_TITLETEXTThe title of the group item associated with the market.
GROUP_ITEM_THRESHOLDFLOATThe threshold value for the group item associated with the market.
MARKET_ACTIVEBOOLEANIndicates if the market is active from the event data.
MARKET_CLOSEDBOOLEANIndicates if the market is closed from the event data.
MARKET_RESTRICTEDBOOLEANIndicates if the market is restricted from the event data.
MARKET_NEG_RISK_OTHERBOOLEANOther negative risk information for the market from the event data.
MARKET_END_DATE_FROM_EVENTTIMESTAMP_NTZThe end date of the market from the event data.
MARKET_CREATED_ATTIMESTAMP_NTZThe timestamp when the market was created from the event data.
MARKETS_IN_EVENTNUMBERThe number of markets associated with the event.
DIM_MARKETS_IDTEXTThe unique identifier for the prediction market.
_INSERTED_TIMESTAMPTIMESTAMP_NTZThe timestamp when the record was inserted into the source table.
INSERTED_TIMESTAMPTIMESTAMP_NTZThe timestamp when the record was inserted.
MODIFIED_TIMESTAMPTIMESTAMP_NTZThe timestamp when the record was last modified.