---
agentTools:
  projectIndex: https://docs.quidax.io/llms.txt
---

# Purchase Quotes (SELL)

Retrieves real-time exchange quotes between a fiat currency and a cryptocurrency, including estimated blockchain processing fees.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Ramp Merchant API",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://ramp-be.quidax.io/api/v1/merchants/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "x-private-key",
        "in": "header",
        "x-default": "secret_key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/purchase_quotes/sell?token={token}&currency={currency}&token_amount={token_amount}&token_network={token_network}": {
      "get": {
        "summary": "Purchase Quotes (SELL)",
        "description": "Retrieves real-time exchange quotes between a fiat currency and a cryptocurrency, including estimated blockchain processing fees.",
        "operationId": "purchase-quotes-sell",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "Allowed values: usdt",
            "schema": {
              "type": "string",
              "default": "usdt"
            },
            "required": true
          },
          {
            "name": "currency",
            "in": "path",
            "description": "Fiat currency: ngn",
            "schema": {
              "type": "string",
              "default": "ngn"
            },
            "required": true
          },
          {
            "name": "token_amount",
            "in": "path",
            "schema": {
              "type": "string",
              "default": "10"
            },
            "required": true
          },
          {
            "name": "token_network",
            "in": "path",
            "description": "To fetch available networks: https://docs.quidax.io/docs/supported-crypto-assets",
            "schema": {
              "type": "string",
              "enum": [
                "celo",
                "polygon",
                "erc20",
                "bep20",
                "lsk",
                "solana",
                "base",
                "ton",
                "trc20"
              ],
              "default": "celo"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"status\": \"ok\",\n  \"message\": \"Fiat currency amount retrieved\",\n  \"data\": {\n    \"fee\": \"50.0\",\n    \"to_amount\": \"15947.94\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "message": {
                      "type": "string",
                      "example": "Fiat currency amount retrieved"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "fee": {
                          "type": "string",
                          "example": "50.0"
                        },
                        "to_amount": {
                          "type": "string",
                          "example": "15947.94"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid currency": {
                    "value": "{\n  \"status\": \"bad_request\",\n  \"message\": \"Invalid currency\",\n  \"data\": null\n}"
                  },
                  "Invalid amount": {
                    "value": "{\n  \"status\": \"bad_request\",\n  \"message\": \"Invalid amount\",\n  \"data\": null\n}"
                  },
                  "Invalid network": {
                    "value": "{\n  \"status\": \"bad_request\",\n  \"message\": \"Invalid network\",\n  \"data\": null\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Invalid currency",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "bad_request"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid currency"
                        },
                        "data": {}
                      }
                    },
                    {
                      "title": "Invalid amount",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "bad_request"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid amount"
                        },
                        "data": {}
                      }
                    },
                    {
                      "title": "Invalid network",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "bad_request"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid network"
                        },
                        "data": {}
                      }
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid private key": {
                    "value": "{\n  \"status\": \"forbidden\",\n  \"message\": \"Invalid private key\",\n  \"data\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "forbidden"
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid private key"
                    },
                    "data": {}
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6981ba5faf9470ee082aeecd:6981ba5faf9470ee082aef54"
}
```