pub struct GetGammaMarketsParams {Show 28 fields
pub active: Option<bool>,
pub closed: Option<bool>,
pub archived: Option<bool>,
pub id: Option<String>,
pub limit: Option<u32>,
pub offset: Option<u32>,
pub order: Option<String>,
pub ascending: Option<bool>,
pub slug: Option<String>,
pub clob_token_ids: Option<String>,
pub condition_ids: Option<String>,
pub liquidity_num_min: Option<f64>,
pub liquidity_num_max: Option<f64>,
pub volume_num_min: Option<f64>,
pub volume_num_max: Option<f64>,
pub start_date_min: Option<String>,
pub start_date_max: Option<String>,
pub end_date_min: Option<String>,
pub end_date_max: Option<String>,
pub tag_id: Option<String>,
pub related_tags: Option<String>,
pub rewards_min_size: Option<f64>,
pub include_tag: Option<bool>,
pub question_ids: Option<String>,
pub game_id: Option<String>,
pub sports_market_types: Option<String>,
pub market_maker_address: Option<String>,
pub max_markets: Option<u32>,
}Expand description
Query parameters for Gamma API GET /markets.
Fields§
§active: Option<bool>§closed: Option<bool>§archived: Option<bool>§id: Option<String>§limit: Option<u32>§offset: Option<u32>§order: Option<String>§ascending: Option<bool>§slug: Option<String>§clob_token_ids: Option<String>Comma-separated CLOB token IDs.
condition_ids: Option<String>Comma-separated condition IDs (max 100).
liquidity_num_min: Option<f64>§liquidity_num_max: Option<f64>§volume_num_min: Option<f64>§volume_num_max: Option<f64>§start_date_min: Option<String>ISO 8601 date string.
start_date_max: Option<String>ISO 8601 date string.
end_date_min: Option<String>ISO 8601 date string.
end_date_max: Option<String>ISO 8601 date string.
tag_id: Option<String>§rewards_min_size: Option<f64>§include_tag: Option<bool>§question_ids: Option<String>Comma-separated question IDs.
game_id: Option<String>§sports_market_types: Option<String>§market_maker_address: Option<String>§max_markets: Option<u32>Client-side cap on total markets to fetch across all pages. Not sent to the API, only used by the paginator to stop early. Each market produces 2 instruments (Yes/No outcomes).
Trait Implementations§
Source§impl Clone for GetGammaMarketsParams
impl Clone for GetGammaMarketsParams
Source§fn clone(&self) -> GetGammaMarketsParams
fn clone(&self) -> GetGammaMarketsParams
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 GetGammaMarketsParams
impl Debug for GetGammaMarketsParams
Source§impl Default for GetGammaMarketsParams
impl Default for GetGammaMarketsParams
Source§fn default() -> GetGammaMarketsParams
fn default() -> GetGammaMarketsParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetGammaMarketsParams
impl RefUnwindSafe for GetGammaMarketsParams
impl Send for GetGammaMarketsParams
impl Sync for GetGammaMarketsParams
impl Unpin for GetGammaMarketsParams
impl UnsafeUnpin for GetGammaMarketsParams
impl UnwindSafe for GetGammaMarketsParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more