pub struct FetchMarketsParams {
pub limit: Option<usize>,
pub cursor: Option<String>,
pub status: Option<MarketStatusFilter>,
pub market_tickers: Vec<String>,
pub series_ticker: Option<String>,
pub event_ticker: Option<String>,
}Expand description
Filters for fetch_markets. All fields are optional.
Fields§
§limit: Option<usize>Page size; clamped to per-exchange caps (Kalshi 1000, Polymarket 500) (e.g. 100).
cursor: Option<String>Opaque cursor returned by a prior page (e.g. "eyJvIjoxMDB9").
status: Option<MarketStatusFilter>Status filter; defaults to active (options: active, closed, resolved, all).
market_tickers: Vec<String>Fetch only these market tickers — Kalshi tickers or Polymarket slugs (e.g. ["KXBTCD-25APR1517"]).
series_ticker: Option<String>Fetch only markets in this Kalshi series ticker (e.g. "KXBTC"); ignored on Polymarket today.
event_ticker: Option<String>Fetch all markets in this event — Kalshi event ticker or Polymarket event slug (e.g. "KXBTC-25MAR14").
Trait Implementations§
Source§impl Clone for FetchMarketsParams
impl Clone for FetchMarketsParams
Source§fn clone(&self) -> FetchMarketsParams
fn clone(&self) -> FetchMarketsParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FetchMarketsParams
impl Debug for FetchMarketsParams
Source§impl Default for FetchMarketsParams
impl Default for FetchMarketsParams
Source§fn default() -> FetchMarketsParams
fn default() -> FetchMarketsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FetchMarketsParams
impl<'de> Deserialize<'de> for FetchMarketsParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FetchMarketsParams
impl RefUnwindSafe for FetchMarketsParams
impl Send for FetchMarketsParams
impl Sync for FetchMarketsParams
impl Unpin for FetchMarketsParams
impl UnsafeUnpin for FetchMarketsParams
impl UnwindSafe for FetchMarketsParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more