Reserve Bank of Australia Exchange Rates for Python — rba-exchange-rate
Official Reserve Bank of Australia exchange rates for Python. The published central bank rates behind tax filings, customs valuations, audits and compliant invoicing — not market estimates, but the numbers Reserve Bank of Australia itself prints, with its own rate_date on every response. The latest table needs no API key.
🚀 Why this package?
- 🏛️ Official published rates — Reserve Bank of Australia's own table, with the publisher's own
rate_dateon every response - 🔓 No key for the latest table —
get_latest_rates()andget_rate()work the moment the package is installed - 📅 History back to 2023 — point-in-time tables and daily series on a paid plan
- 🔀 Published vs derived, always flagged — computed inverse/cross pairs carry
derived: True, never mixed with official prints - ⚡ Zero dependencies — standard library only (
urllib), Python 3.9+ - 🔷 Typed — ships
py.typedfor mypy and pyright
Official rate, not mid-market: every value here is a number Reserve Bank of Australia itself published, fixed once printed — what filings and audits require. Need the live mid-market rate for pricing or display instead? Use
allratestoday. The two can diverge by several percent. For all 120+ central banks and tax authorities in one package, useallratestoday-central-bank.
📦 Installation
pip install rba-exchange-rate
Requires Python 3.9+. No dependencies. The import name is rba_exchange_rate.
🏁 Quick start
from rba_exchange_rate import get_rate
pair = get_rate("AUD", "USD")
print(pair["rate"], "published", pair["rate_date"]) # no API key needed
📈 Latest published table
The image is rendered live from the keyless endpoint, so it stays current on PyPI without a new release.
Source: Official rates published by Reserve Bank of Australia, served by AllRatesToday. Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
📚 API reference
Latest published table — no key
from rba_exchange_rate import get_latest_rates
table = get_latest_rates()
print(table["rate_date"], len(table["rates"]))
for row in table["rates"][:3]:
print(row["base"], row["quote"], row["type"], row["value"])
Returns {"bank", "rate_date", "age_days", "stale", "cadence", "rates": [{"base", "quote", "type", "value"}], "attribution"}.
One pair — no key
from rba_exchange_rate import get_rate
pair = get_rate("AUD", "USD")
pair["rate"], pair["rate_date"], pair["derived"], pair["method"]
method is published, inverse or cross; anything but published comes with derived: True.
Table for a date — paid plan
from rba_exchange_rate import get_rates_for_date
table = get_rates_for_date("2026-01-15", api_key="art_live_...")
pair = get_rates_for_date("2026-01-15", source="AUD", target="USD", api_key="art_live_...")
Weekends and holidays roll back to the last date Reserve Bank of Australia actually published; the returned rate_date says which.
Daily series — paid plan
from rba_exchange_rate import get_history
series = get_history(source="AUD", target="USD",
from_date="2026-01-01", to_date="2026-03-31",
api_key="art_live_...")
Billed by volume: one call per currency per month of data returned.
📖 Methods reference
| Function | Key | Returns |
|---|---|---|
get_latest_rates() |
none | Newest published table |
get_rate(source, target) |
none | One pair from it, derived flagged |
get_rates_for_date(date, source=None, target=None, api_key=None) |
paid plan | The table (or one pair) in force on a date |
get_history(symbol=None, source=None, target=None, from_date=None, to_date=None, api_key=None) |
paid plan | Date-by-date official series |
Dates accept "YYYY-MM-DD", date or datetime. Keyed calls read api_key= or the ALLRATES_API_KEY environment variable. Module constants: BANK_CODE ("rba"), BANK_NAME, HOME_CURRENCY ("AUD").
🔑 API key
The latest table is keyless. Dated tables and history need a key on a paid plan — register (free, no card), then upgrade from the dashboard.
export ALLRATES_API_KEY=art_live_...
🛡️ Error handling
Every failure raises ExchangeRateError, with the HTTP status on .status when the server answered:
from rba_exchange_rate import get_rate, ExchangeRateError
try:
get_rate("AUD", "XXX")
except ExchangeRateError as err:
print(err, err.status) # human-readable reason, e.g. 404
| Status | Meaning |
|---|---|
None |
Network error or timeout (10 s) |
401 |
Missing or invalid API key |
403 |
Your plan does not include this endpoint (dated tables and history are paid) |
404 |
No published rate for that pair or date |
429 |
Quota or rate limit reached |
🗺️ Currencies covered
Reserve Bank of Australia currently publishes rates covering 20 currencies against the AUD (as of the latest table):
🇨🇦 CAD · 🇨🇭 CHF · 🇨🇳 CNY · 🇪🇺 EUR · 🇬🇧 GBP · 🇭🇰 HKD · 🇮🇩 IDR · 🇮🇳 INR · 🇯🇵 JPY · 🇰🇷 KRW · 🇲🇾 MYR · 🇳🇿 NZD · 🇵🇬 PGK · 🇵🇭 PHP · 🇸🇬 SGD · 🇹🇭 THB · 🇹🇼 TWD · 🇺🇸 USD · 🇻🇳 VND · XDR
🏛️ Source
The Reserve Bank of Australia is Australia's central bank. It publishes official exchange rates for the Australian dollar once each business day at 16:00 Sydney time, based on market rates observed at that time.
- Publisher's own page: Exchange rates statistics · www.rba.gov.au
- Publication: every business day; the exact schedule, freshness status and any current delay are on the Reserve Bank of Australia rates page
- Values are stored unmodified, with the publisher's own
rate_dateon every row — see the methodology
🧭 Reading the numbers
valueis always quote currency per 1 unit of base currency (base: "EUR", quote: "USD", value: 1.15means 1 EUR = 1.15 USD).- Reserve Bank of Australia quotes foreign currency per 1 AUD (e.g.
base: "AUD", quote: "USD"means USD per one AUD). - Need the other way round? Ask
get_rate(target, source)and the API inverts or crosses for you, flaggedderived: true— never divide a published rate yourself in a compliance workflow. rate_typetells you which of the central bank's series a row belongs to (referencehere); some publishers print buy/sell or several fixings for the same pair.
⚖️ Published vs derived rates
If Reserve Bank of Australia does not print a pair directly, the API resolves it from the central bank's own table and says so — official and computed values are never confused:
method |
derived |
Meaning |
|---|---|---|
published |
false |
The central bank printed this pair directly |
inverse |
true |
Computed as 1 ÷ the published opposite direction |
cross |
true |
Computed via AUD from two published rates |
🧩 ERP & accounting systems
Loading the official Reserve Bank of Australia rate into an accounting system is a supported workflow, not a hack. Step-by-step guides with the direction each system expects:
- Dynamics 365 Business Central — built-in Currency Exchange Rate Service, no code
- Xero · QuickBooks Online · SAP S/4HANA and ECC · Odoo
The same keyed endpoints return ?format=csv, ?format=xml and ?format=xlsx, and accept the key as ?api_key= on the URL for importers that cannot send headers:
curl "https://allratestoday.com/api/v1/central-bank/rba/latest?format=xml&api_key=art_live_..."
🤖 AI agents
- MCP server:
npx -y @allratestoday/central-bank-mcp(stdio) or the hosted endpointhttps://allratestoday.com/api/mcp— tools for official rates, history, cross-bank comparison and publication calendars - Already using the general SDK or MCP server? Since 2026-10-01
@allratestoday/sdk1.4+ hasofficialRates('rba')and@allratestoday/mcp-server0.6+ has aget_official_ratestool — both return this source's latest table with no key, so you can add it without a second dependency - Claude Code plugin (no key):
/plugin marketplace add AllRates-Today/claude-code-pluginthen/plugin install allratestoday@allratestoday— bundles both MCP servers plus an/official-rate rba ...command - Evaluating? Agents can self-issue a trial key with no signup:
POST https://allratestoday.com/api/agent/keys(sendContent-Type: application/json) returns a 100-call key valid 7 days that covers the free-plan methods (latest table, pairs); dated tables and history need a paid plan. The MCP servers expose it asrequest_trial_key - Machine-readable site guide: llms.txt · for-ai-agents
💡 Caching tip
Reserve Bank of Australia publishes at most once per business day — cache get_latest_rates() for a few hours and you will rarely hit the network.
📥 Bulk data (no key)
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
- Hugging Face: AllRatesToday/central-bank-exchange-rates — one CSV per institution (
rates/rba.csv) - Kaggle: allratestoday/central-bank-exchange-rates
- Raw JSON on GitHub:
https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/rba/latest.json
🔗 Links
- Reserve Bank of Australia rates page — live table, publication cadence, FAQ
- All central bank sources
- Package docs on the site · ERP integration guides
- API documentation · Interactive reference · Methodology
- Register (Free) · Dashboard · Pricing
- Status
- GitHub
- Node.js equivalent:
rba-exchange-rateon npm
📜 License
MIT. Rates are served as published by Reserve Bank of Australia; AllRatesToday is not affiliated with it.
Metadata
Release files for rba-exchange-rate 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rba_exchange_rate-1.0.2.tar.gz | 9.3 kB | Without provenance | Details for rba_exchange_rate-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rba_exchange_rate-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for rba_exchange_rate-1.0.2-py3-none-any.whl |
Total release size: 18.8 kB
Release files / rba_exchange_rate-1.0.2.tar.gz
| Download URL | rba_exchange_rate-1.0.2.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6f416f9c83ef970e6c23a88344db1b9ce33c33ab20361e276d8ad9053cc0319
|
|
BLAKE2b-256 checksum How to use checksums |
efc66c18a18fc4a86707d3b97a9f18af817947f772bb4399343e086c5ed74376
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / rba_exchange_rate-1.0.2-py3-none-any.whl
| Download URL | rba_exchange_rate-1.0.2-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75ab464058bd0b33342f44631963e62c3cf76a08962b9a3515b285fc65132799
|
|
BLAKE2b-256 checksum How to use checksums |
9af8ecf7ff5da307ef325e90ea706ce87a46d65e80f59449505e387e95a46e85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for rba-exchange-rate 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.