Skip to main content
The Fetching Buy Quote API enables merchants to retrieve the buy price for specific crypto assets in real time. This is essential for providing accurate quotes to users during the onramp process. Merchants can use this API to get the buy price for the required crypto assets in exchange for supported fiat currencies on the required blockchain network.

Functionality Overview

The API calculates the price based on:
  1. The fiat currency (from_currency).
  2. The crypto token to be purchased (to_currency).
  3. The blockchain network (network).
  4. Either the fiat amount to be converted (from_amount) or the crypto amount required (to_amount).
This flexibility ensures real-time, accurate pricing tailored to merchant and user needs.

Sample Request

Here’s an example API request. Sample request:
Sample response:
Note: For payment methods that incur a banking/partner fee, the fee_breakup object may also include an additional banking_fee key (a number). It is omitted from the response when zero.

Required Parameters

Additional Notes

  • Preferred Network: While all major networks are supported, Matic is recommended due to lower costs.
  • Mandatory Parameters: Ensure all required parameters are included to avoid errors.
For more details on the quote, refer to the Fetch Buy Quote API Reference here.