pub struct GetGammaMarketsParams {Show 33 fields
pub active: Option<bool>,
pub closed: Option<bool>,
pub archived: Option<bool>,
pub id: Option<Vec<u64>>,
pub limit: Option<u32>,
pub offset: Option<u32>,
pub order: Option<String>,
pub ascending: Option<bool>,
pub slug: Option<Vec<String>>,
pub clob_token_ids: Option<Vec<String>>,
pub condition_ids: Option<Vec<String>>,
pub question_ids: Option<Vec<String>>,
pub market_maker_address: Option<Vec<String>>,
pub liquidity_num_min: Option<Decimal>,
pub liquidity_num_max: Option<Decimal>,
pub volume_num_min: Option<Decimal>,
pub volume_num_max: Option<Decimal>,
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<Vec<u64>>,
pub related_tags: Option<bool>,
pub tag_match: Option<String>,
pub decimalized: Option<bool>,
pub cyom: Option<bool>,
pub rfq_enabled: Option<bool>,
pub uma_resolution_status: Option<String>,
pub game_id: Option<String>,
pub sports_market_types: Option<Vec<String>>,
pub include_tag: Option<bool>,
pub locale: Option<String>,
pub max_markets: Option<u32>,
}Expand description
Query parameters for Gamma API GET /markets/keyset.
Fields§
§active: Option<bool>Compatibility filter retained from the legacy Gamma market query.
closed: Option<bool>§archived: Option<bool>Compatibility filter retained from the legacy Gamma market query.
id: Option<Vec<u64>>§limit: Option<u32>§offset: Option<u32>Client-side initial offset. Keyset requests never send this field.
order: Option<String>§ascending: Option<bool>§slug: Option<Vec<String>>§clob_token_ids: Option<Vec<String>>§condition_ids: Option<Vec<String>>§question_ids: Option<Vec<String>>§market_maker_address: Option<Vec<String>>§liquidity_num_min: Option<Decimal>§liquidity_num_max: Option<Decimal>§volume_num_min: Option<Decimal>§volume_num_max: Option<Decimal>§start_date_min: Option<String>ISO 8601 date or RFC 3339 date-time.
start_date_max: Option<String>ISO 8601 date or RFC 3339 date-time.
end_date_min: Option<String>ISO 8601 date or RFC 3339 date-time.
end_date_max: Option<String>ISO 8601 date or RFC 3339 date-time.
tag_id: Option<Vec<u64>>§tag_match: Option<String>§decimalized: Option<bool>§cyom: Option<bool>§rfq_enabled: Option<bool>§uma_resolution_status: Option<String>§game_id: Option<String>§sports_market_types: Option<Vec<String>>§include_tag: Option<bool>§locale: 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).
Implementations§
Source§impl GetGammaMarketsParams
impl GetGammaMarketsParams
Sourcepub fn validate_keyset(&self) -> Result<(), String>
pub fn validate_keyset(&self) -> Result<(), String>
Validates values and combinations used by the Gamma market keyset endpoint.
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 (const: unstable) · 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§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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