Prediction Market API
Initialize and manage prediction markets
Prediction Market API
The Prediction Market API provides methods to initialize and manage prediction markets on Solana.
Access
Methods
initialize_market
Initialize a new prediction market (requires authorization).
Parameters
| Parameter | Type | Description |
|---|---|---|
event_ticker | str | Parent event ticker |
market_ticker | str | Unique market ticker |
title | str | Market title |
description | str | Market description |
expiration_time | int | Unix timestamp for expiration |
user_public_key | str | Creator's public key |
oracle_public_key | str | None | Oracle for settlement |