Skip to main content
POST
Estimates the price of trading a quantity of an asset. The estimate is for a quantity of the base asset, priced in the quote asset. The estimate is nonbinding. Read more about price estimates.

Authorizations

Authorization
string
header
required

OAuth 2.0

Scopes

trading.prices:read

Grants access to read prices.

Body

application/json
base
string
required

The base asset, the one bought or sold.

Minimum string length: 1
quote
string
required

The quote asset, the one the price is expressed in.

Minimum string length: 1
side
enum<string>
required

Whether the base asset is bought or sold.

Available options:
buy,
sell
quantity
string
required

The quantity of the base asset to estimate the price of.

Pattern: ^(?!0+(\.0+)?$)\d+(\.\d+)?$

Response

Price estimated.

price
string
required

The estimated volume-weighted execution price, in the quote asset per one unit of the base asset.

snapshotAt
string<date-time>
required

The time of the order book snapshot the price was calculated from. It is not the time of the request or of the calculation.