Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user’s wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.
GET
/
orderbook
/
{venueMarketOutcomeId}
/
route
Get a quote (smart route)
curl --request GET \ --url https://api.agg.market/orderbook/{venueMarketOutcomeId}/route \ --header 'x-app-id: <api-key>'
Required range: 0 <= x <= 10000Must be a multiple of 1
appFeeBipsByVenue
string
JSON object venue→bips, e.g. {"polymarket":20,"hyperliquid":10}. Per-venue app fee in basis points, 0..10000, for the legs filled on that venue. Overrides appFeeBips on the venues it names; the scalar appFeeBips still applies to venues the map omits. Honoured only when the request carries x-app-api-key; otherwise 400 app_fee_override_requires_api_key. Buy only.
referrerFeeBipsByVenue
string
JSON object venue→bips, e.g. {"polymarket":20,"hyperliquid":10}. Per-venue referral fee in basis points, 0..10000, for the legs filled on that venue. Overrides referrerFeeBips on the venues it names; referrerFeeBips still applies to venues the map omits and is optional when this is sent. 0 = no referral on that venue, but at least one venue must end up with a positive rate. Needs referrer. Same rules as referrerFeeBips: x-app-api-key required, buy only.
referrer
string
Referral: the EVM address that receives the referral fee. Requires referrerFeeBips or referrerFeeBipsByVenue. Honoured only when the request carries x-app-api-key; a JWT-only request that sends it is rejected with 400 referral_requires_api_key. Buy only.
Required string length: 42
referrerFeeBips
number
Referral fee in basis points of the routed notional, 1..10000. AGG takes no share of it. With referralPayer "user" it is reserved from maxSpend next to the app fee; with "app" the user pays nothing.
Required range: 1 <= x <= 10000Must be a multiple of 1
referralPayer
enum<string>
Who funds the referral. Default "user".
Available options:
user,
app
referralPayerAddress
string
Required when referralPayer is "app": the wallet that settles the payout. After the fill, a pendingSignatures entry appears with signerAddress set to this address and purpose "referral_payout"; answer it on POST /execution/fill/:quoteId/signatures. Read its type: on an EVM chain it is a transaction to broadcast (post the hash), on HyperCore an eip712 to sign (post the signature).
Required string length: 42
referralPayoutChainId
number
Optional, and only with referralPayer "app": the chain the referrer is paid on. Must carry USDC. On an EVM chain the payout is an ERC-20 transfer the partner's wallet broadcasts, needing USDC plus native gas there; on HyperCore (1337) it is a user-signed sendAsset from the partner's HyperCore spot balance — a signature, nothing to broadcast — and the referrer receives spot USDC on Hyperliquid. A first payout to a referrer with no Hyperliquid account costs the partner an extra 1 USDC that Hyperliquid charges to create it; later payouts to the same referrer cost nothing. Solana does not support app-paid payouts and is refused. Defaults to the trade's fee chain, or Polygon when that chain is not EVM. Sending it with a user-paid referral is rejected with 400 referral_invalid.
Required range: x >= 1Must be a multiple of 1
referralActivationSponsorAddress
string
Optional, and only with a user-paid referral (referralPayer "user" or absent): a wallet that pays Hyperliquid's one-time 1 USDC account-activation fee when the referrer has never received anything on HyperCore. Honoured on self-custody Hyperliquid buys only; ignored otherwise. Before the fill a pendingSignatures entry appears with signerAddress set to this address, purpose "hl_activation_sponsor" and optional: true — an eip712 sendAsset of 0.000001 USDC to the referrer. Sign it and post the signature on POST /execution/fill/:quoteId/signatures. After the fill it is posted just before the referral transfer, only if the referrer still has no HyperCore account. This wallet's HyperCore spot balance must hold at least 1.000001 USDC. Declining it is safe: the trade proceeds and the referral is attempted as usual. Must differ from referrer; rejected with referralPayer "app". The request reaches your signer through the user's client: sign only the exact transfer described here (see Fees → Securing the paying wallet's signer).
Required string length: 42
Response
200
quoteId
string
required
Pass to POST /execution/fill to trade this quote.
venueMarketOutcomeId
string
required
The outcome requested.
venueMarketId
string
required
Market of that outcome.
estimatedCostRaw
string
required
Price × shares before fees (proceeds on a sell). USD in 6-decimal atomic units, as an integer string (1000000 = $1.00).
expiresAt
string
required
ISO-8601. After this the quote cannot be filled.
refreshAt
string
required
ISO-8601, earlier than expiresAt: fetch a new quote from here on, though this one stays fillable until expiresAt.
status
enum<string>
required
ok when the quote can be filled; anything else means it cannot (see error). insufficient_balance: not enough funds. insufficient_position: not enough shares to sell (see positionAvailability). insufficient_depth / no_orderbooks / no_bids_above_min_price: not enough liquidity. min_order_size_violated / insufficient_input_amount: the amount is too small. infeasible, checker_rejected, solver_error, invalid_input, engine_unavailable: no valid route could be built.
Available options:
ok,
infeasible,
checker_rejected,
solver_error,
invalid_input,
no_orderbooks,
insufficient_input_amount,
engine_unavailable,
min_order_size_violated,
insufficient_balance,
insufficient_position,
insufficient_depth,
no_bids_above_min_price
fills
object[]
required
Where the trade executes, one entry per venue market.
Show child attributes
totalFilled
number
required
Total shares bought (or sold), as a float.
rawExecCost
number
required
Price × shares across all fills, before fees (proceeds on a sell). USD, as a float.
solveTimeMs
number
required
Time to compute the route, in milliseconds.
verifyTimeMs
number
required
Time to verify the route, in milliseconds.
matchedMarkets
object[]
required
The same market on other venues. Empty on sells.
Show child attributes
quoteRefreshNotBefore
string<date-time>
Earliest time to request a new quote (rate-limited venues only).
quoteFailure
object
A venue that could not be priced live; the quote excludes it.
Show child attributes
error
string
Readable reason when status is not ok.
venueSoloQuotes
object[]
With compareVenues=true: the same trade priced on each venue alone, for comparison.
Show child attributes
allocations
object[]
How the trade is funded, per source and venue.
Show child attributes
bridgeSteps
object[]
Cross-chain transfers needed.
Show child attributes
feeBreakdown
object
Cost of the trade, line by line.
Show child attributes
appFee
object | null
App fee settings frozen at quote time, for reconciliation. null when the app charges no fee. For display use feeBreakdown.appFee.
Show child attributes
referral
object | null
The referral this quote pays; absent or null without a referrer.
Show child attributes
slippage
object
Price impact of the route.
Show child attributes
optima
object
Best values each objective could reach on its own, for comparison.
Show child attributes
warnings
object[]
Venues left out of the route or flagged, without blocking the quote.
Show child attributes
custodyWarnings
object[]
Self-custody quotes only: the quote is valid but the fill from this wallet would be refused. Absent on managed quotes.
Show child attributes
message
string
Informational note, e.g. on redemption.
settlementPlan
object
Sell quotes on resolved markets only: winning shares are redeemed for their payout instead of sold.
Show child attributes
estimatedPayout
number
Payout if the outcome wins, after settlement fees. USD, as a float.
totalCostIncFees
number
All-in cost: feeBreakdown.totalCost + app fee + user-paid referral fee + any funding fee. USD, as a float.
estimatedNetProceeds
number
Sell only: what the sell returns after every fee charged at fill — gross proceeds minus venue, builder, app, and user-paid referral fees. USD, as a float.
estimatedProfit
number
estimatedPayout minus cost. USD, as a float.
returnPct
number
Profit as a percentage of cost (25 = 25%).
positionAvailability
object
Sell quotes only: the user's sellable shares when the quote was built, on the venues the request allows. Returned on ok sell quotes too; on insufficient_position it says how much can be sold. A snapshot, not a reservation: the fill re-checks the live venue balance.
Show child attributes
sizeStepRaw
string
Limit-order size step on this venue, in 6-decimal share units (10000 = 0.01 share). Only on a single-venue quote (allowedVenues of one). Absent means any 1-unit size.
minSizeRaw
string
Smallest limit-order size on this venue/market, in 6-decimal share units. Only on a single-venue quote. Absent means no venue minimum is known.
legBounds
object[]
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Agg.market — Prediction Market Aggregator","description":"White-label prediction market aggregator API: sign users in, quote the best price across venues, execute trades, and track them to a final status. Start with Quickstart: REST.","colors":{"primary":"#ED8200","light":"#FFA366","dark":"#C66F00"},"logo":{"light":"https://mintcdn.com/agg/SLxnoWBYT8Zyhg9W/assets/agg-dark.svg?fit=max\u0026auto=format\u0026n=SLxnoWBYT8Zyhg9W\u0026q=85\u0026s=f1b6e05f3e2529bc2c7698267234f5d1","dark":"https://mintcdn.com/agg/SLxnoWBYT8Zyhg9W/assets/agg-white.svg?fit=max\u0026auto=format\u0026n=SLxnoWBYT8Zyhg9W\u0026q=85\u0026s=4a896195354d17f32101e0ec90fb822c"},"favicon":"https://mintcdn.com/agg/OOif8Fd2iWonTlgU/assets/favicon.svg?fit=max\u0026auto=format\u0026n=OOif8Fd2iWonTlgU\u0026q=85\u0026s=6907ac01c9b9a95394f668f53099f108","background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://storybook.agg.market","label":"Storybook"}],"primary":{"type":"button","label":"Admin Dashboard","href":"https://admin.agg.market"}},"footer":{"socials":{"x":"https://x.com/Snag_Solutions","linkedin":"https://www.linkedin.com/company/snag-solutions"}},"banner":{"content":"AGG is currently in **alpha**. APIs, components, and docs may change.","dismissible":false},"metadata":{"timestamp":false},"markdown":{"instructions":["To integrate AGG, start with Quickstart: REST (https://docs.agg.market/quickstart/rest), then Order lifecycle \u0026 statuses (https://docs.agg.market/concepts/order-lifecycle).","Track every trade until it reaches a terminal status. Before retrying a failed or timed-out call, read Errors, retries \u0026 idempotency (https://docs.agg.market/concepts/errors).","The API reference is generated from https://docs.agg.market/openapi/openapi.json."]},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agg","hasAudioNarration":false,"actualSubdomain":"agg","customDomains":["docs.agg.market"],"gitSource":{"type":"github","owner":"snag-solutions","repo":"agg","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aff4f795246eb87f3620b22","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Trading API","count":80},{"language":"default","tag":"Guides","count":73},{"language":"default","tag":"Trading","count":22},{"language":"default","tag":"Server API","count":21},{"language":"default","tag":"Users","count":13},{"language":"default","tag":"Core concepts","count":12},{"language":"default","tag":"Funding","count":12},{"language":"default","tag":"Market data","count":11},{"language":"default","tag":"Markets","count":10},{"language":"default","tag":"Partner Admin","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/trading/get-a-quote-smart-route","slug":"/api-reference/trading/get-a-quote-smart-route","pageMetadata":{"title":"Get a quote (smart route)","description":"Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user's wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbook/{venueMarketOutcomeId}/route","href":"/api-reference/trading/get-a-quote-smart-route","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user’s wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,li:`li`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`integration-guide`,children:`Integration guide`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Before you call:`}),` `,_jsx(_components.a,{href:`/concepts/ids`,children:`Choose the correct event, market, and outcome IDs`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Workflow:`}),` `,_jsx(_components.a,{href:`/concepts/quotes`,children:`Read quote prices, expiry, fees, and warnings`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Next:`}),` `,_jsx(_components.a,{href:`/concepts/execution`,children:`Submit a quote for execution`}),`.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get a quote (smart route)","description":"Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user's wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbook/{venueMarketOutcomeId}/route","href":"/api-reference/trading/get-a-quote-smart-route","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Integration guide","slug":"integration-guide","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user's wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.","summary":"Get a quote (smart route)","tags":["Trading"],"parameters":["e713296a-a2e8-4644-a15f-fd9611f8d8d8","87cf2163-a46f-45dc-afcd-2df7db5160b4","0e9aed70-67c7-41ff-8ac9-6f2c9f7bb20f","f8aa719a-dd75-4a5f-9b5c-d15f35abaf2e","51d78e4d-5c16-4a5d-ad76-7e4f0f489d1e","439b701b-7895-4c54-839d-5979de553261","475278c4-ee5c-4d18-b0a6-e399f12a233e","9dfb15bd-d0fe-48bb-afa9-9069f320b42f","9b9a2667-0536-4ecc-b13b-40cf7b57f94e","41513468-9f73-4ec1-ad68-8b4c8823866b","16316399-30a4-4101-ba72-5d7665b671e5","e690a0c5-274e-4cc4-a38b-acf7fb4281f5","15f22541-1e4d-4f97-adba-7a4e0111b222","896255ef-3374-4ecb-816d-72e580fd9509","75eed976-7be0-4575-a991-1a57cd01fedf","84eeb2cc-ea0c-4440-a6e8-ffe23db52d08","6f4e4ee5-a29a-4d98-9049-7f489f9397af","b0778afb-a721-4006-b5ac-1822fbd55226","5ff7c58c-b7c6-49cf-b3a8-94bb3bedc631","d35122a0-7f2d-412d-aada-0039b2d3e77a","088fe077-6ee3-429c-b671-458d462b6659"],"operationId":"getSmartRoute","responses":{"200":"59b4873d-6754-4f1f-9ca5-4ca5df40a7da","400":"690c8d0a-db51-4bdf-8c44-bd852000ea51","401":"fd8a1c68-128e-481c-b4b5-1d91cdd408e0","403":"cc52df2a-4087-423d-988f-87d49c06e0ea","404":"07939c60-db36-4898-bb51-90a3d5bcd9bd","429":"7191dbf9-8424-4f90-af44-186bd71d4064","503":"75d98cb4-bd2a-4f77-9970-0fff48e5d576"},"security":["185e1bd5-d9ee-4943-b56b-0ac1967a1eb3","ccce881e-3931-46ed-be61-fd102e2d1a70"],"x-mint":{"content":"## Integration guide\n\n- **Before you call:** [Choose the correct event, market, and outcome IDs](/concepts/ids).\n- **Workflow:** [Read quote prices, expiry, fees, and warnings](/concepts/quotes).\n- **Next:** [Submit a quote for execution](/concepts/execution)."},"method":"get","type":"path","servers":["3915078d-e73f-42da-9155-945be58f38f6"],"path":"/orderbook/{venueMarketOutcomeId}/route","baseUrlOptions":["https://api.agg.market"],"title":"Get a quote (smart route)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e713296a-a2e8-4644-a15f-fd9611f8d8d8":{"name":"venueMarketOutcomeId","in":"path","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"87cf2163-a46f-45dc-afcd-2df7db5160b4":{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["live","paper"],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"0e9aed70-67c7-41ff-8ac9-6f2c9f7bb20f":{"name":"chainBalances","in":"query","required":false,"schema":{"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"f8aa719a-dd75-4a5f-9b5c-d15f35abaf2e":{"name":"slipCapBps","in":"query","required":false,"schema":{"minimum":0,"type":"number","isRequired":false,"uniqueKey":"","typeLabel":"number"}},"51d78e4d-5c16-4a5d-ad76-7e4f0f489d1e":{"name":"maxSpend","in":"query","required":false,"schema":{"exclusiveMinimum":true,"type":"number","minimum":0,"isRequired":false,"uniqueKey":"","typeLabel":"number"}},"439b701b-7895-4c54-839d-5979de553261":{"name":"sellShares","in":"query","required":false,"schema":{"exclusiveMinimum":true,"type":"number","minimum":0,"isRequired":false,"uniqueKey":"","typeLabel":"number"}},"475278c4-ee5c-4d18-b0a6-e399f12a233e":{"name":"compareVenues","in":"query","required":false,"schema":{"type":"string","enum":["true","false"],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"9dfb15bd-d0fe-48bb-afa9-9069f320b42f":{"name":"allowedVenues","in":"query","required":false,"schema":{"oneOf":[{"type":"array","items":{"type":"string","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"uniqueKey":"oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"string","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"uniqueKey":"oneOf.1","typeLabel":"enum\u003cstring>"}],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>[] | enum\u003cstring>"}},"9b9a2667-0536-4ecc-b13b-40cf7b57f94e":{"name":"side","in":"query","required":false,"schema":{"type":"string","enum":["buy","sell"],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"41513468-9f73-4ec1-ad68-8b4c8823866b":{"name":"deepEstimate","in":"query","required":false,"schema":{"type":"string","enum":["true","false"],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"16316399-30a4-4101-ba72-5d7665b671e5":{"name":"signingAddress","in":"query","required":false,"schema":{"minLength":42,"maxLength":42,"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"e690a0c5-274e-4cc4-a38b-acf7fb4281f5":{"name":"fundingAddresses","in":"query","required":false,"schema":{"oneOf":[{"type":"array","items":{"pattern":"^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$","description":"Linked funding wallet: EVM 0x-prefixed 20-byte hex, or Solana base58 (32–44 chars).","type":"string","uniqueKey":"oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"oneOf.0","typeLabel":"string[]"},{"type":"string","description":"Linked funding wallet: EVM 0x-prefixed 20-byte hex, or Solana base58 (32–44 chars).","pattern":"^(0x[a-fA-F0-9]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$","uniqueKey":"oneOf.1","typeLabel":"string"}],"isRequired":false,"uniqueKey":"","typeLabel":"string[] | string"}},"15f22541-1e4d-4f97-adba-7a4e0111b222":{"name":"appFeeBips","in":"query","required":false,"schema":{"minimum":0,"maximum":10000,"multipleOf":1,"type":"number","isRequired":false,"uniqueKey":"","typeLabel":"number"}},"896255ef-3374-4ecb-816d-72e580fd9509":{"name":"appFeeBipsByVenue","in":"query","required":false,"description":"JSON object venue→bips, e.g. `{\"polymarket\":20,\"hyperliquid\":10}`. Per-venue app fee in basis points, 0..10000, for the legs filled on that venue. Overrides `appFeeBips` on the venues it names; the scalar `appFeeBips` still applies to venues the map omits. Honoured only when the request carries x-app-api-key; otherwise 400 app_fee_override_requires_api_key. Buy only.","schema":{"description":"JSON object venue→bips, e.g. `{\"polymarket\":20,\"hyperliquid\":10}`. Per-venue app fee in basis points, 0..10000, for the legs filled on that venue. Overrides `appFeeBips` on the venues it names; the scalar `appFeeBips` still applies to venues the map omits. Honoured only when the request carries x-app-api-key; otherwise 400 app_fee_override_requires_api_key. Buy only.","type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"75eed976-7be0-4575-a991-1a57cd01fedf":{"name":"referrerFeeBipsByVenue","in":"query","required":false,"description":"JSON object venue→bips, e.g. `{\"polymarket\":20,\"hyperliquid\":10}`. Per-venue referral fee in basis points, 0..10000, for the legs filled on that venue. Overrides `referrerFeeBips` on the venues it names; `referrerFeeBips` still applies to venues the map omits and is optional when this is sent. 0 = no referral on that venue, but at least one venue must end up with a positive rate. Needs `referrer`. Same rules as `referrerFeeBips`: x-app-api-key required, buy only.","schema":{"description":"JSON object venue→bips, e.g. `{\"polymarket\":20,\"hyperliquid\":10}`. Per-venue referral fee in basis points, 0..10000, for the legs filled on that venue. Overrides `referrerFeeBips` on the venues it names; `referrerFeeBips` still applies to venues the map omits and is optional when this is sent. 0 = no referral on that venue, but at least one venue must end up with a positive rate. Needs `referrer`. Same rules as `referrerFeeBips`: x-app-api-key required, buy only.","type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"84eeb2cc-ea0c-4440-a6e8-ffe23db52d08":{"name":"referrer","in":"query","required":false,"description":"Referral: the EVM address that receives the referral fee. Requires referrerFeeBips or referrerFeeBipsByVenue. Honoured only when the request carries x-app-api-key; a JWT-only request that sends it is rejected with 400 referral_requires_api_key. Buy only.","schema":{"minLength":42,"maxLength":42,"description":"Referral: the EVM address that receives the referral fee. Requires referrerFeeBips or referrerFeeBipsByVenue. Honoured only when the request carries x-app-api-key; a JWT-only request that sends it is rejected with 400 referral_requires_api_key. Buy only.","type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"6f4e4ee5-a29a-4d98-9049-7f489f9397af":{"name":"referrerFeeBips","in":"query","required":false,"description":"Referral fee in basis points of the routed notional, 1..10000. AGG takes no share of it. With referralPayer \"user\" it is reserved from maxSpend next to the app fee; with \"app\" the user pays nothing.","schema":{"minimum":1,"maximum":10000,"multipleOf":1,"description":"Referral fee in basis points of the routed notional, 1..10000. AGG takes no share of it. With referralPayer \"user\" it is reserved from maxSpend next to the app fee; with \"app\" the user pays nothing.","type":"number","isRequired":false,"uniqueKey":"","typeLabel":"number"}},"b0778afb-a721-4006-b5ac-1822fbd55226":{"name":"referralPayer","in":"query","required":false,"description":"Who funds the referral. Default \"user\".","schema":{"description":"Who funds the referral. Default \"user\".","type":"string","enum":["user","app"],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"5ff7c58c-b7c6-49cf-b3a8-94bb3bedc631":{"name":"referralPayerAddress","in":"query","required":false,"description":"Required when referralPayer is \"app\": the wallet that settles the payout. After the fill, a pendingSignatures entry appears with signerAddress set to this address and purpose \"referral_payout\"; answer it on POST /execution/fill/:quoteId/signatures. Read its type: on an EVM chain it is a `transaction` to broadcast (post the hash), on HyperCore an `eip712` to sign (post the signature).","schema":{"minLength":42,"maxLength":42,"description":"Required when referralPayer is \"app\": the wallet that settles the payout. After the fill, a pendingSignatures entry appears with signerAddress set to this address and purpose \"referral_payout\"; answer it on POST /execution/fill/:quoteId/signatures. Read its type: on an EVM chain it is a `transaction` to broadcast (post the hash), on HyperCore an `eip712` to sign (post the signature).","type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"d35122a0-7f2d-412d-aada-0039b2d3e77a":{"name":"referralPayoutChainId","in":"query","required":false,"description":"Optional, and only with referralPayer \"app\": the chain the referrer is paid on. Must carry USDC. On an EVM chain the payout is an ERC-20 transfer the partner's wallet broadcasts, needing USDC plus native gas there; on HyperCore (1337) it is a user-signed sendAsset from the partner's HyperCore spot balance — a signature, nothing to broadcast — and the referrer receives spot USDC on Hyperliquid. A first payout to a referrer with no Hyperliquid account costs the partner an extra 1 USDC that Hyperliquid charges to create it; later payouts to the same referrer cost nothing. Solana does not support app-paid payouts and is refused. Defaults to the trade's fee chain, or Polygon when that chain is not EVM. Sending it with a user-paid referral is rejected with 400 referral_invalid.","schema":{"minimum":1,"multipleOf":1,"description":"Optional, and only with referralPayer \"app\": the chain the referrer is paid on. Must carry USDC. On an EVM chain the payout is an ERC-20 transfer the partner's wallet broadcasts, needing USDC plus native gas there; on HyperCore (1337) it is a user-signed sendAsset from the partner's HyperCore spot balance — a signature, nothing to broadcast — and the referrer receives spot USDC on Hyperliquid. A first payout to a referrer with no Hyperliquid account costs the partner an extra 1 USDC that Hyperliquid charges to create it; later payouts to the same referrer cost nothing. Solana does not support app-paid payouts and is refused. Defaults to the trade's fee chain, or Polygon when that chain is not EVM. Sending it with a user-paid referral is rejected with 400 referral_invalid.","type":"number","isRequired":false,"uniqueKey":"","typeLabel":"number"}},"088fe077-6ee3-429c-b671-458d462b6659":{"name":"referralActivationSponsorAddress","in":"query","required":false,"description":"Optional, and only with a user-paid referral (referralPayer \"user\" or absent): a wallet that pays Hyperliquid's one-time 1 USDC account-activation fee when the referrer has never received anything on HyperCore. Honoured on self-custody Hyperliquid buys only; ignored otherwise. Before the fill a pendingSignatures entry appears with signerAddress set to this address, purpose \"hl_activation_sponsor\" and optional: true — an `eip712` sendAsset of 0.000001 USDC to the referrer. Sign it and post the signature on POST /execution/fill/:quoteId/signatures. After the fill it is posted just before the referral transfer, only if the referrer still has no HyperCore account. This wallet's HyperCore spot balance must hold at least 1.000001 USDC. Declining it is safe: the trade proceeds and the referral is attempted as usual. Must differ from referrer; rejected with referralPayer \"app\". The request reaches your signer through the user's client: sign only the exact transfer described here (see Fees → Securing the paying wallet's signer).","schema":{"minLength":42,"maxLength":42,"description":"Optional, and only with a user-paid referral (referralPayer \"user\" or absent): a wallet that pays Hyperliquid's one-time 1 USDC account-activation fee when the referrer has never received anything on HyperCore. Honoured on self-custody Hyperliquid buys only; ignored otherwise. Before the fill a pendingSignatures entry appears with signerAddress set to this address, purpose \"hl_activation_sponsor\" and optional: true — an `eip712` sendAsset of 0.000001 USDC to the referrer. Sign it and post the signature on POST /execution/fill/:quoteId/signatures. After the fill it is posted just before the referral transfer, only if the referrer still has no HyperCore account. This wallet's HyperCore spot balance must hold at least 1.000001 USDC. Declining it is safe: the trade proceeds and the referral is attempted as usual. Must differ from referrer; rejected with referralPayer \"app\". The request reaches your signer through the user's client: sign only the exact transfer described here (see Fees → Securing the paying wallet's signer).","type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}}},"responses":{"59b4873d-6754-4f1f-9ca5-4ca5df40a7da":{"description":"200","content":{"application/json":{"schema":{"type":"object","required":["quoteId","venueMarketOutcomeId","venueMarketId","estimatedCostRaw","expiresAt","refreshAt","status","fills","totalFilled","rawExecCost","solveTimeMs","verifyTimeMs","matchedMarkets"],"properties":{"quoteId":{"description":"Pass to POST /execution/fill to trade this quote.","type":"string","isRequired":true,"uniqueKey":"quoteId","typeLabel":"string"},"venueMarketOutcomeId":{"description":"The outcome requested.","type":"string","isRequired":true,"uniqueKey":"venueMarketOutcomeId","typeLabel":"string"},"venueMarketId":{"description":"Market of that outcome.","type":"string","isRequired":true,"uniqueKey":"venueMarketId","typeLabel":"string"},"estimatedCostRaw":{"description":"Price × shares before fees (proceeds on a sell). USD in 6-decimal atomic units, as an integer string (1000000 = $1.00).","type":"string","isRequired":true,"uniqueKey":"estimatedCostRaw","typeLabel":"string"},"expiresAt":{"description":"ISO-8601. After this the quote cannot be filled.","type":"string","isRequired":true,"uniqueKey":"expiresAt","typeLabel":"string"},"refreshAt":{"description":"ISO-8601, earlier than `expiresAt`: fetch a new quote from here on, though this one stays fillable until `expiresAt`.","type":"string","isRequired":true,"uniqueKey":"refreshAt","typeLabel":"string"},"status":{"description":"`ok` when the quote can be filled; anything else means it cannot (see `error`). `insufficient_balance`: not enough funds. `insufficient_position`: not enough shares to sell (see `positionAvailability`). `insufficient_depth` / `no_orderbooks` / `no_bids_above_min_price`: not enough liquidity. `min_order_size_violated` / `insufficient_input_amount`: the amount is too small. `infeasible`, `checker_rejected`, `solver_error`, `invalid_input`, `engine_unavailable`: no valid route could be built.","type":"string","enum":["ok","infeasible","checker_rejected","solver_error","invalid_input","no_orderbooks","insufficient_input_amount","engine_unavailable","min_order_size_violated","insufficient_balance","insufficient_position","insufficient_depth","no_bids_above_min_price"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"fills":{"description":"Where the trade executes, one entry per venue market.","type":"array","items":{"type":"object","required":["venue","venueMarketId","venueMarketOutcomeId","chain","avgPrice","yesPrice","noPrice","fills","venueQty"],"properties":{"venue":{"type":"string","description":"Venue this part of the trade executes on.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"fills.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"venueMarketId":{"description":"Market id on that venue.","type":"string","isRequired":true,"uniqueKey":"fills.items.[INDEX].venueMarketId","typeLabel":"string"},"venueMarketOutcomeId":{"description":"Outcome id on that venue.","type":"string","isRequired":true,"uniqueKey":"fills.items.[INDEX].venueMarketOutcomeId","typeLabel":"string"},"chain":{"description":"Where this part settles: a chain id as a decimal string (e.g. `137`), or `venue-cash` for cash held at the venue.","type":"string","isRequired":true,"uniqueKey":"fills.items.[INDEX].chain","typeLabel":"string"},"avgPrice":{"description":"Average price per share paid (received on a sell), 0 to 1.","type":"number","isRequired":true,"uniqueKey":"fills.items.[INDEX].avgPrice","typeLabel":"number"},"yesPrice":{"description":"The price expressed for the YES side, 0 to 1.","type":"number","isRequired":true,"uniqueKey":"fills.items.[INDEX].yesPrice","typeLabel":"number"},"noPrice":{"description":"The price expressed for the NO side, 0 to 1.","type":"number","isRequired":true,"uniqueKey":"fills.items.[INDEX].noPrice","typeLabel":"number"},"fills":{"description":"Order book levels consumed.","type":"array","items":{"type":"object","required":["price","size","fill"],"properties":{"price":{"description":"Price of this book level, 0 to 1.","type":"number","isRequired":true,"uniqueKey":"fills.items.[INDEX].fills.items.[INDEX].price","typeLabel":"number"},"size":{"description":"Shares available at this level, as a float.","type":"number","isRequired":true,"uniqueKey":"fills.items.[INDEX].fills.items.[INDEX].size","typeLabel":"number"},"fill":{"description":"Shares taken at this level, as a float.","type":"number","isRequired":true,"uniqueKey":"fills.items.[INDEX].fills.items.[INDEX].fill","typeLabel":"number"}},"uniqueKey":"fills.items.[INDEX].fills.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"fills.items.[INDEX].fills","typeLabel":"object[]"},"venueQty":{"description":"Shares bought or sold on this venue, as a float.","type":"number","isRequired":true,"uniqueKey":"fills.items.[INDEX].venueQty","typeLabel":"number"},"bookAgeMs":{"minimum":0,"description":"Age of the observed orderbook used for this quote, in milliseconds. Absent for native venue quotes.","type":"number","uniqueKey":"fills.items.[INDEX].bookAgeMs","typeLabel":"number"},"freshnessRow":{"description":"r3 uses the default freshness budget; r4 uses an explicitly enabled relaxed budget with execution price protection.","type":"string","enum":["r3","r4"],"uniqueKey":"fills.items.[INDEX].freshnessRow","typeLabel":"enum\u003cstring>"},"inAmount":{"pattern":"^[0-9]+$","description":"Exact amount paid in, for venues priced live at quote time: USD on a buy, shares on a sell, both in 6-decimal atomic units as an integer string (1000000 = $1 or 1 share).","type":"string","uniqueKey":"fills.items.[INDEX].inAmount","typeLabel":"string"},"outAmount":{"pattern":"^[0-9]+$","description":"Exact amount received, for venues priced live at quote time: shares on a buy, USD on a sell, both in 6-decimal atomic units as an integer string.","type":"string","uniqueKey":"fills.items.[INDEX].outAmount","typeLabel":"string"},"limitPriceMicroUsdc":{"pattern":"^[0-9]+$","description":"Worst price per share the order will accept. Price per share scaled by 1e6, as an integer string (530000 = 0.53).","type":"string","uniqueKey":"fills.items.[INDEX].limitPriceMicroUsdc","typeLabel":"string"},"executionBackend":{"description":"ProphetX only. `direct`: executes in the user's own ProphetX account. `clearinghouse`: executes through AGG's ProphetX account.","type":"string","enum":["clearinghouse","direct"],"uniqueKey":"fills.items.[INDEX].executionBackend","typeLabel":"enum\u003cstring>"},"venueAccountId":{"description":"The user's venue account used, for `direct` execution.","type":"string","uniqueKey":"fills.items.[INDEX].venueAccountId","typeLabel":"string"},"venueFee":{"description":"Venue fee budget for this part, including any reserve held for price movement (see `feeBreakdown.executionReserve`). USD, as a float.","type":"number","uniqueKey":"fills.items.[INDEX].venueFee","typeLabel":"number"},"builderFee":{"description":"Builder-code fee for this part; not included in `venueFee`. USD, as a float.","type":"number","uniqueKey":"fills.items.[INDEX].builderFee","typeLabel":"number"},"settlementFee":{"description":"What the venue deducts from this part's payout if the outcome wins (Hyperliquid); 0 elsewhere. Not charged at fill, and already taken out of `estimatedPayout`. USD, as a float.","type":"number","uniqueKey":"fills.items.[INDEX].settlementFee","typeLabel":"number"}},"uniqueKey":"fills.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"fills","typeLabel":"object[]"},"totalFilled":{"description":"Total shares bought (or sold), as a float.","type":"number","isRequired":true,"uniqueKey":"totalFilled","typeLabel":"number"},"rawExecCost":{"description":"Price × shares across all fills, before fees (proceeds on a sell). USD, as a float.","type":"number","isRequired":true,"uniqueKey":"rawExecCost","typeLabel":"number"},"solveTimeMs":{"description":"Time to compute the route, in milliseconds.","type":"number","isRequired":true,"uniqueKey":"solveTimeMs","typeLabel":"number"},"verifyTimeMs":{"description":"Time to verify the route, in milliseconds.","type":"number","isRequired":true,"uniqueKey":"verifyTimeMs","typeLabel":"number"},"matchedMarkets":{"description":"The same market on other venues. Empty on sells.","type":"array","items":{"type":"object","required":["venue","venueMarketId"],"properties":{"venue":{"type":"string","description":"A venue listing the same market.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"matchedMarkets.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"venueMarketId":{"description":"That venue's market id.","type":"string","isRequired":true,"uniqueKey":"matchedMarkets.items.[INDEX].venueMarketId","typeLabel":"string"}},"uniqueKey":"matchedMarkets.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"matchedMarkets","typeLabel":"object[]"},"quoteRefreshNotBefore":{"format":"date-time","description":"Earliest time to request a new quote (rate-limited venues only).","type":"string","uniqueKey":"quoteRefreshNotBefore","typeLabel":"string\u003cdate-time>"},"quoteFailure":{"description":"A venue that could not be priced live; the quote excludes it.","type":"object","required":["venue","code"],"properties":{"venue":{"type":"string","description":"Venue whose live price request failed (ProphetX).","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"quoteFailure.venue","typeLabel":"enum\u003cstring>"},"code":{"description":"Error code from the venue's quoting service. Open set: passes through upstream codes. Known values include `INSUFFICIENT_LIQUIDITY`, `MARKET_NOT_ACTIVE`, `EXTERNAL_MARKET_CLOSED`, `UNSUPPORTED_MARKET`, `RATE_LIMITED`, `PROVIDER_RATE_LIMITED`, `VENUE_DATA_STALE`, `KYC_REQUIRED`, `PREVIEW_ONLY`, `MARKET_MOVED`, `VENUE_UNAVAILABLE` (the fallback), and `HTTP_\u003cstatus>`.","type":"string","isRequired":true,"uniqueKey":"quoteFailure.code","typeLabel":"string"},"retryAt":{"format":"date-time","description":"When quoting on that venue can resume.","type":"string","uniqueKey":"quoteFailure.retryAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"quoteFailure","typeLabel":"object"},"error":{"description":"Readable reason when `status` is not `ok`.","type":"string","uniqueKey":"error","typeLabel":"string"},"venueSoloQuotes":{"description":"With `compareVenues=true`: the same trade priced on each venue alone, for comparison.","type":"array","items":{"type":"object","required":["quoteId","venue","avgPrice","filledQty","rawExecCost","estimatedPayout","estimatedProfit","returnPct","status","fills"],"properties":{"quoteId":{"oneOf":[{"description":"Quote id to fill on this venue alone; `null` when it is display-only.","type":"string","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].quoteId.oneOf.0","typeLabel":"string"},{"description":"Quote id to fill on this venue alone; `null` when it is display-only.","type":"null","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].quoteId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].quoteId","typeLabel":"string | null"},"venue":{"type":"string","description":"The venue this option trades on.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"avgPrice":{"oneOf":[{"description":"Average price per share on this venue alone, 0 to 1.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].avgPrice.oneOf.0","typeLabel":"number"},{"description":"Average price per share on this venue alone, 0 to 1.","type":"null","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].avgPrice.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].avgPrice","typeLabel":"number | null"},"filledQty":{"description":"Shares fillable on this venue alone, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].filledQty","typeLabel":"number"},"rawExecCost":{"description":"Price × shares on this venue alone. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].rawExecCost","typeLabel":"number"},"estimatedPayout":{"description":"Payout if the outcome wins, after settlement fees. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].estimatedPayout","typeLabel":"number"},"estimatedProfit":{"description":"`estimatedPayout` minus cost. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].estimatedProfit","typeLabel":"number"},"returnPct":{"description":"Profit as a percentage of cost (25 = 25%).","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].returnPct","typeLabel":"number"},"status":{"description":"Result of pricing this venue alone. `ok` when fillable; otherwise a reason. Open set: the top-level `status` values plus `authentication_required`, or a readable message from the venue.","type":"string","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].status","typeLabel":"string"},"fills":{"description":"Parts of the trade on this venue.","type":"array","items":{"type":"object","required":["venue","venueMarketId","venueMarketOutcomeId","chain","avgPrice","yesPrice","noPrice","fills","venueQty"],"properties":{"venue":{"type":"string","description":"Venue this part of the trade executes on.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"venueMarketId":{"description":"Market id on that venue.","type":"string","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].venueMarketId","typeLabel":"string"},"venueMarketOutcomeId":{"description":"Outcome id on that venue.","type":"string","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].venueMarketOutcomeId","typeLabel":"string"},"chain":{"description":"Where this part settles: a chain id as a decimal string (e.g. `137`), or `venue-cash` for cash held at the venue.","type":"string","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].chain","typeLabel":"string"},"avgPrice":{"description":"Average price per share paid (received on a sell), 0 to 1.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].avgPrice","typeLabel":"number"},"yesPrice":{"description":"The price expressed for the YES side, 0 to 1.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].yesPrice","typeLabel":"number"},"noPrice":{"description":"The price expressed for the NO side, 0 to 1.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].noPrice","typeLabel":"number"},"fills":{"description":"Order book levels consumed.","type":"array","items":{"type":"object","required":["price","size","fill"],"properties":{"price":{"description":"Price of this book level, 0 to 1.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].fills.items.[INDEX].price","typeLabel":"number"},"size":{"description":"Shares available at this level, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].fills.items.[INDEX].size","typeLabel":"number"},"fill":{"description":"Shares taken at this level, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].fills.items.[INDEX].fill","typeLabel":"number"}},"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].fills.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].fills","typeLabel":"object[]"},"venueQty":{"description":"Shares bought or sold on this venue, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].venueQty","typeLabel":"number"},"bookAgeMs":{"minimum":0,"description":"Age of the observed orderbook used for this quote, in milliseconds. Absent for native venue quotes.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].bookAgeMs","typeLabel":"number"},"freshnessRow":{"description":"r3 uses the default freshness budget; r4 uses an explicitly enabled relaxed budget with execution price protection.","type":"string","enum":["r3","r4"],"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].freshnessRow","typeLabel":"enum\u003cstring>"},"inAmount":{"pattern":"^[0-9]+$","description":"Exact amount paid in, for venues priced live at quote time: USD on a buy, shares on a sell, both in 6-decimal atomic units as an integer string (1000000 = $1 or 1 share).","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].inAmount","typeLabel":"string"},"outAmount":{"pattern":"^[0-9]+$","description":"Exact amount received, for venues priced live at quote time: shares on a buy, USD on a sell, both in 6-decimal atomic units as an integer string.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].outAmount","typeLabel":"string"},"limitPriceMicroUsdc":{"pattern":"^[0-9]+$","description":"Worst price per share the order will accept. Price per share scaled by 1e6, as an integer string (530000 = 0.53).","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].limitPriceMicroUsdc","typeLabel":"string"},"executionBackend":{"description":"ProphetX only. `direct`: executes in the user's own ProphetX account. `clearinghouse`: executes through AGG's ProphetX account.","type":"string","enum":["clearinghouse","direct"],"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].executionBackend","typeLabel":"enum\u003cstring>"},"venueAccountId":{"description":"The user's venue account used, for `direct` execution.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].venueAccountId","typeLabel":"string"},"venueFee":{"description":"Venue fee budget for this part, including any reserve held for price movement (see `feeBreakdown.executionReserve`). USD, as a float.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].venueFee","typeLabel":"number"},"builderFee":{"description":"Builder-code fee for this part; not included in `venueFee`. USD, as a float.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].builderFee","typeLabel":"number"},"settlementFee":{"description":"What the venue deducts from this part's payout if the outcome wins (Hyperliquid); 0 elsewhere. Not charged at fill, and already taken out of `estimatedPayout`. USD, as a float.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX].settlementFee","typeLabel":"number"}},"uniqueKey":"venueSoloQuotes.items.[INDEX].fills.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].fills","typeLabel":"object[]"},"quoteFailure":{"description":"A venue that could not be priced live; the quote excludes it.","type":"object","required":["venue","code"],"properties":{"venue":{"type":"string","description":"Venue whose live price request failed (ProphetX).","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].quoteFailure.venue","typeLabel":"enum\u003cstring>"},"code":{"description":"Error code from the venue's quoting service. Open set: passes through upstream codes. Known values include `INSUFFICIENT_LIQUIDITY`, `MARKET_NOT_ACTIVE`, `EXTERNAL_MARKET_CLOSED`, `UNSUPPORTED_MARKET`, `RATE_LIMITED`, `PROVIDER_RATE_LIMITED`, `VENUE_DATA_STALE`, `KYC_REQUIRED`, `PREVIEW_ONLY`, `MARKET_MOVED`, `VENUE_UNAVAILABLE` (the fallback), and `HTTP_\u003cstatus>`.","type":"string","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].quoteFailure.code","typeLabel":"string"},"retryAt":{"format":"date-time","description":"When quoting on that venue can resume.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].quoteFailure.retryAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"venueSoloQuotes.items.[INDEX].quoteFailure","typeLabel":"object"},"unavailableReason":{"description":"Why this venue cannot be filled alone. Open set: known values include `geo_blocked`, `insufficient_depth`, `insufficient_balance`, `unsupported_venue`, `authentication_required`, `kyc_required`, `infeasible`, `min_notional`, `lot_too_small`, `min_quantity`, `bridge_amount_too_small`, `unsupported_bridge`, `venue_unavailable`.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].unavailableReason","typeLabel":"string"},"venueMarketOutcomeId":{"description":"Outcome this option trades. One venue can list the same outcome twice, so key on `venue` plus this.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].venueMarketOutcomeId","typeLabel":"string"},"totalCostIncFees":{"description":"feeBreakdown.totalCost plus this solo's own user-paid app fee and referral — same composition as the primary route's totalCostIncFees. estimatedProfit/returnPct stay router values, unaffected. Absent when the router sent no feeBreakdown for this solo.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].totalCostIncFees","typeLabel":"number"},"allocations":{"description":"How the trade is funded.","type":"array","items":{"type":"object","required":["sourceChainId","venue","amount"],"properties":{"sourceChainId":{"description":"Chain the funds come from, as a decimal chain id string.","type":"string","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].sourceChainId","typeLabel":"string"},"venue":{"type":"string","description":"Venue these funds pay for.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"amount":{"description":"Amount delivered to that venue. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].amount","typeLabel":"number"},"sourceTokenAddress":{"description":"Token contract the funds are drawn from.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].sourceTokenAddress","typeLabel":"string"},"custodyKind":{"description":"What holds the funds: `EOA` a wallet, `DEPOSIT_WALLET` a Polymarket deposit wallet, `POLYMARKET_LEGACY` a pre-existing Polymarket wallet, `VENUE_ACCOUNT` cash at a venue.","type":"string","enum":["EOA","DEPOSIT_WALLET","POLYMARKET_LEGACY","VENUE_ACCOUNT"],"uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].custodyKind","typeLabel":"enum\u003cstring>"},"custodyAddress":{"description":"Deposit wallet address, with `custodyKind: DEPOSIT_WALLET`.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].custodyAddress","typeLabel":"string"},"sourceVenueAccountId":{"description":"With `VENUE_ACCOUNT`: AGG id of the venue account.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].sourceVenueAccountId","typeLabel":"string"},"sourceExternalAccountId":{"description":"With `VENUE_ACCOUNT`: the venue's own account id.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].sourceExternalAccountId","typeLabel":"string"},"sourceAddress":{"description":"Address the funds sit at. Absent on older quotes, where it is the signing wallet.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].sourceAddress","typeLabel":"string"},"exactToken":{"description":"`true` when this exact token balance is spent.","type":"boolean","uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX].exactToken","typeLabel":"boolean"}},"uniqueKey":"venueSoloQuotes.items.[INDEX].allocations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"venueSoloQuotes.items.[INDEX].allocations","typeLabel":"object[]"},"bridgeSteps":{"description":"Cross-chain transfers needed.","type":"array","items":{"type":"object","required":["sourceChainId","destChainId","amount","cost"],"properties":{"sourceChainId":{"description":"Chain bridged from, as a decimal string.","type":"string","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].bridgeSteps.items.[INDEX].sourceChainId","typeLabel":"string"},"destChainId":{"description":"Chain bridged to, as a decimal string.","type":"string","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].bridgeSteps.items.[INDEX].destChainId","typeLabel":"string"},"amount":{"description":"Source-side amount sent into the bridge, in USD: the allocations this bridge funds plus cost.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].bridgeSteps.items.[INDEX].amount","typeLabel":"number"},"cost":{"description":"Delivery margin, in USD, sent on top of the allocations so the destination still receives them in full after the bridge takes its fee. A planning reserve, not the expected fee: excluded from feeBreakdown.bridgeFees and totalCost, and whatever the bridge does not charge arrives at the destination as the user's balance. Read feeBreakdown.bridgeFees for the expected bridge fee.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].bridgeSteps.items.[INDEX].cost","typeLabel":"number"},"sourceTokenAddress":{"description":"Token sent.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].bridgeSteps.items.[INDEX].sourceTokenAddress","typeLabel":"string"},"destTokenAddress":{"description":"Token received.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].bridgeSteps.items.[INDEX].destTokenAddress","typeLabel":"string"}},"uniqueKey":"venueSoloQuotes.items.[INDEX].bridgeSteps.items.[INDEX]","typeLabel":"object"},"uniqueKey":"venueSoloQuotes.items.[INDEX].bridgeSteps","typeLabel":"object[]"},"setupCosts":{"description":"One-time setup costs for this venue. Only with `deepEstimate=true`; `estimatedProfit` and `returnPct` then include them.","type":"array","items":{"type":"object","required":["kind","venue","costUsd","alreadyPaid"],"properties":{"kind":{"description":"`chainApproval`: a one-time token approval on a chain. `venueMarketAta`: a one-time Solana token account for a market. `hyperliquidActivation`: Hyperliquid's one-time account activation fee.","type":"string","enum":["chainApproval","venueMarketAta","hyperliquidActivation"],"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].setupCosts.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"venue":{"type":"string","description":"Venue that needs the setup.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].setupCosts.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"costUsd":{"description":"One-time cost. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].setupCosts.items.[INDEX].costUsd","typeLabel":"number"},"alreadyPaid":{"description":"`true` when the user already did this setup; not charged again.","type":"boolean","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].setupCosts.items.[INDEX].alreadyPaid","typeLabel":"boolean"},"chainId":{"description":"Chain of the approval.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].setupCosts.items.[INDEX].chainId","typeLabel":"number"},"venueMarketId":{"description":"Market that needs the account.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].setupCosts.items.[INDEX].venueMarketId","typeLabel":"string"}},"uniqueKey":"venueSoloQuotes.items.[INDEX].setupCosts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"venueSoloQuotes.items.[INDEX].setupCosts","typeLabel":"object[]"},"setupCostsTotal":{"description":"Sum of the setup costs not yet paid. USD, as a float.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].setupCostsTotal","typeLabel":"number"},"feeBreakdown":{"description":"Costs of trading on this venue alone, when `status` is `ok`. Use this, not the top-level `feeBreakdown`, for a per-venue fee display.","type":"object","required":["rawExecCost","venueFees","bridgeFees","executionGas","totalCost"],"properties":{"rawExecCost":{"description":"Price × shares, before any fee (proceeds on a sell). USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.rawExecCost","typeLabel":"number"},"venueFees":{"description":"Venue trading fees, excluding reserves and the builder fee. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.venueFees","typeLabel":"number"},"bridgeFees":{"description":"Expected cross-chain transfer fees, including any funding fee. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.bridgeFees","typeLabel":"number"},"executionGas":{"description":"Estimated network gas for execution. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.executionGas","typeLabel":"number"},"totalCost":{"description":"`rawExecCost` + `venueFees` + `builderFee` + `bridgeFees` + `executionGas`. Excludes the app and referral fees; see `totalCostIncFees`. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.totalCost","typeLabel":"number"},"builderFee":{"description":"Builder-code fee: your own rate if you have a builder code, otherwise the platform default. Not in `venueFees`; included in `totalCost`. USD, as a float.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.builderFee","typeLabel":"number"},"executionReserve":{"minimum":0,"description":"Additional buy-side clearing-house funding held for slippage or possible venue charges, not a confirmed fee. Excluded from venueFees and totalCost; funding allocations include it. Unused funds are released after execution.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.executionReserve","typeLabel":"number"},"appFee":{"description":"Maximum app fee on this buy, if it fills in full; collected after the fill on the amount actually filled. Present only when above 0. USD, as a float.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.appFee","typeLabel":"number"},"appFeeBips":{"description":"App fee rate, in basis points. Present with `appFee`. When the venues this route fills have different rates, the highest of them; see `appFeeBipsByVenue`.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.appFeeBips","typeLabel":"number"},"appFeeBipsByVenue":{"description":"App fee rate per venue this route fills, in basis points. Present only when those rates differ; `appFee` charges each venue's share of the notional at its own rate.","type":"object","additionalProperties":{"type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.appFeeBipsByVenue.additionalProperties","typeLabel":"number"},"uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.appFeeBipsByVenue","typeLabel":"object"},"appFeeCategory":{"description":"Which of your fee rules matched: `all`, `override` (a per-trade `appFeeBips`), or one of your category names.","type":"string","uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.appFeeCategory","typeLabel":"string"},"referralFee":{"description":"Referral fee the user pays. Present only when above 0 and `referralPayer` is `user`; an app-paid referral never appears here. USD, as a float.","type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.referralFee","typeLabel":"number"},"referralFeeBipsByVenue":{"description":"Referral fee rate per venue this route fills, in basis points. Present with `referralFee`, only when those rates differ.","type":"object","additionalProperties":{"type":"number","uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.referralFeeBipsByVenue.additionalProperties","typeLabel":"number"},"uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown.referralFeeBipsByVenue","typeLabel":"object"}},"uniqueKey":"venueSoloQuotes.items.[INDEX].feeBreakdown","typeLabel":"object"}},"uniqueKey":"venueSoloQuotes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"venueSoloQuotes","typeLabel":"object[]"},"allocations":{"description":"How the trade is funded, per source and venue.","type":"array","items":{"type":"object","required":["sourceChainId","venue","amount"],"properties":{"sourceChainId":{"description":"Chain the funds come from, as a decimal chain id string.","type":"string","isRequired":true,"uniqueKey":"allocations.items.[INDEX].sourceChainId","typeLabel":"string"},"venue":{"type":"string","description":"Venue these funds pay for.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"allocations.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"amount":{"description":"Amount delivered to that venue. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"allocations.items.[INDEX].amount","typeLabel":"number"},"sourceTokenAddress":{"description":"Token contract the funds are drawn from.","type":"string","uniqueKey":"allocations.items.[INDEX].sourceTokenAddress","typeLabel":"string"},"custodyKind":{"description":"What holds the funds: `EOA` a wallet, `DEPOSIT_WALLET` a Polymarket deposit wallet, `POLYMARKET_LEGACY` a pre-existing Polymarket wallet, `VENUE_ACCOUNT` cash at a venue.","type":"string","enum":["EOA","DEPOSIT_WALLET","POLYMARKET_LEGACY","VENUE_ACCOUNT"],"uniqueKey":"allocations.items.[INDEX].custodyKind","typeLabel":"enum\u003cstring>"},"custodyAddress":{"description":"Deposit wallet address, with `custodyKind: DEPOSIT_WALLET`.","type":"string","uniqueKey":"allocations.items.[INDEX].custodyAddress","typeLabel":"string"},"sourceVenueAccountId":{"description":"With `VENUE_ACCOUNT`: AGG id of the venue account.","type":"string","uniqueKey":"allocations.items.[INDEX].sourceVenueAccountId","typeLabel":"string"},"sourceExternalAccountId":{"description":"With `VENUE_ACCOUNT`: the venue's own account id.","type":"string","uniqueKey":"allocations.items.[INDEX].sourceExternalAccountId","typeLabel":"string"},"sourceAddress":{"description":"Address the funds sit at. Absent on older quotes, where it is the signing wallet.","type":"string","uniqueKey":"allocations.items.[INDEX].sourceAddress","typeLabel":"string"},"exactToken":{"description":"`true` when this exact token balance is spent.","type":"boolean","uniqueKey":"allocations.items.[INDEX].exactToken","typeLabel":"boolean"}},"uniqueKey":"allocations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"allocations","typeLabel":"object[]"},"bridgeSteps":{"description":"Cross-chain transfers needed.","type":"array","items":{"type":"object","required":["sourceChainId","destChainId","amount","cost"],"properties":{"sourceChainId":{"description":"Chain bridged from, as a decimal string.","type":"string","isRequired":true,"uniqueKey":"bridgeSteps.items.[INDEX].sourceChainId","typeLabel":"string"},"destChainId":{"description":"Chain bridged to, as a decimal string.","type":"string","isRequired":true,"uniqueKey":"bridgeSteps.items.[INDEX].destChainId","typeLabel":"string"},"amount":{"description":"Source-side amount sent into the bridge, in USD: the allocations this bridge funds plus cost.","type":"number","isRequired":true,"uniqueKey":"bridgeSteps.items.[INDEX].amount","typeLabel":"number"},"cost":{"description":"Delivery margin, in USD, sent on top of the allocations so the destination still receives them in full after the bridge takes its fee. A planning reserve, not the expected fee: excluded from feeBreakdown.bridgeFees and totalCost, and whatever the bridge does not charge arrives at the destination as the user's balance. Read feeBreakdown.bridgeFees for the expected bridge fee.","type":"number","isRequired":true,"uniqueKey":"bridgeSteps.items.[INDEX].cost","typeLabel":"number"},"sourceTokenAddress":{"description":"Token sent.","type":"string","uniqueKey":"bridgeSteps.items.[INDEX].sourceTokenAddress","typeLabel":"string"},"destTokenAddress":{"description":"Token received.","type":"string","uniqueKey":"bridgeSteps.items.[INDEX].destTokenAddress","typeLabel":"string"}},"uniqueKey":"bridgeSteps.items.[INDEX]","typeLabel":"object"},"uniqueKey":"bridgeSteps","typeLabel":"object[]"},"feeBreakdown":{"description":"Cost of the trade, line by line.","type":"object","required":["rawExecCost","venueFees","bridgeFees","executionGas","totalCost"],"properties":{"rawExecCost":{"description":"Price × shares, before any fee (proceeds on a sell). USD, as a float.","type":"number","isRequired":true,"uniqueKey":"feeBreakdown.rawExecCost","typeLabel":"number"},"venueFees":{"description":"Venue trading fees, excluding reserves and the builder fee. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"feeBreakdown.venueFees","typeLabel":"number"},"bridgeFees":{"description":"Expected cross-chain transfer fees, including any funding fee. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"feeBreakdown.bridgeFees","typeLabel":"number"},"executionGas":{"description":"Estimated network gas for execution. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"feeBreakdown.executionGas","typeLabel":"number"},"totalCost":{"description":"`rawExecCost` + `venueFees` + `builderFee` + `bridgeFees` + `executionGas`. Excludes the app and referral fees; see `totalCostIncFees`. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"feeBreakdown.totalCost","typeLabel":"number"},"builderFee":{"description":"Builder-code fee: your own rate if you have a builder code, otherwise the platform default. Not in `venueFees`; included in `totalCost`. USD, as a float.","type":"number","uniqueKey":"feeBreakdown.builderFee","typeLabel":"number"},"executionReserve":{"minimum":0,"description":"Additional buy-side clearing-house funding held for slippage or possible venue charges, not a confirmed fee. Excluded from venueFees and totalCost; funding allocations include it. Unused funds are released after execution.","type":"number","uniqueKey":"feeBreakdown.executionReserve","typeLabel":"number"},"appFee":{"description":"Maximum app fee on this buy, if it fills in full; collected after the fill on the amount actually filled. Present only when above 0. USD, as a float.","type":"number","uniqueKey":"feeBreakdown.appFee","typeLabel":"number"},"appFeeBips":{"description":"App fee rate, in basis points. Present with `appFee`. When the venues this route fills have different rates, the highest of them; see `appFeeBipsByVenue`.","type":"number","uniqueKey":"feeBreakdown.appFeeBips","typeLabel":"number"},"appFeeBipsByVenue":{"description":"App fee rate per venue this route fills, in basis points. Present only when those rates differ; `appFee` charges each venue's share of the notional at its own rate.","type":"object","additionalProperties":{"type":"number","uniqueKey":"feeBreakdown.appFeeBipsByVenue.additionalProperties","typeLabel":"number"},"uniqueKey":"feeBreakdown.appFeeBipsByVenue","typeLabel":"object"},"appFeeCategory":{"description":"Which of your fee rules matched: `all`, `override` (a per-trade `appFeeBips`), or one of your category names.","type":"string","uniqueKey":"feeBreakdown.appFeeCategory","typeLabel":"string"},"referralFee":{"description":"Referral fee the user pays. Present only when above 0 and `referralPayer` is `user`; an app-paid referral never appears here. USD, as a float.","type":"number","uniqueKey":"feeBreakdown.referralFee","typeLabel":"number"},"referralFeeBipsByVenue":{"description":"Referral fee rate per venue this route fills, in basis points. Present with `referralFee`, only when those rates differ.","type":"object","additionalProperties":{"type":"number","uniqueKey":"feeBreakdown.referralFeeBipsByVenue.additionalProperties","typeLabel":"number"},"uniqueKey":"feeBreakdown.referralFeeBipsByVenue","typeLabel":"object"},"setupCosts":{"description":"One-time setup costs, only with `deepEstimate=true`. Items the user already paid have `alreadyPaid: true`.","type":"array","items":{"type":"object","required":["kind","venue","costUsd","alreadyPaid"],"properties":{"kind":{"description":"`chainApproval`: a one-time token approval on a chain. `venueMarketAta`: a one-time Solana token account for a market. `hyperliquidActivation`: Hyperliquid's one-time account activation fee.","type":"string","enum":["chainApproval","venueMarketAta","hyperliquidActivation"],"isRequired":true,"uniqueKey":"feeBreakdown.setupCosts.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"venue":{"type":"string","description":"Venue that needs the setup.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"feeBreakdown.setupCosts.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"costUsd":{"description":"One-time cost. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"feeBreakdown.setupCosts.items.[INDEX].costUsd","typeLabel":"number"},"alreadyPaid":{"description":"`true` when the user already did this setup; not charged again.","type":"boolean","isRequired":true,"uniqueKey":"feeBreakdown.setupCosts.items.[INDEX].alreadyPaid","typeLabel":"boolean"},"chainId":{"description":"Chain of the approval.","type":"number","uniqueKey":"feeBreakdown.setupCosts.items.[INDEX].chainId","typeLabel":"number"},"venueMarketId":{"description":"Market that needs the account.","type":"string","uniqueKey":"feeBreakdown.setupCosts.items.[INDEX].venueMarketId","typeLabel":"string"}},"uniqueKey":"feeBreakdown.setupCosts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"feeBreakdown.setupCosts","typeLabel":"object[]"},"setupCostsTotal":{"description":"Sum of the setup costs not yet paid. USD, as a float.","type":"number","uniqueKey":"feeBreakdown.setupCostsTotal","typeLabel":"number"},"gasReimbursement":{"description":"Part of `executionGas` collected together with the app fee. Already inside `totalCost`, not an extra charge. Present only when above 0. USD, as a float.","type":"number","uniqueKey":"feeBreakdown.gasReimbursement","typeLabel":"number"}},"uniqueKey":"feeBreakdown","typeLabel":"object"},"appFee":{"oneOf":[{"description":"App fee settings frozen at quote time, for reconciliation. `null` when the app charges no fee. For display use `feeBreakdown.appFee`.","type":"object","required":["bips","categoryKey","quotedAppFeeRaw"],"properties":{"bips":{"description":"App fee rate at quote time, in basis points: the highest rate among the venues this route fills.","type":"number","isRequired":true,"uniqueKey":"appFee.oneOf.0.bips","typeLabel":"number"},"categoryKey":{"description":"Fee rule matched (same values as `feeBreakdown.appFeeCategory`).","type":"string","isRequired":true,"uniqueKey":"appFee.oneOf.0.categoryKey","typeLabel":"string"},"quotedAppFeeRaw":{"description":"Maximum app fee, for reconciliation. USD in 6-decimal atomic units, as an integer string (1000000 = $1.00).","type":"string","isRequired":true,"uniqueKey":"appFee.oneOf.0.quotedAppFeeRaw","typeLabel":"string"},"bipsByVenue":{"description":"Rate per venue this route fills, in basis points. Present only when those rates differ.","type":"object","additionalProperties":{"type":"number","uniqueKey":"appFee.oneOf.0.bipsByVenue.additionalProperties","typeLabel":"number"},"uniqueKey":"appFee.oneOf.0.bipsByVenue","typeLabel":"object"}},"uniqueKey":"appFee.oneOf.0","typeLabel":"object"},{"description":"App fee settings frozen at quote time, for reconciliation. `null` when the app charges no fee. For display use `feeBreakdown.appFee`.","type":"null","required":["bips","categoryKey","quotedAppFeeRaw"],"properties":{"bips":{"description":"App fee rate at quote time, in basis points: the highest rate among the venues this route fills.","type":"number"},"categoryKey":{"description":"Fee rule matched (same values as `feeBreakdown.appFeeCategory`).","type":"string"},"quotedAppFeeRaw":{"description":"Maximum app fee, for reconciliation. USD in 6-decimal atomic units, as an integer string (1000000 = $1.00).","type":"string"},"bipsByVenue":{"description":"Rate per venue this route fills, in basis points. Present only when those rates differ.","type":"object","additionalProperties":{"type":"number"}}},"uniqueKey":"appFee.oneOf.1","typeLabel":"null"}],"uniqueKey":"appFee","typeLabel":"object | null"},"referral":{"oneOf":[{"description":"The referral this quote pays; absent or `null` without a referrer.","type":"object","required":["referrer","feeBips","payer","quotedFeeUsd"],"properties":{"referrer":{"description":"Referrer address.","type":"string","isRequired":true,"uniqueKey":"referral.oneOf.0.referrer","typeLabel":"string"},"feeBips":{"description":"Referral fee rate, in basis points: the highest rate among the venues this route fills.","type":"number","isRequired":true,"uniqueKey":"referral.oneOf.0.feeBips","typeLabel":"number"},"payer":{"description":"Who pays the referral fee: the trading `user` or the `app`.","type":"string","enum":["user","app"],"isRequired":true,"uniqueKey":"referral.oneOf.0.payer","typeLabel":"enum\u003cstring>"},"quotedFeeUsd":{"description":"Maximum referral fee. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"referral.oneOf.0.quotedFeeUsd","typeLabel":"number"},"feeBipsByVenue":{"description":"Rate per venue this route fills, in basis points. Present only when those rates differ.","type":"object","additionalProperties":{"type":"number","uniqueKey":"referral.oneOf.0.feeBipsByVenue.additionalProperties","typeLabel":"number"},"uniqueKey":"referral.oneOf.0.feeBipsByVenue","typeLabel":"object"},"payerAddress":{"description":"Paying wallet, when the app pays.","type":"string","uniqueKey":"referral.oneOf.0.payerAddress","typeLabel":"string"},"activationSponsorAddress":{"description":"Wallet sponsoring the referrer's HyperCore activation, when sent.","type":"string","uniqueKey":"referral.oneOf.0.activationSponsorAddress","typeLabel":"string"}},"uniqueKey":"referral.oneOf.0","typeLabel":"object"},{"description":"The referral this quote pays; absent or `null` without a referrer.","type":"null","required":["referrer","feeBips","payer","quotedFeeUsd"],"properties":{"referrer":{"description":"Referrer address.","type":"string"},"feeBips":{"description":"Referral fee rate, in basis points: the highest rate among the venues this route fills.","type":"number"},"feeBipsByVenue":{"description":"Rate per venue this route fills, in basis points. Present only when those rates differ.","type":"object","additionalProperties":{"type":"number"}},"payer":{"description":"Who pays the referral fee: the trading `user` or the `app`.","type":"string","enum":["user","app"]},"payerAddress":{"description":"Paying wallet, when the app pays.","type":"string"},"activationSponsorAddress":{"description":"Wallet sponsoring the referrer's HyperCore activation, when sent.","type":"string"},"quotedFeeUsd":{"description":"Maximum referral fee. USD, as a float.","type":"number"}},"uniqueKey":"referral.oneOf.1","typeLabel":"null"}],"uniqueKey":"referral","typeLabel":"object | null"},"slippage":{"description":"Price impact of the route.","type":"object","required":["vwap","refMidpoint","slippage","slippageBps"],"properties":{"vwap":{"description":"Volume-weighted average price, 0 to 1.","type":"number","isRequired":true,"uniqueKey":"slippage.vwap","typeLabel":"number"},"refMidpoint":{"description":"Reference midpoint price, 0 to 1.","type":"number","isRequired":true,"uniqueKey":"slippage.refMidpoint","typeLabel":"number"},"slippage":{"description":"`vwap` minus `refMidpoint` per share, never below 0.","type":"number","isRequired":true,"uniqueKey":"slippage.slippage","typeLabel":"number"},"slippageBps":{"description":"Slippage relative to the midpoint, in bps.","type":"number","isRequired":true,"uniqueKey":"slippage.slippageBps","typeLabel":"number"}},"uniqueKey":"slippage","typeLabel":"object"},"optima":{"description":"Best values each objective could reach on its own, for comparison.","type":"object","required":["maxFilledQty","minSlippage","minCost","minRisk","minBridges","minVenues"],"properties":{"maxFilledQty":{"description":"Most shares reachable within budget.","type":"number","isRequired":true,"uniqueKey":"optima.maxFilledQty","typeLabel":"number"},"minSlippage":{"description":"Lowest slippage cost reachable. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"optima.minSlippage","typeLabel":"number"},"minCost":{"description":"Lowest total cost reachable. USD, as a float.","type":"number","isRequired":true,"uniqueKey":"optima.minCost","typeLabel":"number"},"minRisk":{"description":"Lowest execution-delay risk score (unitless).","type":"number","isRequired":true,"uniqueKey":"optima.minRisk","typeLabel":"number"},"minBridges":{"description":"Fewest cross-chain transfers possible.","type":"number","isRequired":true,"uniqueKey":"optima.minBridges","typeLabel":"number"},"minVenues":{"description":"Fewest venues possible.","type":"number","isRequired":true,"uniqueKey":"optima.minVenues","typeLabel":"number"}},"uniqueKey":"optima","typeLabel":"object"},"warnings":{"description":"Venues left out of the route or flagged, without blocking the quote.","type":"array","items":{"type":"object","required":["venue","venueMarketOutcomeId","reason"],"properties":{"venue":{"type":"string","description":"Venue skipped or flagged.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"warnings.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"venueMarketOutcomeId":{"description":"Outcome skipped or flagged.","type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].venueMarketOutcomeId","typeLabel":"string"},"reason":{"description":"Why. Open set, may include readable text and upstream codes. Known values: `low_liquidity`, `low_balance`, `stale_orderbook`, `orderbook_clock_skew`, `invalid_prices`, `invalid_fee_metadata`, `empty_book`, `crossed_book`, `endpoint_stub`, `stub_orderbook`, `bid_only_no_asks`, `ask_only_no_bids`, `no_orderbook`, `hosted_cash_unavailable`, `app_fee_unsupported`, `referral_unpaid_on_solana`, `referrer_not_activated_on_hypercore`, `sell_fee_unsupported_venue`, `sell_fee_multi_venue`, `sell_fee_unsupported_wallet`, `sell_referral_unsupported_venue`, and \"Venue not available in your region (XX)\".","type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].reason","typeLabel":"string"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings","typeLabel":"object[]"},"custodyWarnings":{"description":"Self-custody quotes only: the quote is valid but the fill from this wallet would be refused. Absent on managed quotes.","type":"array","items":{"type":"object","required":["reason","message"],"properties":{"reason":{"description":"Why the quote cannot be filled from `signingAddress`: `self_custody_app_fee` or `self_custody_redeem_unsupported`.","type":"string","isRequired":true,"uniqueKey":"custodyWarnings.items.[INDEX].reason","typeLabel":"string"},"message":{"description":"Readable explanation.","type":"string","isRequired":true,"uniqueKey":"custodyWarnings.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"custodyWarnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"custodyWarnings","typeLabel":"object[]"},"message":{"description":"Informational note, e.g. on redemption.","type":"string","uniqueKey":"message","typeLabel":"string"},"settlementPlan":{"description":"Sell quotes on resolved markets only: winning shares are redeemed for their payout instead of sold.","type":"object","required":["redeemId","status","message","totalRedeemableShares","totalRedeemShares","totalSellShares","redeemLegs"],"properties":{"redeemId":{"description":"Id of the redemption (equals the quote id).","type":"string","isRequired":true,"uniqueKey":"settlementPlan.redeemId","typeLabel":"string"},"status":{"description":"`redeem_only`: every share is redeemed, nothing is sold. `partial_redeem`: some shares are redeemed and the rest are sold on the market.","type":"string","enum":["redeem_only","partial_redeem"],"isRequired":true,"uniqueKey":"settlementPlan.status","typeLabel":"enum\u003cstring>"},"message":{"description":"Readable summary.","type":"string","isRequired":true,"uniqueKey":"settlementPlan.message","typeLabel":"string"},"totalRedeemableShares":{"description":"Resolved shares the user could redeem, as a float.","type":"number","isRequired":true,"uniqueKey":"settlementPlan.totalRedeemableShares","typeLabel":"number"},"totalRedeemShares":{"description":"Shares this quote redeems, as a float.","type":"number","isRequired":true,"uniqueKey":"settlementPlan.totalRedeemShares","typeLabel":"number"},"totalSellShares":{"description":"Shares still sold on the market, as a float.","type":"number","isRequired":true,"uniqueKey":"settlementPlan.totalSellShares","typeLabel":"number"},"redeemLegs":{"description":"The positions redeemed.","type":"array","items":{"type":"object","required":["action","venue","venueMarketId","venueMarketOutcomeId","positionId","size","redeemPath"],"properties":{"action":{"description":"Always `redeem`.","type":"string","enum":["redeem"],"isRequired":true,"uniqueKey":"settlementPlan.redeemLegs.items.[INDEX].action","typeLabel":"enum\u003cstring>"},"venue":{"type":"string","description":"Venue holding the resolved position.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"settlementPlan.redeemLegs.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"venueMarketId":{"description":"Market id.","type":"string","isRequired":true,"uniqueKey":"settlementPlan.redeemLegs.items.[INDEX].venueMarketId","typeLabel":"string"},"venueMarketOutcomeId":{"description":"Outcome id.","type":"string","isRequired":true,"uniqueKey":"settlementPlan.redeemLegs.items.[INDEX].venueMarketOutcomeId","typeLabel":"string"},"positionId":{"description":"Position being redeemed.","type":"string","isRequired":true,"uniqueKey":"settlementPlan.redeemLegs.items.[INDEX].positionId","typeLabel":"string"},"size":{"description":"Shares redeemed on this leg, as a decimal string (e.g. \"12.5\").","type":"string","isRequired":true,"uniqueKey":"settlementPlan.redeemLegs.items.[INDEX].size","typeLabel":"string"},"redeemPath":{"description":"Chain family the redemption runs on; currently always `evm`.","type":"string","enum":["evm","svm"],"isRequired":true,"uniqueKey":"settlementPlan.redeemLegs.items.[INDEX].redeemPath","typeLabel":"enum\u003cstring>"}},"uniqueKey":"settlementPlan.redeemLegs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"settlementPlan.redeemLegs","typeLabel":"object[]"}},"uniqueKey":"settlementPlan","typeLabel":"object"},"estimatedPayout":{"description":"Payout if the outcome wins, after settlement fees. USD, as a float.","type":"number","uniqueKey":"estimatedPayout","typeLabel":"number"},"totalCostIncFees":{"description":"All-in cost: `feeBreakdown.totalCost` + app fee + user-paid referral fee + any funding fee. USD, as a float.","type":"number","uniqueKey":"totalCostIncFees","typeLabel":"number"},"estimatedNetProceeds":{"description":"Sell only: what the sell returns after every fee charged at fill — gross proceeds minus venue, builder, app, and user-paid referral fees. USD, as a float.","type":"number","uniqueKey":"estimatedNetProceeds","typeLabel":"number"},"estimatedProfit":{"description":"`estimatedPayout` minus cost. USD, as a float.","type":"number","uniqueKey":"estimatedProfit","typeLabel":"number"},"returnPct":{"description":"Profit as a percentage of cost (25 = 25%).","type":"number","uniqueKey":"returnPct","typeLabel":"number"},"positionAvailability":{"description":"Sell quotes only: the user's sellable shares when the quote was built, on the venues the request allows. Returned on `ok` sell quotes too; on `insufficient_position` it says how much can be sold. A snapshot, not a reservation: the fill re-checks the live venue balance.","type":"object","required":["totalSellableShares","venueMarketOutcomes"],"properties":{"totalSellableShares":{"description":"Shares the user can sell across the listed legs, as a float.","type":"number","isRequired":true,"uniqueKey":"positionAvailability.totalSellableShares","typeLabel":"number"},"venueMarketOutcomes":{"description":"Where the sellable shares are.","type":"array","items":{"type":"object","required":["id","venue","venueMarketId","availableShares"],"properties":{"id":{"description":"Outcome id.","type":"string","isRequired":true,"uniqueKey":"positionAvailability.venueMarketOutcomes.items.[INDEX].id","typeLabel":"string"},"venue":{"type":"string","description":"Venue holding the shares.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"positionAvailability.venueMarketOutcomes.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"venueMarketId":{"description":"Market id.","type":"string","isRequired":true,"uniqueKey":"positionAvailability.venueMarketOutcomes.items.[INDEX].venueMarketId","typeLabel":"string"},"availableShares":{"description":"Shares sellable on this leg (tradeable or redeemable), as a float.","type":"number","isRequired":true,"uniqueKey":"positionAvailability.venueMarketOutcomes.items.[INDEX].availableShares","typeLabel":"number"}},"uniqueKey":"positionAvailability.venueMarketOutcomes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"positionAvailability.venueMarketOutcomes","typeLabel":"object[]"}},"uniqueKey":"positionAvailability","typeLabel":"object"},"sizeStepRaw":{"description":"Limit-order size step on this venue, in 6-decimal share units (10000 = 0.01 share). Only on a single-venue quote (`allowedVenues` of one). Absent means any 1-unit size.","type":"string","uniqueKey":"sizeStepRaw","typeLabel":"string"},"minSizeRaw":{"description":"Smallest limit-order size on this venue/market, in 6-decimal share units. Only on a single-venue quote. Absent means no venue minimum is known.","type":"string","uniqueKey":"minSizeRaw","typeLabel":"string"},"legBounds":{"type":"array","items":{"type":"object","required":["venue","venueMarketOutcomeId","side","worstPrice","effectiveSlippageBps"],"properties":{"venue":{"type":"string","description":"Venue whose execution price is bounded.","enum":["kalshi","polymarket","limitless","predict","pred","tiprun","myriad","hyperliquid","novig","prophetx","betdex","lighter"],"isRequired":true,"uniqueKey":"legBounds.items.[INDEX].venue","typeLabel":"enum\u003cstring>"},"venueMarketOutcomeId":{"type":"string","isRequired":true,"uniqueKey":"legBounds.items.[INDEX].venueMarketOutcomeId","typeLabel":"string"},"side":{"type":"string","enum":["buy","sell"],"isRequired":true,"uniqueKey":"legBounds.items.[INDEX].side","typeLabel":"enum\u003cstring>"},"worstPrice":{"description":"Worst accepted execution price per share before venue fees, in USD as a decimal from 0 to 1.","type":"number","isRequired":true,"uniqueKey":"legBounds.items.[INDEX].worstPrice","typeLabel":"number"},"effectiveSlippageBps":{"description":"Accepted price tolerance in basis points (500 = 5%).","type":"number","isRequired":true,"uniqueKey":"legBounds.items.[INDEX].effectiveSlippageBps","typeLabel":"number"}},"uniqueKey":"legBounds.items.[INDEX]","typeLabel":"object"},"uniqueKey":"legBounds","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"quoteId":"k2r8v5n1x7c4m9t3b6q0w2za","venueMarketOutcomeId":"cmf3q8z1k00a2mw0l7xg4v9rt","venueMarketId":"cmf3q8yzt009xmw0lh2c5d8kn","estimatedCostRaw":"25000000","expiresAt":"2026-09-29T15:04:30.000Z","refreshAt":"2026-09-29T15:04:20.000Z","status":"ok","fills":[{"venue":"polymarket","venueMarketId":"cmf3q8z0a009zmw0l3w8n6jbd","venueMarketOutcomeId":"cmf3q8z2m00a4mw0lr5t1k7yc","chain":"137","avgPrice":0.51,"yesPrice":0.51,"noPrice":0.5,"fills":[{"price":0.51,"size":30,"fill":30}],"venueQty":30,"venueFee":0},{"venue":"limitless","venueMarketId":"cmf3q8z0x00a0mw0lc1v7q3mf","venueMarketOutcomeId":"cmf3q8z3p00a6mw0l9e4h2sxa","chain":"8453","avgPrice":0.535,"yesPrice":0.535,"noPrice":0.475,"fills":[{"price":0.535,"size":18,"fill":18}],"venueQty":18,"venueFee":0.05}],"totalFilled":48,"rawExecCost":24.93,"solveTimeMs":42,"verifyTimeMs":6,"matchedMarkets":[{"venue":"polymarket","venueMarketId":"cmf3q8z0a009zmw0l3w8n6jbd"},{"venue":"limitless","venueMarketId":"cmf3q8z0x00a0mw0lc1v7q3mf"}],"allocations":[{"sourceChainId":"137","venue":"polymarket","amount":15.3},{"sourceChainId":"8453","venue":"limitless","amount":9.68}],"bridgeSteps":[],"feeBreakdown":{"rawExecCost":24.93,"venueFees":0.05,"bridgeFees":0,"executionGas":0.02,"totalCost":25},"appFee":null,"referral":null,"slippage":{"vwap":0.5194,"refMidpoint":0.515,"slippage":0.0044,"slippageBps":85},"warnings":[],"estimatedPayout":48,"totalCostIncFees":25,"estimatedProfit":23,"returnPct":92},"examples":{"Example":{"title":"Example","value":{"quoteId":"k2r8v5n1x7c4m9t3b6q0w2za","venueMarketOutcomeId":"cmf3q8z1k00a2mw0l7xg4v9rt","venueMarketId":"cmf3q8yzt009xmw0lh2c5d8kn","estimatedCostRaw":"25000000","expiresAt":"2026-09-29T15:04:30.000Z","refreshAt":"2026-09-29T15:04:20.000Z","status":"ok","fills":[{"venue":"polymarket","venueMarketId":"cmf3q8z0a009zmw0l3w8n6jbd","venueMarketOutcomeId":"cmf3q8z2m00a4mw0lr5t1k7yc","chain":"137","avgPrice":0.51,"yesPrice":0.51,"noPrice":0.5,"fills":[{"price":0.51,"size":30,"fill":30}],"venueQty":30,"venueFee":0},{"venue":"limitless","venueMarketId":"cmf3q8z0x00a0mw0lc1v7q3mf","venueMarketOutcomeId":"cmf3q8z3p00a6mw0l9e4h2sxa","chain":"8453","avgPrice":0.535,"yesPrice":0.535,"noPrice":0.475,"fills":[{"price":0.535,"size":18,"fill":18}],"venueQty":18,"venueFee":0.05}],"totalFilled":48,"rawExecCost":24.93,"solveTimeMs":42,"verifyTimeMs":6,"matchedMarkets":[{"venue":"polymarket","venueMarketId":"cmf3q8z0a009zmw0l3w8n6jbd"},{"venue":"limitless","venueMarketId":"cmf3q8z0x00a0mw0lc1v7q3mf"}],"allocations":[{"sourceChainId":"137","venue":"polymarket","amount":15.3},{"sourceChainId":"8453","venue":"limitless","amount":9.68}],"bridgeSteps":[],"feeBreakdown":{"rawExecCost":24.93,"venueFees":0.05,"bridgeFees":0,"executionGas":0.02,"totalCost":25},"appFee":null,"referral":null,"slippage":{"vwap":0.5194,"refMidpoint":0.515,"slippage":0.0044,"slippageBps":85},"warnings":[],"estimatedPayout":48,"totalCostIncFees":25,"estimatedProfit":23,"returnPct":92}}},"exampleType":"examples"}},"exampleType":"examples"},"690c8d0a-db51-4bdf-8c44-bd852000ea51":{"description":"400","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["quote_not_found","quote_expired","quote_already_executed","quote_cancelled","quote_user_mismatch","quote_app_blocked","quote_unfillable","quote_min_order_size","quote_stale_status","quote_stale_price","quote_insufficient_balance","quote_market_inactive","quote_self_custody_unsupported_venue","quote_self_custody_app_fee","quote_self_custody_redeem_unsupported","quote_self_custody_limitless_foreign_profile","quote_self_custody_limitless_smart_wallet","quote_self_custody_tiprun_ambiguous_account","venue_not_executable","outcome_ambiguous","paper_mode_unsupported"],"uniqueKey":"code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"quote_not_found"}}},"exampleType":"generated"}},"exampleType":"generated"},"fd8a1c68-128e-481c-b4b5-1d91cdd408e0":{"description":"401","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"cc52df2a-4087-423d-988f-87d49c06e0ea":{"description":"403","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"07939c60-db36-4898-bb51-90a3d5bcd9bd":{"description":"404","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"7191dbf9-8424-4f90-af44-186bd71d4064":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"},"statusCode":{"type":"number","enum":[429],"uniqueKey":"oneOf.0.statusCode","typeLabel":"enum\u003cnumber>"},"code":{"type":"string","enum":["rate_limited"],"uniqueKey":"oneOf.0.code","typeLabel":"enum\u003cstring>"},"retryAfter":{"minimum":1,"description":"Retry delay in seconds.","type":"integer","uniqueKey":"oneOf.0.retryAfter","typeLabel":"integer"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["message","statusCode","code","venue","retryAfter"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"statusCode":{"type":"number","enum":[429],"isRequired":true,"uniqueKey":"oneOf.1.statusCode","typeLabel":"enum\u003cnumber>"},"code":{"type":"string","enum":["venue_rate_limited"],"isRequired":true,"uniqueKey":"oneOf.1.code","typeLabel":"enum\u003cstring>"},"venue":{"type":"string","enum":["prophetx"],"isRequired":true,"uniqueKey":"oneOf.1.venue","typeLabel":"enum\u003cstring>"},"retryAfter":{"minimum":1,"maximum":60,"description":"Retry delay in seconds.","type":"integer","isRequired":true,"uniqueKey":"oneOf.1.retryAfter","typeLabel":"integer"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","statusCode":429,"code":"rate_limited","retryAfter":2}}},"exampleType":"generated"}},"exampleType":"generated"},"75d98cb4-bd2a-4f77-9970-0fff48e5d576":{"description":"503","content":{"application/json":{"schema":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","enum":["orderbook_service_unavailable"],"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"retryable","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"orderbook_service_unavailable","message":"\u003cstring>","retryable":true}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"185e1bd5-d9ee-4943-b56b-0ac1967a1eb3":{"appId":{"type":"apiKey","in":"header","name":"x-app-id","description":"Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.","scopes":[],"schemeName":"appId"}},"ccce881e-3931-46ed-be61-fd102e2d1a70":{"appId":{"type":"apiKey","in":"header","name":"x-app-id","description":"Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.","scopes":[],"schemeName":"appId"},"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT access token from POST /auth/verify. Required with x-app-id on user routes. On the smart-route quote it is optional and turns a preview into an executable quote.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"3915078d-e73f-42da-9155-945be58f38f6":{"url":"https://api.agg.market","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-app-id","description":"Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.","scopes":[],"schemeName":"appId"},"schema":{"title":"x-app-id","type":"string","description":"Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"appId","name":"x-app-id"}],"title":"appId"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-app-id","description":"Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.","scopes":[],"schemeName":"appId"},"schema":{"title":"x-app-id","type":"string","description":"Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"appId","name":"x-app-id"},{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT access token from POST /auth/verify. Required with x-app-id on user routes. On the smart-route quote it is optional and turns a preview into an executable quote.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"JWT access token from POST /auth/verify. Required with x-app-id on user routes. On the smart-route quote it is optional and turns a preview into an executable quote.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"appId \u0026 bearerAuth"}]},"originalFileLocation":"openapi/openapi.json"},"subdomain":"agg","siteName":"Agg.market — Prediction Market Aggregator","title":"Get a quote (smart route) - Agg.market — Prediction Market Aggregator","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T18:31:38.669Z","originalFileLocation":"api-reference/trading/get-a-quote-smart-route.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user\u0026#x27;s wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get a quote (smart route) - Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head property=\"og:description\" content=\"Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user\u0026#x27;s wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agg.mintlify.site/_mintlify/api/og/v2?division=Trading\u0026amp;title=Get+a+quote+%28smart+route%29\u0026amp;description=Computes+a+fill+quote+across+available+venues+for+a+specific+venue+market+outcome+and+returns+the+suggested+fills.+When+a+user+JWT+is+supplied+the+quote+is+scop\u0026amp;theme=e3d91c6fb16e65bc3c49f43b\u0026amp;signature=fd9f52dd4003bce83e740b2f23846126f44983eb54fc248cfaee924455a4ee27\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get a quote (smart route) - Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user\u0026#x27;s wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agg.mintlify.site/_mintlify/api/og/v2?division=Trading\u0026amp;title=Get+a+quote+%28smart+route%29\u0026amp;description=Computes+a+fill+quote+across+available+venues+for+a+specific+venue+market+outcome+and+returns+the+suggested+fills.+When+a+user+JWT+is+supplied+the+quote+is+scop\u0026amp;theme=e3d91c6fb16e65bc3c49f43b\u0026amp;signature=fd9f52dd4003bce83e740b2f23846126f44983eb54fc248cfaee924455a4ee27\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ED8200\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/trading/get-a-quote-smart-route.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agg.market/#organization\",\"name\":\"Agg.market — Prediction Market Aggregator\",\"url\":\"https://docs.agg.market\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agg/SLxnoWBYT8Zyhg9W/assets/agg-dark.svg?fit=max\u0026auto=format\u0026n=SLxnoWBYT8Zyhg9W\u0026q=85\u0026s=f1b6e05f3e2529bc2c7698267234f5d1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agg.market#website\",\"name\":\"Agg.market — Prediction Market Aggregator\",\"url\":\"https://docs.agg.market\",\"publisher\":{\"@id\":\"https://docs.agg.market/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route#webpage\",\"url\":\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route\",\"name\":\"Get a quote (smart route)\",\"description\":\"Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user's wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.\",\"dateModified\":\"2026-11-19T18:31:38.669Z\",\"isPartOf\":{\"@id\":\"https://docs.agg.market#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agg.market — Prediction Market Aggregator\",\"item\":\"https://docs.agg.market\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get a quote (smart route)\",\"item\":\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route#apireference\",\"headline\":\"Get a quote (smart route)\",\"name\":\"Get a quote (smart route)\",\"description\":\"Computes a fill quote across available venues for a specific venue market outcome and returns the suggested fills. When a user JWT is supplied the quote is scoped to the user's wallet balances and may be executed; without a JWT the response is a preview-only quote. Anonymous ProphetX preview prices come from the Clearinghouse without a synchronous account-readiness check. Account identity and readiness are checked before a live fill is admitted for execution, before funding or execution is queued. ProphetX quotes apply no execution reserve, settlement surcharge, or speculative venue commission. ProphetX live buys use fixed-input FOK execution and a maximum $500 per-order input cap.\",\"url\":\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route#webpage\"},\"dateModified\":\"2026-11-19T18:31:38.669Z\",\"publisher\":{\"@id\":\"https://docs.agg.market/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agg.market#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agg.market — Prediction Market Aggregator\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Agg.market — Prediction Market Aggregator\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/trading/get-a-quote-smart-route.md","siteName":"Agg.market — Prediction Market Aggregator","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/reference"}]},{"tab":"Trading API","groups":[{"group":"Authentication","pages":[{"title":"Start authentication","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/start","href":"/api-reference/authentication/start-authentication"},{"title":"Verify sign-in","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/verify","href":"/api-reference/authentication/verify-sign-in"},{"title":"Complete redirect sign-in","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/token/exchange","href":"/api-reference/authentication/complete-redirect-sign-in"},{"title":"Refresh access token","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/token/refresh","href":"/api-reference/authentication/refresh-access-token"},{"title":"Sign out","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/sign-out","href":"/api-reference/authentication/sign-out"},{"title":"Fetch Turnstile site key","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /bot-protection/site-key","href":"/api-reference/authentication/fetch-turnstile-site-key"},{"title":"Verify Turnstile token","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /bot-protection/verify","href":"/api-reference/authentication/verify-turnstile-token"}]},{"group":"Markets","pages":[{"title":"Get the first useful event view","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-events/{id}/bootstrap","href":"/api-reference/markets/get-the-first-useful-event-view"},{"title":"Search events or markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /search","href":"/api-reference/markets/search-events-or-markets"},{"title":"List catalog changes","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /catalog/changes","href":"/api-reference/markets/list-catalog-changes"},{"title":"List venue events","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-events","href":"/api-reference/markets/list-venue-events"},{"title":"Get Venue Event","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-events/{id}","href":"/api-reference/markets/get-venue-event"},{"title":"List venue markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-markets","href":"/api-reference/markets/list-venue-markets"},{"title":"Look up venue market outcomes by external identifier","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-market-outcomes","href":"/api-reference/markets/look-up-venue-market-outcomes-by-external-identifier"},{"title":"List categories","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /categories","href":"/api-reference/markets/list-categories"},{"title":"Get the per-app UI config (disabled venues + categories)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /app/config","href":"/api-reference/markets/get-the-per-app-ui-config-disabled-venues-+-categories"},{"title":"List recurring crypto window markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /crypto/recurring-markets","href":"/api-reference/markets/list-recurring-crypto-window-markets"}]},{"group":"Market Data","pages":[{"title":"Get bounded outcome snapshots","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbooks/outcomes","href":"/api-reference/market-data/get-bounded-outcome-snapshots"},{"title":"Get live orderbooks for multiple markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbooks","href":"/api-reference/market-data/get-live-orderbooks-for-multiple-markets"},{"title":"Get live orderbook for a single outcome","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbook/outcome/{outcomeId}","href":"/api-reference/market-data/get-live-orderbook-for-a-single-outcome"},{"title":"Get live midpoints for multiple markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /midpoints","href":"/api-reference/market-data/get-live-midpoints-for-multiple-markets"},{"title":"Get versioned chart history references","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /charts/history/manifest","href":"/api-reference/market-data/get-versioned-chart-history-references"},{"title":"Get chart bars","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /charts/bars","href":"/api-reference/market-data/get-chart-bars"},{"title":"Get live crypto reference prices","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /crypto/reference-prices","href":"/api-reference/market-data/get-live-crypto-reference-prices"},{"title":"Get live sports scores","description":"Returns normalized live score state for supported sports events. Event IDs are resolved through AGG's matched-event relationship to the Polymarket event used by the score provider. Unmatched, unsupported, and provider-unavailable events are listed in missingEventIds.","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /sports/live","href":"/api-reference/market-data/get-live-sports-scores"}]},{"group":"Trading","pages":[{"title":"Get a quote (smart route)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbook/{venueMarketOutcomeId}/route","href":"/api-reference/trading/get-a-quote-smart-route"},{"title":"Execute quote","description":"Accepts a previously quoted smart-route quote and returns pending order IDs for the submitted fill execution.","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/fill","href":"/api-reference/trading/execute-quote"},{"title":"Submit signatures for a pending self-custody fill","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/fill/{quoteId}/signatures","href":"/api-reference/trading/submit-signatures-for-a-pending-self-custody-fill"},{"title":"Get execution status","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/status","href":"/api-reference/trading/get-execution-status"},{"title":"Place an order directly","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/orders","href":"/api-reference/trading/place-an-order-directly"},{"title":"Place limit order","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/limit-orders","href":"/api-reference/trading/place-limit-order"},{"title":"Cancel an order","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/orders/cancel","href":"/api-reference/trading/cancel-an-order"},{"title":"Redeem winnings for resolved positions","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/redeem","href":"/api-reference/trading/redeem-winnings-for-resolved-positions"},{"title":"Get the per-venue blocked-country lists (ISO 3166-1 alpha-2)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /app/venue-geo-policy","href":"/api-reference/trading/get-the-per-venue-blocked-country-lists-iso-3166-1-alpha-2"}]},{"group":"Portfolio","pages":[{"title":"Get user orders","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/orders","href":"/api-reference/portfolio/get-user-orders"},{"title":"Get balances","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/balances","href":"/api-reference/portfolio/get-balances"},{"title":"Get user positions","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/positions","href":"/api-reference/portfolio/get-user-positions"},{"title":"Get user activity feed","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/activity","href":"/api-reference/portfolio/get-user-activity-feed"},{"title":"Trader leaderboard","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /leaderboard","href":"/api-reference/portfolio/trader-leaderboard"},{"title":"Trader leaderboard series","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /leaderboard/series","href":"/api-reference/portfolio/trader-leaderboard-series"}]},{"group":"Funding","pages":[{"title":"Get deposit addresses","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/deposit-addresses","href":"/api-reference/funding/get-deposit-addresses"},{"title":"Quote withdrawable amount","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/withdrawable/quote","href":"/api-reference/funding/quote-withdrawable-amount"},{"title":"Preview a withdrawal","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/withdraw/preview","href":"/api-reference/funding/preview-a-withdrawal"},{"title":"Withdraw funds","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/withdraw","href":"/api-reference/funding/withdraw-funds"},{"title":"Get withdrawal status","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/withdrawals/{withdrawalId}","href":"/api-reference/funding/get-withdrawal-status"},{"title":"List managed balance refill policies","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/balance-refill-policies","href":"/api-reference/funding/list-managed-balance-refill-policies"},{"title":"Create a managed balance refill policy","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/balance-refill-policies","href":"/api-reference/funding/create-a-managed-balance-refill-policy"},{"title":"Update or pause a managed balance refill policy","deprecated":null,"version":null,"openapi":"/openapi/openapi.json patch /execution/balance-refill-policies/{policyId}","href":"/api-reference/funding/update-or-pause-a-managed-balance-refill-policy"},{"title":"List recent managed balance refill attempts","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/balance-refill-policies/{policyId}/attempts","href":"/api-reference/funding/list-recent-managed-balance-refill-attempts"},{"title":"Get crypto purchase quotes","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /ramp/quotes","href":"/api-reference/funding/get-crypto-purchase-quotes"},{"title":"Create a ramp widget session for checkout","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /ramp/session","href":"/api-reference/funding/create-a-ramp-widget-session-for-checkout"},{"title":"Submit signatures for a pending self-custody withdrawal","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/withdrawals/{withdrawalId}/signatures","href":"/api-reference/funding/submit-signatures-for-a-pending-self-custody-withdrawal"}]},{"group":"Users","pages":[{"title":"Get current user","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me","href":"/api-reference/users/get-current-user"},{"title":"Update username","deprecated":null,"version":null,"openapi":"/openapi/openapi.json patch /users/me","href":"/api-reference/users/update-username"},{"title":"Link partner external user ID (HMAC-verified)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/external-id","href":"/api-reference/users/link-partner-external-user-id-hmac-verified"},{"title":"Get avatar upload URL","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/avatar","href":"/api-reference/users/get-avatar-upload-url"},{"title":"Disconnect auth provider","deprecated":null,"version":null,"openapi":"/openapi/openapi.json delete /users/me/accounts/{provider}","href":"/api-reference/users/disconnect-auth-provider"},{"title":"Start account linking","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/link-account/start","href":"/api-reference/users/start-account-linking"},{"title":"Confirm account linking","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/link-account/confirm","href":"/api-reference/users/confirm-account-linking"},{"title":"Get shared KYC status","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /kyc/status","href":"/api-reference/users/get-shared-kyc-status"},{"title":"Initiate KYC","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /kyc/{venue}","href":"/api-reference/users/initiate-kyc"},{"title":"Upsert a venue API key","deprecated":null,"version":null,"openapi":"/openapi/openapi.json put /venue-keys","href":"/api-reference/users/upsert-a-venue-api-key"},{"title":"List venue keys","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-keys","href":"/api-reference/users/list-venue-keys"},{"title":"Delete a venue key","deprecated":null,"version":null,"openapi":"/openapi/openapi.json delete /venue-keys/{venue}","href":"/api-reference/users/delete-a-venue-key"},{"title":"Get venue key connection status","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-keys/{venue}/status","href":"/api-reference/users/get-venue-key-connection-status"}]},{"group":"Hosted Venue Accounts","pages":[{"title":"Get hosted venue deposit address","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me/venue-accounts/{venue}/deposit-address","href":"/api-reference/hosted-venue-accounts/get-hosted-venue-deposit-address"},{"title":"Withdraw hosted venue funds","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/venue-accounts/{venue}/withdrawals","href":"/api-reference/hosted-venue-accounts/withdraw-hosted-venue-funds"},{"title":"Get hosted venue withdrawal","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me/venue-accounts/{venue}/withdrawals/{withdrawalId}","href":"/api-reference/hosted-venue-accounts/get-hosted-venue-withdrawal"},{"title":"Get hosted venue account activity","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me/venue-accounts/{venue}/activity","href":"/api-reference/hosted-venue-accounts/get-hosted-venue-account-activity"},{"title":"Get hosted venue account","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me/venue-accounts/{venue}","href":"/api-reference/hosted-venue-accounts/get-hosted-venue-account"},{"title":"Provision hosted venue account","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/venue-accounts/{venue}","href":"/api-reference/hosted-venue-accounts/provision-hosted-venue-account"}]},{"group":"News","pages":[{"title":"Get news articles for markets with market impact summaries","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /news-feed/market-news","href":"/api-reference/news/get-news-articles-for-markets-with-market-impact-summaries"},{"title":"Article-centric news feed for a category - latest articles with linked markets and live prices","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /news-feed/{category}","href":"/api-reference/news/article-centric-news-feed-for-a-category--latest-articles-with-linked-markets-and-live-prices"},{"title":"Market-centric news feed - markets grouped with their news timeline","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /news-feed/{category}/markets","href":"/api-reference/news/market-centric-news-feed--markets-grouped-with-their-news-timeline"},{"title":"List available news feeds with IDs and item counts","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /news-feed","href":"/api-reference/news/list-available-news-feeds-with-ids-and-item-counts"}]},{"group":"Correlated Markets","pages":[{"title":"Get correlated market signals for a market","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /correlated-markets/{venueMarketId}","href":"/api-reference/correlated-markets/get-correlated-market-signals-for-a-market"},{"title":"Find correlated markets by semantic similarity","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /correlated-markets/query","href":"/api-reference/correlated-markets/find-correlated-markets-by-semantic-similarity"},{"title":"Find events connected via shared market signals","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /correlated-markets/connections/{venueMarketId}","href":"/api-reference/correlated-markets/find-events-connected-via-shared-market-signals"},{"title":"Get ripple effect of a market resolving (by market ID)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /correlated-markets/cascade/{venueMarketId}","href":"/api-reference/correlated-markets/get-ripple-effect-of-a-market-resolving-by-market-id"},{"title":"Resolve a market by venue ID, slug, or text and return cascade","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /correlated-markets/resolve","href":"/api-reference/correlated-markets/resolve-a-market-by-venue-id-slug-or-text-and-return-cascade"}]}]},{"tab":"Server API","pages":[{"title":"Server API","href":"/api-reference/webhooks/rotate-webhook-signing-secret"}]},{"tab":"WebSocket API","pages":[{"title":"WebSocket API","href":"/api-reference/websockets/orderbook"}]}]},"basePath":"","title":"Get a quote (smart route) - Agg.market — Prediction Market Aggregator","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-BOAJk9BH.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CiUHMMOm.js","snippetPresets-BgfXU7Bw.js","utils-DWvOwgy_.js","style-to-object-BY3JEAdk.js","utils-BN7RXSMJ.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CFw8bq89.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","ApiExamples-XX0UgMZK.js","usePlaygroundInputsStore-DXDFSa1V.js","shallow-CdX5aREi.js","isEqual-CoOaxexF.js","CodeSnippets-Cg2wpzWm.js","CodeSnippet-D_HwgQO_.js","getApiPlaygroundDisplay-CmCoerhe.js","Page-CVJ-f_k1.js","DynamicMarkdown-CQM9Bhbv.js","SectionHeading-DpbrP8nQ.js","icon-BPCgijHy.js","MethodPill-GQ8DuY0c.js","getPastedJson-Cb5mT31m.js","Check2Icon-a7bUI6e8.js","axios-CsQoIw0U.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js"]}