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

What

This table contains filled orders from prediction markets, incorporating market and token metadata available via various APIs. It is the comprehensive table for individual Polymarket orders, allowing for a detailed view of prediction market transactions. This is a good place to track the overall volume and liquidity of a market, as well as the average order size and price per share.

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.
BLOCK_NUMBERNUMBERThe block number at which the transaction is finalized.
BLOCK_TIMESTAMPTIMESTAMP_NTZThe block timestamp of this transaction in UTC
ORIGIN_FROM_ADDRESSTEXTThe address that initiates the transaction. If a transaction generates multiple events, all of them will have the same originfromaddress.
ORIGIN_TO_ADDRESSTEXTThe address that receives the transaction. If a transaction generates multiple events, all of them will have the same origintoaddress.
ORIGIN_FUNCTION_SIGNATURETEXTThe function signature of this transaction.
TX_HASHTEXTTransaction hash is a unique 66-character identifier that is generated when a transaction is executed.
EVENT_INDEXNUMBEREvent number within a transaction.
EVENT_NAMETEXTThe name of the event.
CONTRACT_ADDRESSTEXTThe address of the contract interacted with.
QUESTIONTEXTThe human-readable question that defines the market. This question outlines the specific event or scenario that the market is based on, and participants bet on the outcome.
MARKET_SLUGTEXTThe URL-friendly identifier for the market.
END_DATE_ISOTIMESTAMP_NTZThe date and time when the market will resolve, formatted in ISO 8601 (YYYY-MM-DDTHH:MM:SSZ). This marks the point at which the outcome is determined based on the question.
OUTCOMETEXTThe specific result direction for a token within the market, typically indicating either ‘yes’ or ‘no.’ This represents the outcome of the market question.
ORDER_HASHTEXTA unique cryptographic hash that identifies the order within the prediction market system. It serves as a unique reference for transactions related to buying or selling shares in the market.
MAKERTEXTThe address or identifier of the maker in the transaction, who provides liquidity or initiates an order within the market, setting the initial terms for others to take.
TAKERTEXTThe address or identifier of the taker in the transaction, who accepts the order created by the maker and completes the trade under the terms specified.
CONDITION_IDTEXTThe unique identifier for the market’s specific condition, linking it to a particular event or question. This ID is used to manage and resolve market outcomes.
QUESTION_IDTEXTThe unique identifier for the question in the prediction market.
ASSET_IDTEXTThe unique identifier of the asset addressing the question outcome, used to join with off-chain API data.
MAKER_ASSET_IDTEXTThe unique identifier of the asset provided by the maker in the transaction.
TAKER_ASSET_IDTEXTThe unique identifier of the asset provided by the taker in the transaction.
AMOUNT_USDFLOATThe total value of the bet placed, expressed in USD.
SHARESFLOATThe number of shares purchased in the order.
PRICE_PER_SHAREFLOATThe cost per individual share in the transaction, which also serves as a proxy for the current market percentage chance of the outcome associated with this question.
_INSERTED_TIMESTAMPTIMESTAMP_NTZThe timestamp when the record was inserted into the source table.
_LOG_IDTEXTThe unique identifier for the log entry in the source 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.
MARKET_DESCRIPTIONTEXTA detailed description of the market, providing context and additional information about the question, from the dimpredictionmarkets table.
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.
INSERTED_TIMESTAMPTIMESTAMP_NTZThe timestamp when the record was inserted.
MODIFIED_TIMESTAMPTIMESTAMP_NTZThe timestamp when the record was last modified.
EZ_PREDICTION_MARKET_ORDERS_IDTEXTThe unique identifier for the prediction market order.