pub struct PolymarketInstrumentDef {Show 24 fields
pub symbol: Ustr,
pub token_id: Ustr,
pub condition_id: Ustr,
pub market_id: String,
pub question_id: Option<String>,
pub outcome: PolymarketOutcome,
pub question: String,
pub description: Option<String>,
pub price_precision: u8,
pub tick_size: Decimal,
pub min_size: Option<Decimal>,
pub maker_fee: Option<Decimal>,
pub taker_fee: Option<Decimal>,
pub start_date: Option<String>,
pub event_start_time: Option<String>,
pub end_date: Option<String>,
pub active: bool,
pub closed: bool,
pub market_slug: Option<String>,
pub neg_risk: Option<bool>,
pub resolution_source: Option<String>,
pub crypto_market_config: Option<CryptoMarketConfig>,
pub fee_schedule: Option<FeeSchedule>,
pub game_id: Option<String>,
}Expand description
Normalized instrument definition for a single Polymarket outcome token.
Each Polymarket market produces two of these (Yes and No).
Fields§
§symbol: UstrNautilus symbol: {conditionId}-{tokenId}.
token_id: UstrCLOB token ID (ERC1155 token, used for orders/subscriptions).
condition_id: UstrOn-chain condition ID.
market_id: StringGamma market ID.
question_id: Option<String>Question ID (resolution hash).
outcome: PolymarketOutcomeOutcome label.
question: StringMarket question/title.
description: Option<String>Market description.
price_precision: u8Canonical price precision (four decimal places).
tick_size: DecimalMinimum tick size.
min_size: Option<Decimal>Minimum order size.
maker_fee: Option<Decimal>Maker fee (decimal, not bps).
taker_fee: Option<Decimal>Taker fee (decimal, not bps).
start_date: Option<String>Market start timestamp (ISO 8601).
event_start_time: Option<String>Event window start timestamp (ISO 8601).
end_date: Option<String>Market end timestamp (ISO 8601).
active: boolWhether the market is active and accepting orders.
closed: boolWhether Gamma reports the market closed.
market_slug: Option<String>URL slug for the market.
neg_risk: Option<bool>Whether the market uses the neg-risk CTF exchange contract.
resolution_source: Option<String>Source used to resolve the market.
crypto_market_config: Option<CryptoMarketConfig>Crypto market resolution configuration.
fee_schedule: Option<FeeSchedule>Fee schedule for this market.
game_id: Option<String>Game ID for sport markets, kept verbatim because Gamma emits both
numeric and composite <uuid>:<away>:<home> forms.
Trait Implementations§
Source§impl Clone for PolymarketInstrumentDef
impl Clone for PolymarketInstrumentDef
Source§fn clone(&self) -> PolymarketInstrumentDef
fn clone(&self) -> PolymarketInstrumentDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PolymarketInstrumentDef
impl Debug for PolymarketInstrumentDef
Source§impl<'de> Deserialize<'de> for PolymarketInstrumentDef
impl<'de> Deserialize<'de> for PolymarketInstrumentDef
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>,
Source§impl PartialEq for PolymarketInstrumentDef
impl PartialEq for PolymarketInstrumentDef
Source§impl Serialize for PolymarketInstrumentDef
impl Serialize for PolymarketInstrumentDef
impl StructuralPartialEq for PolymarketInstrumentDef
Auto Trait Implementations§
impl Freeze for PolymarketInstrumentDef
impl RefUnwindSafe for PolymarketInstrumentDef
impl Send for PolymarketInstrumentDef
impl Sync for PolymarketInstrumentDef
impl Unpin for PolymarketInstrumentDef
impl UnsafeUnpin for PolymarketInstrumentDef
impl UnwindSafe for PolymarketInstrumentDef
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