> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allium.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

Prediction markets are platforms where users can trade on the outcome of future events. Allium provides prediction market data from decentralized blockchain-based platforms, enabling analysis of market activity, volumes, and participant behavior.

### Supported Protocols

| Protocol          | Type          | Platform    | Data Coverage                                                         |
| ----------------- | ------------- | ----------- | --------------------------------------------------------------------- |
| Polymarket        | Decentralized | Polygon     | Trades, user actions, wallets                                         |
| Jupiter           | Decentralized | Solana      | Trades (uses Kalshi and Polymarket as liquidity providers)            |
| DFlow             | Decentralized | Solana      | Trades (uses Kalshi as liquidity provider)                            |
| Hyperliquid HIP-4 | Decentralized | Hyperliquid | Markets, trades, open interest, token prices, user positions, metrics |

### Available Tables

| Table                                                                                                         | Schema                                                              | Description                                                              |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [trades](/historical-data/supported-blockchains/evm/polygon/predictions/trades)                               | <code style={{whiteSpace: "nowrap"}}>polygon.predictions</code>     | Polymarket trade data on Polygon                                         |
| [user\_actions](/historical-data/supported-blockchains/evm/polygon/predictions/user-actions)                  | <code style={{whiteSpace: "nowrap"}}>polygon.predictions</code>     | Polymarket user deposits, withdrawals, transfers                         |
| [wallets](/historical-data/supported-blockchains/evm/polygon/predictions/wallets)                             | <code style={{whiteSpace: "nowrap"}}>polygon.predictions</code>     | Polymarket wallet creation events                                        |
| [trades](/historical-data/supported-blockchains/solana/solana/predictions/trades)                             | <code style={{whiteSpace: "nowrap"}}>solana.predictions</code>      | Jupiter + DFlow prediction market trades (Kalshi and Polymarket markets) |
| [markets](/historical-data/supported-blockchains/hyperliquid/predictions/markets)                             | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | Hyperliquid HIP-4 prediction-market outcomes at the token-side grain     |
| [questions](/historical-data/supported-blockchains/hyperliquid/predictions/questions)                         | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | Hyperliquid HIP-4 questions grouping named outcomes                      |
| [trades](/historical-data/supported-blockchains/hyperliquid/predictions/trades)                               | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | Hyperliquid HIP-4 prediction-market trades                               |
| [trades\_enriched](/historical-data/supported-blockchains/hyperliquid/predictions/trades-enriched)            | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | HIP-4 trades with market, outcome, and resolution context attached       |
| [open\_interest\_hourly](/historical-data/supported-blockchains/hyperliquid/predictions/open-interest-hourly) | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | Per-coin HIP-4 open interest at hourly grain                             |
| [open\_interest\_daily](/historical-data/supported-blockchains/hyperliquid/predictions/open-interest-daily)   | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | Per-user, per-coin HIP-4 open interest at end of day                     |
| [user\_positions\_daily](/historical-data/supported-blockchains/hyperliquid/predictions/user-positions-daily) | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | Per-user, per-coin HIP-4 side-token balances at end of day               |
| [token\_prices\_hourly](/historical-data/supported-blockchains/hyperliquid/predictions/token-prices-hourly)   | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | HIP-4 side-token prices at hourly grain                                  |
| [token\_prices\_daily](/historical-data/supported-blockchains/hyperliquid/predictions/token-prices-daily)     | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | HIP-4 side-token prices at daily grain                                   |
| [metrics\_daily](/historical-data/supported-blockchains/hyperliquid/predictions/metrics-daily)                | <code style={{whiteSpace: "nowrap"}}>hyperliquid.predictions</code> | Daily HIP-4 activity, fee, user, and open interest metrics               |

***

### Sample Queries

<Tabs>
  <Tab title="Polymarket Trades">
    Query all trades on Polymarket in the last 30 days.

    ```sql theme={null}
    select
      event_name,
      project,
      protocol,
      maker,
      taker,
      price,
      usd_collateral_amount,
      block_timestamp,
      transaction_hash,
      unique_id
    from polygon.predictions.trades
    where block_timestamp >= current_timestamp - interval '30 days'
    order by block_timestamp desc
    LIMIT 100
    ```
  </Tab>

  <Tab title="Solana Trades">
    Query all trades on Solana prediction markets in the last 30 days.

    ```sql theme={null}
    select
      project,
      protocol,
      timestamp,
      ticker,
      user_address,
      num_contracts,
      action,
      taker_side,
      yes_price,
      no_price,
      taker_price,
      venue_fee_usd,
      fill_txn_id
    from solana.predictions.trades
    where trade_date >= current_date - interval '30 days'
    order by timestamp desc
    limit 100
    ```
  </Tab>

  <Tab title="Hyperliquid Trades">
    Query Hyperliquid HIP-4 prediction market trades in the last 30 days.

    ```sql theme={null}
    select
      timestamp,
      coin,
      side_name,
      size,
      price,
      usd_collateral_amount,
      buyer_address,
      seller_address
    from hyperliquid.predictions.trades
    where timestamp >= current_timestamp - interval '30 days'
      and event_name = 'Trade'
    order by timestamp desc
    limit 100
    ```
  </Tab>
</Tabs>
