pub struct GammaMarket {Show 40 fields
pub id: String,
pub condition_id: String,
pub question_id: Option<String>,
pub clob_token_ids: String,
pub outcomes: String,
pub question: String,
pub description: Option<String>,
pub start_date: Option<String>,
pub end_date: Option<String>,
pub active: Option<bool>,
pub closed: Option<bool>,
pub accepting_orders: Option<bool>,
pub enable_order_book: Option<bool>,
pub order_price_min_tick_size: Option<f64>,
pub order_min_size: Option<f64>,
pub maker_base_fee: Option<i64>,
pub taker_base_fee: Option<i64>,
pub market_slug: Option<String>,
pub neg_risk: Option<bool>,
pub liquidity_num: Option<f64>,
pub volume_num: Option<f64>,
pub volume_24hr: Option<f64>,
pub outcome_prices: Option<String>,
pub best_bid: Option<f64>,
pub best_ask: Option<f64>,
pub spread: Option<f64>,
pub last_trade_price: Option<f64>,
pub one_day_price_change: Option<f64>,
pub one_week_price_change: Option<f64>,
pub volume_1wk: Option<f64>,
pub volume_1mo: Option<f64>,
pub volume_1yr: Option<f64>,
pub rewards_min_size: Option<f64>,
pub rewards_max_spread: Option<f64>,
pub competitive: Option<f64>,
pub category: Option<String>,
pub neg_risk_market_id: Option<String>,
pub fee_schedule: Option<FeeSchedule>,
pub game_id: Option<u64>,
pub events: Option<Vec<GammaEvent>>,
}Expand description
A market response from the Gamma API GET /markets.
References: https://docs.polymarket.com/developers/gamma-markets-api/get-markets
Fields§
§id: StringInternal Gamma market ID.
condition_id: StringOn-chain condition ID for the CTF contracts.
question_id: Option<String>Hash used for resolution.
clob_token_ids: StringJSON-encoded array of two CLOB token IDs (Yes, No).
outcomes: StringJSON-encoded outcome labels (e.g. ["Yes", "No"]).
question: StringMarket question/title.
description: Option<String>Detailed description.
start_date: Option<String>Market start date (ISO 8601).
end_date: Option<String>Market end date (ISO 8601).
active: Option<bool>Whether market is active.
closed: Option<bool>Whether market is closed.
accepting_orders: Option<bool>Whether CLOB is accepting orders.
enable_order_book: Option<bool>Whether order book trading is enabled.
order_price_min_tick_size: Option<f64>Minimum price increment.
order_min_size: Option<f64>Minimum order size.
maker_base_fee: Option<i64>Maker fee in basis points.
taker_base_fee: Option<i64>Taker fee in basis points.
market_slug: Option<String>URL slug.
neg_risk: Option<bool>Whether the market uses neg-risk CTF exchange.
liquidity_num: Option<f64>Numeric liquidity value for sorting.
volume_num: Option<f64>Numeric volume value for sorting.
volume_24hr: Option<f64>24-hour trading volume.
outcome_prices: Option<String>JSON-encoded outcome prices (e.g. ["0.60", "0.40"]).
best_bid: Option<f64>Best bid price.
best_ask: Option<f64>Best ask price.
spread: Option<f64>Bid-ask spread.
last_trade_price: Option<f64>Last trade price.
one_day_price_change: Option<f64>1-day price change.
one_week_price_change: Option<f64>1-week price change.
volume_1wk: Option<f64>1-week volume.
volume_1mo: Option<f64>1-month volume.
volume_1yr: Option<f64>1-year volume.
rewards_min_size: Option<f64>Minimum size for rewards eligibility.
rewards_max_spread: Option<f64>Maximum spread for rewards eligibility.
competitive: Option<f64>Competitiveness score.
category: Option<String>Market category.
neg_risk_market_id: Option<String>Neg-risk market ID for CTF exchange interaction.
fee_schedule: Option<FeeSchedule>Fee schedule for this market.
game_id: Option<u64>Game ID for sport markets. null and -1 both mean “no game” and
surface as None. Reference shape:
https://github.com/Polymarket/rs-clob-client/blob/main/src/gamma/types/response.rs.
events: Option<Vec<GammaEvent>>Events linked to this gamma market.
Trait Implementations§
Source§impl Clone for GammaMarket
impl Clone for GammaMarket
Source§fn clone(&self) -> GammaMarket
fn clone(&self) -> GammaMarket
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GammaMarket
impl Debug for GammaMarket
Source§impl<'de> Deserialize<'de> for GammaMarket
impl<'de> Deserialize<'de> for GammaMarket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for GammaMarket
impl RefUnwindSafe for GammaMarket
impl Send for GammaMarket
impl Sync for GammaMarket
impl Unpin for GammaMarket
impl UnsafeUnpin for GammaMarket
impl UnwindSafe for GammaMarket
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
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>
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>
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