TypeScript SDK

@pontx/currencybeacon-rest

The operator-published SDK for CurrencyBeacon exchange-rate API covers every Endpoint in the current PontxSpec.

v0.1.3Node.js 18 / 20 / 22 CIESM + CommonJSTypeScript declarationsSDK Endpoint coverage 5/5

SDK quality gate

The source for v0.1.3 passed its complete unit suite and built-package E2E on Node.js 18 / 20 / 22.

SDK quality: UT 100%, E2E passed
Unit tests
4/4 · 100%
E2E
Passed
Tested commit
aacf410
Verified
2026-08-24

Install and call

The SDK is produced by Pontx and typechecked and built before publication.

Install SDK
pnpm add @pontx/currencybeacon-rest
TypeScript usage
import { createCurrencyBeaconClient } from "@pontx/currencybeacon-rest";

const client = createCurrencyBeaconClient({
  apiKey: process.env.PONTX_CURRENCYBEACON_API_KEY!
});

const result = await client.latest(
  {
    "base": "USD",
    "symbols": "EUR,GBP"
  }
);
console.log(result);

Command-line access

This npm package also publishes a dedicated CLI for the API. Use dry-run to inspect parameters, then supply your own provider credentials when required.

Dedicated API CLI
pnpm add --global @pontx/currencybeacon-rest

pontx-currencybeacon-rest call latest --base USD --symbols EUR,GBP --dry-run