curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/trading/prices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base": "BTC",
"quote": "USD",
"side": "sell",
"quantity": "0.5"
}
'{
"price": "61919.14",
"snapshotAt": "2026-10-12T10:31:04.218Z"
}Prices
Estimate price
Estimate the volume-weighted price to buy or sell a quantity of an asset. The estimate is nonbinding and does not create an order or reserve funds.
POST
/
trading
/
prices
curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/trading/prices \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base": "BTC",
"quote": "USD",
"side": "sell",
"quantity": "0.5"
}
'{
"price": "61919.14",
"snapshotAt": "2026-10-12T10:31:04.218Z"
}This endpoint is currently available in Sandbox only. It is not yet available in Production.
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
OAuth 2.0
Body
application/json
The base asset, the one bought or sold.
Minimum string length:
1The quote asset, the one the price is expressed in.
Minimum string length:
1Whether the base asset is bought or sold.
Available options:
buy, sell The quantity of the base asset to estimate the price of.
Pattern:
^(?!0+(\.0+)?$)\d+(\.\d+)?$Response
Price estimated.
Was this page helpful?