Skip to main content
POST
/
pools
/
estimate
Estimate Swap
curl --request POST \
  --url https://kryptonweb3-production.up.railway.app/pools/estimate \
  --header 'Content-Type: application/json' \
  --data '
{
  "from_token": "<string>",
  "to_token": "<string>",
  "amount": 123,
  "slippage_tolerance": 0.05
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Body

application/json
from_token
string
required

Symbol of token to swap from (e.g., kUSD or USD)

to_token
string
required

Symbol of token to receive (e.g., kEUR or EUR)

amount
number
required

Amount in token units

slippage_tolerance
number | null
default:0.05

Fractional slippage, default 5%

Response

Successful Response