Use Cases

Use Case: REST Latest FX Rates for a Treasury Dashboard

A sample Currencies API pricing simulation for polling latest REST FX rates for multiple fiat currencies.

Use Case: REST Latest FX Rates for a Treasury Dashboard

This example estimates the cost of polling current FX rates for a treasury, accounting, or internal finance dashboard.

Assumptions

ItemValue
ProtocolREST
Endpoint patternGET /v1/exchangerate/{asset_id_base}?filter_asset_id={quote_assets}
Base currencyUSD
Quote currenciesEUR, GBP, JPY, CAD, AUD, CHF, SGD
Rates per polling cycle7 rates
Polling frequencyEvery 1 minute
Polling cycles per day1,440
Estimated usage10,080 rates/day

Example request:

PurposeExample endpoint
Latest USD ratesGET /v1/exchangerate/USD?filter_asset_id=EUR,GBP,JPY,CAD,AUD,CHF,SGD

Rate usage

Each polling cycle returns:

1 base currency × 7 quote currencies = 7 rates

Daily usage:

7 rates × 1,440 polling cycles = 10,080 rates/day

Pay As You Go estimate

Using the daily tiered rate pricing:

TierUsageCost
First 100 rates/day100$0.50
Next 100 rates/day100$0.40
Next 100 rates/day100$0.30
Next 100 rates/day100$0.20
Next 600 rates/day600$0.60
Next 9,000 rates/day9,000$4.50
Remaining rates80$0.02
Total/day10,080$6.52

Estimated 30-day usage:

$6.52 × 30 = $195.60/month

Plan comparison

PlanPrice per CreditMonthly costIncluded creditsEstimated monthly cost
Pay As You Go$1.00/CreditNo commitmentN/A$195.60
Committed 64$0.85/Credit$64~75.29 credits$184.31
Committed 256$0.75/Credit$256~341.33 credits$256.00
Committed 512$0.70/Credit$512~731.43 credits$512.00
Committed 1024$0.65/Credit$1,024~1,575.38 credits$1,024.00

Result

For this sample, Committed 64 has the lowest estimated cost.

Pay As You Go may still be simpler for occasional or unpredictable usage. Larger committed plans are better suited for customers with higher recurring monthly usage.

Caveat

Actual usage depends on the number of requested currency pairs, polling frequency, retries, and whether one endpoint response returns multiple rates.

Service StatusGitHub SDK