pub struct ListKeysetMarkets { /* private fields */ }Expand description
Request builder for Markets::list_keyset.
Implementations§
Source§impl ListKeysetMarkets
impl ListKeysetMarkets
Sourcepub fn limit(self, limit: u32) -> Self
pub fn limit(self, limit: u32) -> Self
Maximum number of results to return (upstream max 1000).
Sourcepub fn order(self, order: impl Into<String>) -> Self
pub fn order(self, order: impl Into<String>) -> Self
Comma-separated list of JSON field names to order by.
Sourcepub fn after_cursor(self, cursor: impl Into<String>) -> Self
pub fn after_cursor(self, cursor: impl Into<String>) -> Self
Opaque cursor token from a previous response’s next_cursor.
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 closed(self, closed: bool) -> Self
pub fn closed(self, closed: bool) -> Self
Filter by closed status (defaults to false upstream).
Sourcepub fn clob_token_ids(
self,
ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn clob_token_ids( self, ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by CLOB token IDs.
Sourcepub fn condition_ids(self, ids: impl IntoIterator<Item = impl ToString>) -> Self
pub fn condition_ids(self, ids: impl IntoIterator<Item = impl ToString>) -> Self
Filter by condition IDs.
Sourcepub fn question_ids(self, ids: impl IntoIterator<Item = impl ToString>) -> Self
pub fn question_ids(self, ids: impl IntoIterator<Item = impl ToString>) -> Self
Filter by question 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).
Sourcepub fn tag_id(self, tag_ids: impl IntoIterator<Item = i64>) -> Self
pub fn tag_id(self, tag_ids: impl IntoIterator<Item = i64>) -> Self
Filter by tag IDs.
Include related tags in response.
Sourcepub fn rfq_enabled(self, enabled: bool) -> Self
pub fn rfq_enabled(self, enabled: bool) -> Self
Filter markets with RFQ enabled.
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 include_tag(self, include: bool) -> Self
pub fn include_tag(self, include: bool) -> Self
Include tag data in results.
Sourcepub async fn send(self) -> Result<KeysetMarketsResponse, GammaError>
pub async fn send(self) -> Result<KeysetMarketsResponse, GammaError>
Execute the request.