Called to get a price quote for a buy transaction
Returns a price quote for a transaction with requested values
Query parameters
-
The region of the user. countryid or country+state id
-
The payment method to be used
-
The crypto currency that user wants to buy. ID defined in configuration
-
The fiat currency that user wants to use to buy crypto. ID defined in configuration
-
The amount of fiat currency that user wants to use to buy crypto
-
An ID identifying StablyRamp and associating subsequent order with it
GET /quote
curl \
-X GET https://ramp-api.dev.stably.io/public/api/v1/quote?region=string&payment=string&crypto=string&fiat=string&amount=string&partnerAccountId=string
Response examples (200)
{
"processingFee": "quoteId",
"networkFee": "orderId",
"amountOut": "100"
}
Response examples (400)
{
"error": "string",
"code": 42,
"message": "string"
}
Response examples (500)
{
"error": "string",
"code": 42,
"message": "string"
}