Skip to main content
POST
/
api
/
{exchange}
/
buildOrder
import pmxt # Runs locally — never proxied through PMXT servers exchange = pmxt.Polymarket( api_key="YOUR_API_KEY", api_secret="YOUR_API_SECRET", passphrase="YOUR_PASSPHRASE", private_key="YOUR_PRIVATE_KEY", proxy_address="YOUR_PROXY_ADDRESS", signature_type="gnosis-safe", ) result = exchange.build_order( market_id="12345", outcome_id="67890", side="buy", type="limit", amount=10, price=0.55, fee=1, tick_size=1, neg_risk=True, )
{
  "success": true,
  "error": {
    "message": "<string>"
  },
  "data": {
    "exchange": "<string>",
    "params": {
      "marketId": "<string>",
      "outcomeId": "<string>",
      "side": "buy",
      "type": "market",
      "amount": 123,
      "price": 123,
      "fee": 123,
      "tickSize": 123,
      "negRisk": true
    },
    "raw": "<unknown>",
    "signedOrder": {},
    "tx": {
      "to": "<string>",
      "data": "<string>",
      "value": "<string>",
      "chainId": 123
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://pmxt.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

exchange
enum<string>
required

The prediction market exchange to target.

Available options:
polymarket,
kalshi,
kalshi-demo,
opinion,
smarkets,
polymarket_us

Body

application/json
args
object[]
required
Required array length: 1 element
credentials
object

Optional authentication credentials for exchange operations.

Response

200 - application/json

Build Order response

success
boolean
Example:

true

error
object
data
object