# Hosted reads need: pmxt_api_key + wallet_address (private_key is only required for writes).
import pmxt
client = pmxt.Polymarket(
pmxt_api_key="YOUR_PMXT_API_KEY",
wallet_address="0xYourWallet",
)
order = client.fetch_order("order_abc123")
print(order.id, order.status, order.filled, order.remaining){
"id": "<string>",
"status": "<string>",
"side": "buy",
"type": "market",
"amount": 123,
"price": 123,
"filled": 123,
"remaining": 123,
"fee": 123,
"timestamp": "<string>",
"tx_hash": "<string>",
"chain": "<string>",
"block_number": 123
}{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}Orders & Positions
Fetch Order
Look up a single order by id. Returns the order’s current status, filled / remaining size, average fill price, and — once settled — the on-chain tx hash.
order_id is what createOrderHosted (or fetchOpenOrdersHosted) returns.
GET
/
v0
/
orders
/
{order_id}
# Hosted reads need: pmxt_api_key + wallet_address (private_key is only required for writes).
import pmxt
client = pmxt.Polymarket(
pmxt_api_key="YOUR_PMXT_API_KEY",
wallet_address="0xYourWallet",
)
order = client.fetch_order("order_abc123")
print(order.id, order.status, order.filled, order.remaining){
"id": "<string>",
"status": "<string>",
"side": "buy",
"type": "market",
"amount": 123,
"price": 123,
"filled": 123,
"remaining": 123,
"fee": 123,
"timestamp": "<string>",
"tx_hash": "<string>",
"chain": "<string>",
"block_number": 123
}{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}{
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
}
}Authorizations
Response
The order.
Hosted-mode Order shape. Mirrors pmxt.Order so the SDK can return it directly. tx_hash, chain, and block_number populate once execution settles on-chain.
Was this page helpful?

