pub struct FetchMarketsParams {
pub limit: Option<usize>,
pub cursor: Option<String>,
pub status: Option<MarketStatusFilter>,
pub series_id: Option<String>,
pub event_id: Option<String>,
}Fields§
§limit: Option<usize>§cursor: Option<String>Exchange-specific cursor (offset, page number, or cursor string)
status: Option<MarketStatusFilter>Filter by market status. Defaults to Active at the exchange level when None.
Use MarketStatusFilter::All to fetch markets of any status.
series_id: Option<String>Filter by series (Kalshi and Polymarket). Both exchanges organize markets
as Series → Events → Markets. Pass a Kalshi series ticker (e.g., "KXBTC")
or a Polymarket series ID (e.g., "10345") to fetch only markets in that series.
event_id: Option<String>Fetch all markets within a specific event. Pass a Kalshi event ticker
(e.g., "KXBTC-25MAR14"), a Polymarket event ID or slug
(e.g., "903" or "will-trump-win-2024"), or an Opinion market slug
(e.g., "btc-price-daily") to get its child markets.
When set, series_id, cursor, and limit are ignored (not paginated).
status filtering is still applied client-side.
Trait Implementations§
Source§impl Clone for FetchMarketsParams
impl Clone for FetchMarketsParams
Source§fn clone(&self) -> FetchMarketsParams
fn clone(&self) -> FetchMarketsParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more