---
title: "Get Price For Volume"
method: POST
path: "/market-data/order-book/price-for-volume"
tags: ["Market Data"]
---

# Get Price For Volume

`POST /market-data/order-book/price-for-volume`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/market-data/order-book/price-for-volume`
- Auth: HTTP basic

Get the price required to fill a specific volume on the order book.

Args:
    request: Request with connector, trading pair, volume, and side
    market_data_manager: Injected market data feed manager

Returns:
    Order book query result with price and volume information

## Request body

- PriceForVolumeRequest: Request model for getting price for a specific volume
  - `connector_name` string, required: Name of the connector
  - `trading_pair` string, required: Trading pair
  - `is_buy` boolean, required: True for buy side, False for sell side
  - `volume` number, required: Volume to query price for

## Response `200`

Successful Response

- OrderBookQueryResult: Response for order book query operations
  - `trading_pair` string, required: Trading pair
  - `is_buy` boolean, required: Query side (buy/sell)
  - `query_volume` number, nullable: Queried volume
  - `query_price` number, nullable: Queried price
  - `result_price` number, nullable: Resulting price
  - `result_volume` number, nullable: Resulting volume
  - `result_quote_volume` number, nullable: Resulting quote volume
  - `average_price` number, nullable: Average/VWAP price
  - `timestamp` number, required: Query timestamp

## Other responses

- `422`: Validation Error

## Changes

- **2026-04-08** `92703f48a69e`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-01-18** `cb6b6935c8e2`: 1 warning
  - the `volume` request property's exclusiveMinimum was set to `0.00`
- **2025-12-20** `1005bcd47280`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hummingbot/apis/hummingbot-api/changes/market-data/order-book/price-for-volume/post.md)

---

[API](https://skmtc.dev/hummingbot/apis/hummingbot-api.md) - [All operations](https://skmtc.dev/hummingbot/apis/hummingbot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hummingbot/apis/hummingbot-api/revisions/66c2e6c1da2e?raw)
