Called to get a price quote for a buy transaction

GET /quote

Returns a price quote for a transaction with requested values

Query parameters

  • region string Required

    The region of the user. countryid or country+state id

  • payment string Required

    The payment method to be used

  • crypto string Required

    The crypto currency that user wants to buy. ID defined in configuration

  • fiat string Required

    The fiat currency that user wants to use to buy crypto. ID defined in configuration

  • amount string Required

    The amount of fiat currency that user wants to use to buy crypto

  • partnerAccountId string Required

    An ID identifying StablyRamp and associating subsequent order with it

Responses

  • 200 application/json

    Successful operation

    Hide response attributes Show response attributes object
  • 400 application/json

    An unexpected error

    Hide response attributes Show response attributes object
    • error string

      A description of the unexpected error.

    • code integer

      The error code associated with the unexpected error.

    • message string

      A detailed error message explaining the issue.

  • 500 application/json

    An unexpected error

    Hide response attributes Show response attributes object
    • error string

      A description of the unexpected error.

    • code integer

      The error code associated with the unexpected error.

    • message string

      A detailed error message explaining the issue.

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"
}