pub struct PredictionOrder {Show 27 fields
pub avg_fill_price_usd: String,
pub bump: i64,
pub contracts: String,
pub created_at: i64,
pub event_id: String,
pub event_metadata: PredictionEventMetadata,
pub external_order_id: String,
pub filled_at: i64,
pub filled_contracts: String,
pub is_buy: bool,
pub is_yes: bool,
pub market: String,
pub market_id: String,
pub market_id_hash: String,
pub market_metadata: Value,
pub max_buy_price_usd: Option<String>,
pub max_fill_price_usd: String,
pub min_sell_price_usd: Option<String>,
pub order_id: String,
pub owner: String,
pub owner_pubkey: String,
pub position: String,
pub pubkey: String,
pub settled: bool,
pub size_usd: String,
pub status: PredictionOrderStatus,
pub updated_at: i64,
}Fields§
§avg_fill_price_usd: StringAverage fill price in micro USD (u64 as string)
bump: i64Constraint: minimum=0
contracts: StringNumber of contracts (u64 as string)
created_at: i64Unix timestamp (seconds) when the order was created
event_id: StringExternal event identifier
event_metadata: PredictionEventMetadata§external_order_id: StringClient-provided order identifier
filled_at: i64Unix timestamp (seconds) when the order was filled (0 when pending)
filled_contracts: StringNumber of filled contracts (u64 as string)
is_buy: boolTrue when order is a buy order
is_yes: boolTrue when order is for the YES side
market: StringAssociated market public key
market_id: StringExternal market identifier used to derive the PDA
market_id_hash: StringHashed market identifier used for on-chain PDAs
market_metadata: Value§max_buy_price_usd: Option<String>Buyer-specified max fill price (micro USD)
max_fill_price_usd: StringMaximum fill price in micro USD (u64 as string)
min_sell_price_usd: Option<String>Seller-specified min fill price (micro USD)
order_id: StringExternal order identifier from the venue
owner: StringOrder owner public key
owner_pubkey: StringOrder owner public key (alias of owner, use ownerPubkey when available)
position: StringAssociated position public key
pubkey: StringOrder account public key
settled: boolWhether the order has been settled on-chain
size_usd: StringOrder notional in micro USD (u128 as string)
status: PredictionOrderStatusCurrent order status
updated_at: i64Unix timestamp (seconds) when the order last changed on-chain
Trait Implementations§
Source§impl Clone for PredictionOrder
impl Clone for PredictionOrder
Source§fn clone(&self) -> PredictionOrder
fn clone(&self) -> PredictionOrder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more