pub struct ListMarkets { /* private fields */ }Expand description
Request builder for listing markets
Implementations§
Source§impl ListMarkets
impl ListMarkets
Sourcepub fn id(self, ids: impl IntoIterator<Item = i64>) -> Self
pub fn id(self, ids: impl IntoIterator<Item = i64>) -> Self
Filter by specific market IDs
Safe batch size: ≤ 400 per request. URLs over ~8 KB are rejected
upstream with 414 URI Too Long; empirically the ceiling is ~583.
§Note on closed markets
The upstream /markets endpoint applies an implicit closed=false
default when no closed param is sent, so this filter silently drops
closed markets unless .closed(true) is also set. For pinpoint lookup
by ID regardless of status, use Markets::get_many.
Sourcepub fn slug(self, slugs: impl IntoIterator<Item = impl ToString>) -> Self
pub fn slug(self, slugs: impl IntoIterator<Item = impl ToString>) -> Self
Filter by market slugs
Safe batch size: ≤ 100 per request. URL length is capped at ~8 KB upstream; slug entries vary so pick a cap based on your longest slug.
§Note on closed markets
Same trap as Self::id: upstream defaults to closed=false, so this
filter drops closed markets unless .closed(true) is also set.
Sourcepub fn clob_token_ids(
self,
token_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn clob_token_ids( self, token_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by CLOB token IDs
Safe batch size: ≤ 50 per request. Token IDs are 77-digit decimals
(~90 B/entry on the wire); URLs over ~8 KB are rejected with 414.
Sourcepub fn condition_ids(
self,
condition_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn condition_ids( self, condition_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by condition IDs
Safe batch size: ≤ 60 per request. Condition IDs are 66-char hex
(~80 B/entry); empirically the upstream ceiling is exactly 100 before
414 URI Too Long.
§Note on closed markets
Same trap as Self::id: upstream defaults to closed=false, so this
filter drops closed markets unless .closed(true) is also set.
Sourcepub fn market_maker_address(
self,
addresses: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn market_maker_address( self, addresses: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by market maker addresses
Safe batch size: ≤ 80 per request. Ethereum addresses are 42 chars
(~60 B/entry); URLs over ~8 KB are rejected upstream with 414.
Sourcepub fn liquidity_num_min(self, min: f64) -> Self
pub fn liquidity_num_min(self, min: f64) -> Self
Set minimum liquidity threshold
Sourcepub fn liquidity_num_max(self, max: f64) -> Self
pub fn liquidity_num_max(self, max: f64) -> Self
Set maximum liquidity threshold
Sourcepub fn volume_num_min(self, min: f64) -> Self
pub fn volume_num_min(self, min: f64) -> Self
Set minimum trading volume
Sourcepub fn volume_num_max(self, max: f64) -> Self
pub fn volume_num_max(self, max: f64) -> Self
Set maximum trading volume
Sourcepub fn start_date_min(self, date: impl Into<String>) -> Self
pub fn start_date_min(self, date: impl Into<String>) -> Self
Set earliest market start date (ISO 8601 format)
Sourcepub fn start_date_max(self, date: impl Into<String>) -> Self
pub fn start_date_max(self, date: impl Into<String>) -> Self
Set latest market start date (ISO 8601 format)
Sourcepub fn end_date_min(self, date: impl Into<String>) -> Self
pub fn end_date_min(self, date: impl Into<String>) -> Self
Set earliest market end date (ISO 8601 format)
Sourcepub fn end_date_max(self, date: impl Into<String>) -> Self
pub fn end_date_max(self, date: impl Into<String>) -> Self
Set latest market end date (ISO 8601 format)
Include related tags in response
Sourcepub fn uma_resolution_status(self, status: impl Into<String>) -> Self
pub fn uma_resolution_status(self, status: impl Into<String>) -> Self
Filter by UMA resolution status
Sourcepub fn sports_market_types(
self,
types: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn sports_market_types( self, types: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by sports market types
Safe batch size: ≤ 150 per request. URL length is capped at ~8 KB
upstream (414 URI Too Long).
Sourcepub fn rewards_min_size(self, min: f64) -> Self
pub fn rewards_min_size(self, min: f64) -> Self
Set minimum rewards threshold
Sourcepub fn question_ids(
self,
question_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn question_ids( self, question_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by question identifiers
Safe batch size: ≤ 60 per request. Question IDs are 66-char hex
(~80 B/entry); URLs over ~8 KB are rejected upstream with 414.
Sourcepub fn include_tag(self, include: bool) -> Self
pub fn include_tag(self, include: bool) -> Self
Include tag data in results