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
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
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
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
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
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
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
Sourcepub fn include_tag(self, include: bool) -> Self
pub fn include_tag(self, include: bool) -> Self
Include tag data in results
Auto Trait Implementations§
impl Freeze for ListMarkets
impl !RefUnwindSafe for ListMarkets
impl Send for ListMarkets
impl Sync for ListMarkets
impl Unpin for ListMarkets
impl !UnwindSafe for ListMarkets
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