ListMarkets

Struct ListMarkets 

Source
pub struct ListMarkets { /* private fields */ }
Expand description

Request builder for listing markets

Implementations§

Source§

impl ListMarkets

Source

pub fn limit(self, limit: u32) -> Self

Set maximum number of results (minimum: 0)

Source

pub fn offset(self, offset: u32) -> Self

Set pagination offset (minimum: 0)

Source

pub fn order(self, order: impl Into<String>) -> Self

Set order fields (comma-separated list)

Source

pub fn ascending(self, ascending: bool) -> Self

Set sort direction

Source

pub fn id(self, ids: impl IntoIterator<Item = i64>) -> Self

Filter by specific market IDs

Source

pub fn slug(self, slugs: impl IntoIterator<Item = impl ToString>) -> Self

Filter by market slugs

Source

pub fn clob_token_ids( self, token_ids: impl IntoIterator<Item = impl ToString>, ) -> Self

Filter by CLOB token IDs

Source

pub fn condition_ids( self, condition_ids: impl IntoIterator<Item = impl ToString>, ) -> Self

Filter by condition IDs

Source

pub fn market_maker_address( self, addresses: impl IntoIterator<Item = impl ToString>, ) -> Self

Filter by market maker addresses

Source

pub fn liquidity_num_min(self, min: f64) -> Self

Set minimum liquidity threshold

Source

pub fn liquidity_num_max(self, max: f64) -> Self

Set maximum liquidity threshold

Source

pub fn volume_num_min(self, min: f64) -> Self

Set minimum trading volume

Source

pub fn volume_num_max(self, max: f64) -> Self

Set maximum trading volume

Source

pub fn start_date_min(self, date: impl Into<String>) -> Self

Set earliest market start date (ISO 8601 format)

Source

pub fn start_date_max(self, date: impl Into<String>) -> Self

Set latest market start date (ISO 8601 format)

Source

pub fn end_date_min(self, date: impl Into<String>) -> Self

Set earliest market end date (ISO 8601 format)

Source

pub fn end_date_max(self, date: impl Into<String>) -> Self

Set latest market end date (ISO 8601 format)

Source

pub fn tag_id(self, tag_id: i64) -> Self

Filter by tag identifier

Source

pub fn related_tags(self, include: bool) -> Self

Include related tags in response

Source

pub fn cyom(self, cyom: bool) -> Self

Filter for create-your-own markets

Source

pub fn uma_resolution_status(self, status: impl Into<String>) -> Self

Filter by UMA resolution status

Source

pub fn game_id(self, game_id: impl Into<String>) -> Self

Filter by game identifier

Source

pub fn sports_market_types( self, types: impl IntoIterator<Item = impl ToString>, ) -> Self

Filter by sports market types

Source

pub fn rewards_min_size(self, min: f64) -> Self

Set minimum rewards threshold

Source

pub fn question_ids( self, question_ids: impl IntoIterator<Item = impl ToString>, ) -> Self

Filter by question identifiers

Source

pub fn include_tag(self, include: bool) -> Self

Include tag data in results

Source

pub fn closed(self, closed: bool) -> Self

Filter for closed or active markets

Source

pub fn active(self, active: bool) -> Self

Filter by active status (convenience method, opposite of closed)

Source

pub fn archived(self, archived: bool) -> Self

Filter by archived status

Source

pub async fn send(self) -> Result<Vec<Market>>

Execute the request

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more