---
title: "Fee-inclusive quote"
method: GET
path: "/api/v1/quote"
tags: ["markets"]
---

# Fee-inclusive quote

`GET /api/v1/quote`

## Request

- Base URL: `https://predict.dex.mk`
- URL: `https://predict.dex.mk/api/v1/quote`
- Auth: none declared

Preview an order against the live book without placing it. Market BUY `amount` is USD to spend all-in (fees included); market SELL and limit `amount` are shares. Returns average and worst price, shares, cost, payout if the outcome wins, Polymarket fee, predictDEX fee and warnings.

## Query parameters

- `tokenId` string, required
- `side` 'BUY' | 'SELL'
- `amount` number, required
- `type` 'market' | 'limit'
- `price` number
- `slippage` number
- `orderType` 'FAK' | 'FOK' | 'GTC' | 'GTD'
- `expiration` integer
- `postOnly` boolean

## Response `200`

Quote

- object

## Other responses

- `400`: Invalid or missing parameter; body {error, message}
- `429`: Too many requests; honour Retry-After
- `502`: Polymarket did not answer in time; retry shortly

---

[API](https://skmtc.dev/dex/apis/predictdex-api.md) · [All operations](https://skmtc.dev/dex/apis/predictdex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dex/apis/predictdex-api/revisions/34386b074c69?raw)
