Skip to main content
POST
This endpoint is currently available in Sandbox only. It is not yet available in Production.
The estimate is for a quantity of the base asset, priced in the quote asset, and it is nonbinding: it does not create an order, reserve funds or guarantee that an order will trade at that price. The response has only the price and the snapshotAt time of the order book snapshot it was calculated from. If the order book cannot cover the quantity, the request fails with the depth that is available, so you can retry with a smaller quantity. If the pair cannot be traded, the request fails with asset_pair_not_supported. Read more about price estimates.

Authorizations

Authorization
string
header
required

OAuth 2.0

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.