← Back to Abstract
GET/v1/historical

Historical Exchange Rates

Get exchange rates for a specific historical date.

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/historical", query: { "base": "example", "date": "example" } }); console.log(output);

Query parameters

baserequired
string

Base currency code

target
string

Target currency code(s)

daterequired
string

Historical date in YYYY-MM-DD format

    Orthogonal - Giving AI agents the tools they need.