solana.predictions.trades table contains all prediction market trades executed on Solana prediction market projects.
Table Columns
| Column Name | Data Type | Description |
|---|---|---|
| project | VARCHAR | Project identifier (ex. jupiter). |
| protocol | VARCHAR | Protocol identifier (ex. kalshi - the underlying liquidity provider). |
| trade_date | DATE | Date of the trade execution (used for partitioning). |
| timestamp | TIMESTAMP_NTZ(9) | Timestamp when the order fill was executed on-chain. |
| trade_id | VARCHAR | Unique identifier for the trade. |
| ticker | VARCHAR | Kalshi market ticker identifier (e.g., KXFEDDECISION-25DEC-C25). |
| num_contracts | INTEGER | Number of contracts filled in this trade. |
| user_address | VARCHAR | Solana wallet address of the user who placed the order. |
| action | VARCHAR | Trade action (buy or sell) - buy increases position, sell decreases position. |
| taker_side | VARCHAR | Side taken by the taker (yes or no). |
| maker_side | VARCHAR | Side taken by the maker (opposite of taker_side). |
| yes_price | FLOAT | YES price at execution (0-1 scale). |
| no_price | FLOAT | NO price at execution (0-1 scale). |
| taker_price | FLOAT | Actual execution price paid by the taker for their side. |
| usdc_price | FLOAT | USDC/USD exchange rate at trade time. |
| venue_fee_usd | FLOAT | Kalshi venue fee paid in USD. |
| order_created_time | TIMESTAMP_NTZ(9) | Timestamp when the order was created on-chain. |
| order_txn_id | VARCHAR | Transaction hash of the order creation. |
| fill_txn_id | VARCHAR | Transaction hash of the trade execution. |
| extras | VARIANT | Additional technical fields. |
| _created_at | TIMESTAMP_NTZ(9) | Timestamp when the record was created in Allium’s database. |
| _updated_at | TIMESTAMP_NTZ(9) | Timestamp when the record was last updated in Allium’s database. |
Sample Queries
- User Trading Activity
Analyze trading activity for a specific user:
Understanding Price Fields
- yes_price + no_price = 1.0: Complementary pricing ensures the sum equals 1
- taker_price: The actual price paid by the taker for their chosen side (yes or no)
- Price scale: All prices are on a 0-1 scale (0.0 to 1.0)