← Back to Abstract
GET/v1/convert

Convert Currency

Convert an amount from one currency to another.

Abstract·$0.001 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "abstractapi/exchange-rates", path: "/v1/convert", query: { "base": "example", "target": "example" } }); console.log(output);

Query parameters

baserequired
string

Base currency code

targetrequired
string

Target currency code

amount
string

Amount to convert (defaults to 1)

    Orthogonal - Giving AI agents the tools they need.