convertCurrency

2 credits per call

Convert a value from one currency to another using current exchange rates.

Try it

Open in playground
kirha tools run coingecko_convertCurrency \
  --input '{
    "fromCurrency": "eur",
    "toCurrency": "eur",
    "value": 1
  }'

Uses the key saved by kirha auth login.

  • fromCurrencystring, required

    One of eur, usd, gbp, jpy, aud, sek, btc, eth, cny, chf

  • toCurrencystring, required

    One of eur, usd, gbp, jpy, aud, sek, btc, eth, cny, chf

  • valuenumber, required, Above 0