GET /v1/estimate
Get an estimated conversion amount between currencies. No authentication required.
Request
Section titled “Request”GET /v1/estimate?amount={amount}¤cy_from={from}¤cy_to={to}Query Parameters
Section titled “Query Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
amount | string | Yes | Amount to convert |
currency_from | string | Yes | Source currency |
currency_to | string | Yes | Target currency |
Example
Section titled “Example”curl "https://api.nearpayments.io/v1/estimate?amount=100¤cy_from=usd¤cy_to=btc"Response
Section titled “Response”{ "currency_from": "usd", "currency_to": "btc", "amount_from": 100, "estimated_amount": "0.00105263"}