pub struct PolymarketInstrumentDef {Show 20 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 end_date: Option<String>,
pub active: bool,
pub market_slug: Option<String>,
pub neg_risk: bool,
pub fee_schedule: Option<FeeSchedule>,
pub game_id: Option<u64>,
}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: u8Price precision (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).
end_date: Option<String>Market end timestamp (ISO 8601).
active: boolWhether the market is active and accepting orders.
market_slug: Option<String>URL slug for the market.
neg_risk: boolWhether the market uses the neg-risk CTF exchange contract.
fee_schedule: Option<FeeSchedule>Fee schedule for this market.
game_id: Option<u64>Game ID for sport markets.
Trait Implementations§
Source§impl Clone for PolymarketInstrumentDef
impl Clone for PolymarketInstrumentDef
Source§fn clone(&self) -> PolymarketInstrumentDef
fn clone(&self) -> PolymarketInstrumentDef
Returns a duplicate of the value. Read more
1.0.0 · 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 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>,
Deserialize this value from the given Serde deserializer. Read more
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§
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
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>
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