---
title: "Estimated Buy Amount"
method: GET
path: "/api/v1/markets/{market}/estimated-buy-amount/{sell amount in quote}"
---

# Estimated Buy Amount

`GET /api/v1/markets/{market}/estimated-buy-amount/{sell amount in quote}`

## Request

- Base URL: `https://price-estimate-mainnet.dev.gnosisdev.com`
- URL: `https://price-estimate-mainnet.dev.gnosisdev.com/api/v1/markets/{market}/estimated-buy-amount/{sell amount in quote}`
- Auth: none declared

Estimate the buy amount (in buy tokens) a user can set as a limit order while still expecting to be completely matched when selling the given amount of quote token.

## Path parameters

- `market` string, required
- `sell amount in quote` number, required

## Query parameters

- `unit` 'baseunits' | 'atoms'
- `batchId` integer
- `ignoreAddresses` string
- `blockNumber` integer
- `roundingBuffer` 'enabled' | 'disabled'

## Response `200`

OK

- AmountResponse
  - `baseTokenId` integer
  - `quoteTokenId` integer
  - `buyAmountInBase` string
  - `sellAmountInQuote` string

## Changes

- **2026-07-17** `b640b4fe9702`: 1 info
  - added the new optional `query` request parameter `roundingBuffer`
- **2020-08-27** `6f0c17ef5641`: 1 info
  - added the new optional `query` request parameter `blockNumber`
- **2020-08-24** `677295578357`: 1 info
  - added the new optional `query` request parameter `ignoreAddresses`
- **2020-08-13** `b56a1a4f4b18`: 3 warning
  - deleted the `query` request parameter `blockNumber`
  - deleted the `query` request parameter `ignoreAddresses`
  - deleted the `query` request parameter `roundingBuffer`

[Operation history](https://skmtc.dev/gnosis/apis/price-estimator-openapi/changes/api/v1/markets/:market/estimated-buy-amount/:sell%20amount%20in%20quote/get.md)

---

[API](https://skmtc.dev/gnosis/apis/price-estimator-openapi.md) - [All operations](https://skmtc.dev/gnosis/apis/price-estimator-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/gnosis/apis/price-estimator-openapi/revisions/b640b4fe9702?raw)
