7579ec027be7
Get buy quote
Returns a real-time buy quote for a currency pair. Supply quoteCurrencyCode, baseCurrencyCode, and quoteCurrencyAmount (fiat amount) to get a detailed buy quote including fees and the amount of crypto the user will receive.
Query parameters
The fiat currency to buy with.
The crypto currency to buy.
The fiat amount the customer wants to spend. Must be a positive decimal with precision no higher than the currency precision.
Payment method to be used for the order.
Payment method to be used for the order. If omitted, the quote will not factor in payment method fees.
ISO 3166-1 alpha-2 country code, e.g. US.
US state code, e.g. AL. Ignored if countryCode is not US.
The wallet address where the user wants to receive the crypto.
Response
Buy quote with price, fees, and resulting crypto amount.
Example response
{
"quoteCurrencyAmount": "63.00",
"quoteCurrencyCode": "USD",
"quoteCurrency": {
"type": "FIAT",
"name": "US Dollar",
"code": "USD",
"precision": 2,
"minBuyAmount": "20.00",
"maxBuyAmount": "1200.00",
"network": "BTC",
"allowedUSStates": [
"AL",
"CT"
]
},
"baseCurrencyAmount": "0.001",
"baseCurrencyCode": "BTC",
"baseCurrency": {
"type": "FIAT",
"name": "US Dollar",
"code": "USD",
"precision": 2,
"minBuyAmount": "20.00",
"maxBuyAmount": "1200.00",
"network": "BTC",
"allowedUSStates": [
"AL",
"CT"
]
},
"price": "62451.29",
"processingFeeAmount": "1.00",
"partnerFeeAmount": "1.00",
"networkFeeAmount": "1.00",
"totalAmount": "0.0009",
"paymentMethod": "CARD"
}