Skip to main content
async fn fetch_market(market_id: &str) -> Result<Market, OpenPxError>

Parameters

market_id
string
required
ExchangeFormat
KalshiTicker, e.g. KXBTC-25MAR14-T20000
PolymarketCondition ID, e.g. 0x311d0c4b…

Returns

Market — the unified market struct.

Example

let market = ex.fetch_market("KXBTC-25MAR14-T20000").await?;