@robinpath/currency
v0.3.0
Published
Live exchange-rate lookup and currency conversion with optional credentialed providers (exchangerate-api, fixer.io)
Readme
@robinpath/currency
Currency module for RobinPath.
Why use this module?
The currency module lets you:
- getLatestRates
- convert
- convertBatch
- getHistoricalRates
- listCurrencies
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
robinpath add @robinpath/currencyQuick Start
No credentials needed — start using it right away:
currency.convertAvailable Functions
| Function | Description |
|----------|-------------|
| currency.getLatestRates | getLatestRates |
| currency.convert | convert |
| currency.convertBatch | convertBatch |
| currency.getHistoricalRates | getHistoricalRates |
| currency.listCurrencies | listCurrencies |
| currency.getRate | getRate |
| currency.getSupportedCodes | getSupportedCodes |
| currency.getTimeSeriesRates | getTimeSeriesRates |
| currency.formatCurrency | formatCurrency |
| currency.getPopularRates | getPopularRates |
Examples
convert
currency.convertconvertBatch
currency.convertBatchgetHistoricalRates
currency.getHistoricalRatesIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/currency";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
currency.convert
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
