Skip to main content
GET
/
exchange
/
api
/
orders
/
price
Get best price for order
curl --request GET \
  --url https://external.dev.onboardpay.co/exchange/api/orders/price
{
  "price": 123
}
Fetches the best available market price for a trade based on specified parameters. This helps users have a near-accurate estimate before proceeding with a transaction.

Query Parameters

tradeType
enum<string>

Type of trade (maps to transaction type: BUY - ONRAMP, SELL - OFFRAMP)

Available options:
BUY,
SELL
fiat
string
fiatAmount
number
token
string
tokenAmount
number
networkId
string

Onboard blockchain network identifier or chain Id e.g Base will be base or 8453 or 0x2105

paymentChannel
string

Response

Success

Price for a trade

price
number
required

The price at which the order will be traded