Skip to main content
async fn fetch_order(
    order_id: &str,
    market_id: Option<&str>,
) -> Result<Order, OpenPxError>

Parameters

order_id
string
required
Native order ID.
market_id
string?
Optional, but accelerates Polymarket lookups.

Returns

Order.

Example

let order = ex.fetch_order("ord_abc123", None).await?;