Skip to main content
GET
/
api
/
quotes
/
offramp
/
exact-output
Get Exact-Output Offramp Quote
curl --request GET \
  --url https://api.teel.finance/api/quotes/offramp/exact-output
{
  "success": true,
  "data": {
    "protocol": "rt_9XbN2kQ",
    "fromToken": "USDC",
    "toCcy": "PHP",
    "fromAmount": 176.43,
    "toAmount": 10000.00,
    "rate": 56.8,
    "fee": 0.35
  }
}
Returns the single best offramp quote that delivers an exact fiat amount to the recipient. Teel solves for the required crypto input, adding the Teel fee on top of the input (fee-on-input) so the recipient receives exactly target_amount.

Query Parameters

payout_currency
string
required
ISO 4217 currency code for the fiat payout currency (e.g. USD, PHP).
target_amount
number
required
The exact fiat amount the recipient must receive.

Response

success
boolean
data
object
A single offramp quote. toAmount equals the requested target_amount; fromAmount is the crypto input required (including the Teel fee). The protocol field is an opaque route token (rt_...) — see Route tokens.
{
  "success": true,
  "data": {
    "protocol": "rt_9XbN2kQ",
    "fromToken": "USDC",
    "toCcy": "PHP",
    "fromAmount": 176.43,
    "toAmount": 10000.00,
    "rate": 56.8,
    "fee": 0.35
  }
}