Skip to content

oxr

OpenExchangeRates API client and currency-rate cache inside PostgreSQL.

oxr · OpenExchangeRates API client and currency-rate cache inside PostgreSQL.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101897oxroxr0.1UTILGPL-3.0SQL

PostgreSQL · 13, 14, 15, 16, 17, 18

Relationships
Requireshttp

Usage

Sources:

oxr OpenExchangeRates API client and currency-rate cache inside PostgreSQL.

Enablement

Install the files for the intended server, then create oxr in the target database:

CREATE EXTENSION oxr CASCADE;

The reviewed control or official workflow requires http. CASCADE only succeeds when those extension files are already installed on the server.

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

-- Store your API key (replace 'your_api_key' with your actual key)
SELECT oxr.set_config('api_key', 'your_api_key');

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
oxr.set_configFUNCTIONCallable function from the reviewed install surface.
oxr.get_configFUNCTIONCallable function from the reviewed install surface.
oxr.get_historical_rateFUNCTIONCallable function from the reviewed install surface.
oxr.get_latest_rateFUNCTIONCallable function from the reviewed install surface.
oxr.historical_ratesTABLEExtension-owned table; account for its data in backup and upgrades.
oxr.set_app_idFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • The verified PostgreSQL-major evidence covers 13, 14, 15, 16, 17, 18; do not infer unlisted majors.
  • The extension fixes or creates schema objects under oxr; include them in privilege and backup review.
  • Catalog lifecycle is abandoned; test upgrades, dump/restore, and server compatibility before production use.

Table reader