> ## 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 as liquidity provider) |
| DFlow      | Decentralized | Solana   | Trades (uses Kalshi as liquidity provider) |

### Available Tables

| Table                                                                                        | Schema                | Description                                        |
| -------------------------------------------------------------------------------------------- | --------------------- | -------------------------------------------------- |
| [trades](/historical-data/supported-blockchains/evm/polygon/predictions/trades)              | `polygon.predictions` | Polymarket trade data on Polygon                   |
| [user\_actions](/historical-data/supported-blockchains/evm/polygon/predictions/user-actions) | `polygon.predictions` | Polymarket user deposits, withdrawals, transfers   |
| [wallets](/historical-data/supported-blockchains/evm/polygon/predictions/wallets)            | `polygon.predictions` | Polymarket wallet creation events                  |
| [trades](/historical-data/supported-blockchains/solana/solana/predictions/trades)            | `solana.predictions`  | Jupiter + DFlow prediction market trades on Solana |

***

### 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>
</Tabs>
