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
| Item | Value |
|---|---|
| Protocol | REST |
| Endpoint pattern | GET /v1/exchangerate/{asset_id_base}?filter_asset_id={quote_assets} |
| Base currency | USD |
| Quote currencies | EUR, GBP, JPY, CAD, AUD, CHF, SGD |
| Rates per polling cycle | 7 rates |
| Polling frequency | Every 1 minute |
| Polling cycles per day | 1,440 |
| Estimated usage | 10,080 rates/day |
Example request:
| Purpose | Example endpoint |
|---|---|
| Latest USD rates | GET /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:
| Tier | Usage | Cost |
|---|---|---|
| First 100 rates/day | 100 | $0.50 |
| Next 100 rates/day | 100 | $0.40 |
| Next 100 rates/day | 100 | $0.30 |
| Next 100 rates/day | 100 | $0.20 |
| Next 600 rates/day | 600 | $0.60 |
| Next 9,000 rates/day | 9,000 | $4.50 |
| Remaining rates | 80 | $0.02 |
| Total/day | 10,080 | $6.52 |
Estimated 30-day usage:
$6.52 × 30 = $195.60/month
Plan comparison
| Plan | Price per Credit | Monthly cost | Included credits | Estimated monthly cost |
|---|---|---|---|---|
| Pay As You Go | $1.00/Credit | No commitment | N/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.
Use Case: REST Historical Daily FX Rates for Reporting
A sample Currencies API pricing simulation for downloading historical daily FX rates for reporting or reconciliation.
Use Case: WebSocket Real-Time FX Rates for a Trading Application
A sample Currencies API pricing simulation for streaming real-time FX rates over WebSocket.
