Use Cases

Use Case: REST Latest Rates for a Portfolio Dashboard

A sample Exchange Rates API pricing simulation for polling latest REST exchange rates for multiple assets.

Use Case: REST Latest Rates for a Portfolio Dashboard

This example estimates the cost of polling current exchange rates for a small portfolio dashboard.

Assumptions

ItemValue
ProtocolREST
Endpoint patternGET /v1/exchangerate/{asset_id_base}?filter_asset_id={quote_assets}
Base assetsBTC, ETH, SOL, XRP, ADA
Quote assetsUSD, EUR
Rates per polling cycle10 rates
Polling frequencyEvery 5 minutes
Polling cycles per day288
Estimated usage2,880 rates/day

Example requests:

AssetExample endpoint
BTCGET /v1/exchangerate/BTC?filter_asset_id=USD,EUR
ETHGET /v1/exchangerate/ETH?filter_asset_id=USD,EUR
SOLGET /v1/exchangerate/SOL?filter_asset_id=USD,EUR
XRPGET /v1/exchangerate/XRP?filter_asset_id=USD,EUR
ADAGET /v1/exchangerate/ADA?filter_asset_id=USD,EUR

Rate usage

Each polling cycle returns:

5 base assets × 2 quote assets = 10 rates

Daily usage:

10 rates × 288 polling cycles = 2,880 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
Remaining rates1,880$0.94
Total/day2,880$2.94

Estimated 30-day usage:

$2.94 × 30 = $88.20/month

Plan comparison

PlanPrice per CreditMonthly costIncluded creditsEstimated monthly cost
Pay As You Go$1.00/CreditNo commitmentN/A$88.20
Committed 64$0.85/Credit$64~75.29 credits$76.91
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 if usage is occasional or unpredictable. Larger committed plans are better suited for customers with higher recurring monthly usage.

Caveat

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

Service StatusGitHub SDK