pub struct OpenOrder {Show 15 fields
pub id: String,
pub status: String,
pub owner: String,
pub maker_address: String,
pub market: String,
pub asset_id: String,
pub side: String,
pub original_size: String,
pub size_matched: String,
pub price: String,
pub outcome: String,
pub expiration: String,
pub order_type: String,
pub associate_trades: Vec<String>,
pub created_at: i64,
}Expand description
A resting order, as returned by GET /data/orders and
GET /data/order/{orderID} (both return this same shape).
This is an order summary, not a signed order: the venue does not echo back
the signed payload, so there is no token_id, maker_amount,
signature_type, metadata, builder, salt, or signature here. Field
names are snake_case on the wire — there is deliberately no rename_all.
Pinned to a body captured from the live venue on 2026-07-24 (see
open_order_deserializes_captured_response below), cross-checked against
the /data/orders response schema in docs/specs/clob/openapi.yaml.
Prior to 0.22.0 this struct declared camelCase names, a flattened
[SignedOrder], and a string created_at, so any response containing a
real order failed to deserialize with missing field `assetId` .
Fields the schema marks required are non-optional here, matching the
capture. If the venue ever omits one, deserialization fails loudly rather
than silently producing a half-empty order — and
ListOrders::send_raw is the escape hatch for reading the body anyway.
Fields§
§id: StringOrder ID (0x-prefixed hash).
status: StringOrder status, e.g. LIVE.
owner: StringOwning API key (a UUID, not an address).
maker_address: StringMaker address — the proxy/deposit wallet, not the signing EOA.
market: StringMarket condition ID.
asset_id: StringAsset (token) ID for the outcome being traded.
side: StringBUY or SELL.
original_size: StringOriginal order size, as a decimal string.
size_matched: StringSize matched so far, as a decimal string.
price: StringLimit price, as a decimal string.
outcome: StringOutcome label, e.g. Yes.
expiration: StringExpiration as a Unix timestamp string; "0" means no expiry.
order_type: StringOrder type, e.g. GTC.
associate_trades: Vec<String>IDs of trades associated with this order.
created_at: i64Creation time as a Unix timestamp in seconds — an integer on the wire, not a string.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpenOrder
impl<'de> Deserialize<'de> for OpenOrder
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 OpenOrder
impl RefUnwindSafe for OpenOrder
impl Send for OpenOrder
impl Sync for OpenOrder
impl Unpin for OpenOrder
impl UnsafeUnpin for OpenOrder
impl UnwindSafe for OpenOrder
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
impl<'de, T> BorrowedRpcObject<'de> for T
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>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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