curl --request GET \
--url 'https://api.moonpay.com/v3/currencies/{currencyCode}/buy_quote?apiKey='{
"accountId": "717a8a80-5c17-46f9-84f8-a5253c372f51",
"baseCurrency": {
"id": "6f424585-8936-4eb1-b01e-443fb306d1f5",
"createdAt": "2019-05-17T18:24:45.206Z",
"updatedAt": "2019-05-17T18:24:45.206Z",
"type": "fiat",
"name": "Pound Sterling",
"code": "gbp",
"precision": 2,
"minBuyAmount": 30,
"maxBuyAmount": 9000,
"isSellSupported": true
},
"baseCurrencyCode": "usd",
"baseCurrencyAmount": 288.37,
"quoteCurrency": {
"id": "aaefa32f-161b-42c8-8115-debcbf3d6a2d",
"createdAt": "2019-05-17T18:24:45.206Z",
"updatedAt": "2019-05-17T18:24:45.206Z",
"type": "crypto",
"name": "USD Coin (ERC-20)",
"code": "usdc",
"precision": 2,
"minBuyAmount": 30,
"maxBuyAmount": 1000,
"minSellAmount": 15,
"maxSellAmount": 100000,
"addressRegex": "^(0x)[0-9A-Fa-f]{40}$",
"testnetAddressRegex": "^(0x)[0-9A-Fa-f]{40}$",
"supportsAddressTag": false,
"addressTagRegex": null,
"supportsTestMode": true,
"isSuspended": false,
"isSupportedInUs": true,
"isSellSupported": true,
"notAllowedUSStates": [
"LA",
"VI"
],
"notAllowedCountries": [
"CA"
],
"metadata": {
"contractAddress": 0,
"chainId": "1",
"networkCode": "ethereum"
}
},
"quoteCurrencyCode": "btc",
"quoteCurrencyAmount": 0.0055,
"quoteCurrencyPrice": 52474.5036,
"paymentMethod": "credit_debit_card",
"feeAmount": 3.99,
"extraFeePercentage": 0,
"extraFeeAmount": 0,
"networkFeeAmount": 7.64,
"networkFeeAmountNonRefundable": false,
"totalAmount": 300,
"externalId": null,
"externalCustomerId": null,
"signature": "really-long-string",
"expiresIn": 1800,
"expiresAt": "2024-02-23T00:58:26.577Z"
}Get detailed real-time quote based on the provided currency code, base amount, your extra fee percentage, payment method, and the inclusion of the fees.
curl --request GET \
--url 'https://api.moonpay.com/v3/currencies/{currencyCode}/buy_quote?apiKey='{
"accountId": "717a8a80-5c17-46f9-84f8-a5253c372f51",
"baseCurrency": {
"id": "6f424585-8936-4eb1-b01e-443fb306d1f5",
"createdAt": "2019-05-17T18:24:45.206Z",
"updatedAt": "2019-05-17T18:24:45.206Z",
"type": "fiat",
"name": "Pound Sterling",
"code": "gbp",
"precision": 2,
"minBuyAmount": 30,
"maxBuyAmount": 9000,
"isSellSupported": true
},
"baseCurrencyCode": "usd",
"baseCurrencyAmount": 288.37,
"quoteCurrency": {
"id": "aaefa32f-161b-42c8-8115-debcbf3d6a2d",
"createdAt": "2019-05-17T18:24:45.206Z",
"updatedAt": "2019-05-17T18:24:45.206Z",
"type": "crypto",
"name": "USD Coin (ERC-20)",
"code": "usdc",
"precision": 2,
"minBuyAmount": 30,
"maxBuyAmount": 1000,
"minSellAmount": 15,
"maxSellAmount": 100000,
"addressRegex": "^(0x)[0-9A-Fa-f]{40}$",
"testnetAddressRegex": "^(0x)[0-9A-Fa-f]{40}$",
"supportsAddressTag": false,
"addressTagRegex": null,
"supportsTestMode": true,
"isSuspended": false,
"isSupportedInUs": true,
"isSellSupported": true,
"notAllowedUSStates": [
"LA",
"VI"
],
"notAllowedCountries": [
"CA"
],
"metadata": {
"contractAddress": 0,
"chainId": "1",
"networkCode": "ethereum"
}
},
"quoteCurrencyCode": "btc",
"quoteCurrencyAmount": 0.0055,
"quoteCurrencyPrice": 52474.5036,
"paymentMethod": "credit_debit_card",
"feeAmount": 3.99,
"extraFeePercentage": 0,
"extraFeeAmount": 0,
"networkFeeAmount": 7.64,
"networkFeeAmountNonRefundable": false,
"totalAmount": 300,
"externalId": null,
"externalCustomerId": null,
"signature": "really-long-string",
"expiresIn": 1800,
"expiresAt": "2024-02-23T00:58:26.577Z"
}Documentation Index
Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt
Use this file to discover all available pages before exploring further.
The code of the cryptocurrency of interest from the currencies list with type=crypto
Show child attributes
Successful response — Buy Quote
ID of your business account
"717a8a80-5c17-46f9-84f8-a5253c372f51"
The fiat currency the customer wants to use for the transaction.
Show child attributes
"usd"
A positive number representing how much the customer wants to spend. The minimum amount is 20.
288.37
The cryptocurrency the customer wants to purchase.
Show child attributes
"btc"
A positive number representing the amount of cryptocurrency the customer will receive. Set when the purchase of cryptocurrency has been executed.
0.0055
The price of the crypto the customer will receive
52474.5036
The transaction's payment method.
ach_bank_transfer, credit_debit_card, paypal, gbp_bank_transfer, gbp_open_banking_payment, pix_instant_payment, sepa_bank_transfer "credit_debit_card"
A positive number representing the fee for the transaction.
3.99
0
0
A positive number representing the network fee for the transaction. It is added to baseCurrencyAmount, feeAmount and extraFeeAmount when the customer's card is charged.
7.64
false
300
null
null
The signature for executing the quote for fixed flow
"really-long-string"
The time in seconds until the quote expires.
1800
Time at which the quote expires. Returned as an ISO 8601 string.
"2024-02-23T00:58:26.577Z"