pub struct GammaEvent {Show 21 fields
pub raw: String,
pub id: String,
pub slug: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub start_date: Option<String>,
pub end_date: Option<String>,
pub active: Option<bool>,
pub closed: Option<bool>,
pub archived: Option<bool>,
pub markets: Vec<GammaMarket>,
pub liquidity: Option<Decimal>,
pub volume: Option<Decimal>,
pub open_interest: Option<Decimal>,
pub volume_24hr: Option<Decimal>,
pub category: Option<String>,
pub tags: Option<Vec<GammaTag>>,
pub neg_risk: Option<bool>,
pub neg_risk_market_id: Option<String>,
pub featured: Option<bool>,
pub game_id: Option<String>,
}Expand description
An event response from the Gamma API GET /events.
Events are parent containers grouping related markets (e.g., an election
event contains multiple outcome markets). Each event’s markets array
contains full GammaMarket objects.
Fields§
§raw: StringOriginal Gamma response as a JSON string, before normalization or enrichment.
id: String§slug: Option<String>§title: Option<String>§description: Option<String>§start_date: Option<String>§end_date: Option<String>§active: Option<bool>§closed: Option<bool>§archived: Option<bool>§markets: Vec<GammaMarket>§liquidity: Option<Decimal>Event-level liquidity.
volume: Option<Decimal>Event-level volume.
open_interest: Option<Decimal>Event-level open interest.
volume_24hr: Option<Decimal>24-hour event volume.
category: Option<String>Event category.
Tags associated with this event.
neg_risk: Option<bool>Whether event uses neg-risk.
neg_risk_market_id: Option<String>Neg-risk market ID.
featured: Option<bool>Whether event is featured.
game_id: Option<String>Game ID for sport markets, kept verbatim because Gamma emits both
numeric and composite <uuid>:<away>:<home> forms. 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.
Implementations§
Source§impl<'de> GammaEvent
impl<'de> GammaEvent
pub fn deserialize<__D>(__deserializer: __D) -> Result<GammaEvent, __D::Error>where
__D: Deserializer<'de>,
Source§impl GammaEvent
impl GammaEvent
pub fn serialize<__S>(
__self: &GammaEvent,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Trait Implementations§
Source§impl Clone for GammaEvent
impl Clone for GammaEvent
Source§impl Debug for GammaEvent
impl Debug for GammaEvent
Source§impl<'de> Deserialize<'de> for GammaEvent
impl<'de> Deserialize<'de> for GammaEvent
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 GammaEvent
impl RefUnwindSafe for GammaEvent
impl Send for GammaEvent
impl Sync for GammaEvent
impl Unpin for GammaEvent
impl UnsafeUnpin for GammaEvent
impl UnwindSafe for GammaEvent
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
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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> ⓘ
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