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

What

This table is the main location for finding deltas (differences) on Yes/No outcomes for specific questions in Polymarket prediction markets. It contains aggregated yes/no token deltas, showing the difference between Yes and No outcomes across multiple time periods (6-hour, half-day, daily, weekly, monthly). It also includes event metadata from the dim_prediction_markets table.

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.
SIX_HOUR_PERIODTIMESTAMP_NTZThe 6-hour time bucket for the aggregation, calculated by rounding down block_timestamp to the nearest 6-hour interval.
HALF_DAYTIMESTAMP_NTZThe 12-hour (half-day) time bucket for the aggregation, calculated by rounding down block_timestamp to the nearest 12-hour interval.
DAYTIMESTAMP_NTZThe daily time bucket for the aggregation, truncated to the start of the day.
WEEKTIMESTAMP_NTZThe weekly time bucket for the aggregation, truncated to the start of the week.
MONTHTIMESTAMP_NTZThe monthly time bucket for the aggregation, truncated to the start of the month.
QUESTIONTEXTThe human-readable question that defines the market. This question outlines the specific event or scenario that the market is based on.
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.
TOTAL_AMOUNT_USDFLOATThe total USD value of all orders in the time period.
AVG_AMOUNT_USDFLOATThe average USD value per order in the time period.
TOTAL_SHARE_AMOUNTFLOATThe total number of shares traded in the time period.
AVG_SHARE_AMOUNTFLOATThe average number of shares per order in the time period.
TOTAL_PRICE_PER_SHAREFLOATThe sum of all pricepershare values in the time period.
AVG_PRICE_PER_SHAREFLOATThe average price per share across all orders in the time period.
MIN_PRICE_PER_SHAREFLOATThe minimum price per share in the time period.
MAX_PRICE_PER_SHAREFLOATThe maximum price per share in the time period.
YES_AVG_PRICE_PER_SHAREFLOATThe average price per share for Yes outcome tokens in the time period.
YES_AVG_SHARE_AMOUNTFLOATThe average number of shares for Yes outcome tokens in the time period.
YES_SHARE_AMOUNTFLOATThe total number of shares for Yes outcome tokens in the time period.
YES_AMOUNT_USDFLOATThe total USD value of Yes outcome token orders in the time period.
NO_AVG_PRICE_PER_SHAREFLOATThe average price per share for No outcome tokens in the time period.
NO_AVG_SHARE_AMOUNTFLOATThe average number of shares for No outcome tokens in the time period.
NO_SHARE_AMOUNTFLOATThe total number of shares for No outcome tokens in the time period.
NO_AMOUNT_USDFLOATThe total USD value of No outcome token orders in the time period.
SPREADFLOATThe difference between Yes and No average price per share, calculated as yesavgpricepershare - noavgpricepershare.
YES_NO_USD_DELTAFLOATThe difference in USD value between Yes and No outcomes, calculated as yesamountusd - noamountusd.
YES_NO_SHARE_AMOUNT_DELTAFLOATThe difference in share amounts between Yes and No outcomes, calculated as yesshareamount - noshareamount.
DIM_CONDITION_IDTEXTThe condition ID from the dimpredictionmarkets table, linking it to the market metadata.
EVENT_IDTEXTThe unique identifier for the event, from the dimpredictionmarkets table.
EVENT_SLUGTEXTThe URL-friendly identifier for the event, from the dimpredictionmarkets table.
EZ_PREDICTION_MARKET_Y_N_DELTAS_IDTEXTThe unique identifier for the prediction market yes/no deltas record.
INSERTED_TIMESTAMPTIMESTAMP_NTZThe timestamp when the record was inserted.
MODIFIED_TIMESTAMPTIMESTAMP_NTZThe timestamp when the record was last modified.