Skip to main content
POST
/
execution
/
quote
Get execution quote with steps preview
curl --request POST \
  --url https://api.agg.market/execution/quote \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-app-id: <api-key>' \
  --data '
{
  "venue": "kalshi",
  "marketId": "<string>",
  "tokenId": "<string>",
  "side": "buy",
  "amount": 1,
  "slippageBps": 5000
}
'
{
  "quoteId": "<string>",
  "canExecute": true,
  "estimatedCostRaw": "<string>",
  "steps": [
    {
      "type": "<string>",
      "description": "<string>",
      "estimatedDurationMs": 123
    }
  ],
  "splits": [
    {
      "venue": "kalshi",
      "tokenId": "<string>",
      "price": "<string>",
      "size": "<string>",
      "costRaw": "<string>"
    }
  ],
  "expiresAt": "<string>"
}

Authorizations

x-app-id
string
header
required

Your application ID. Required for all app-tier and user-tier routes.

Authorization
string
header
required

JWT access token returned by POST /auth/verify. Required for user-tier routes.

Body

application/json

Body

venue
enum<string>
required
Available options:
kalshi,
polymarket,
limitless,
opinion
marketId
string
required
tokenId
string
required
side
enum<string>
required
Available options:
buy,
sell
amount
number
required
Required range: x > 0
slippageBps
integer
Required range: 0 <= x <= 10000

Response

200

quoteId
string
required
canExecute
boolean
required
estimatedCostRaw
string
required
steps
object[]
required
splits
object[]
required
expiresAt
string
required