You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Purpose: Quick reference for implementing comprehensive test cases
Last Updated: 2024-11-02
Date Format Summary
Provider
Date Format
Multi-Date Ranges
Example
FRED
YYYY-MM-DD
Yes (start/end params)
2024-01-01
WorldBank
YYYY, YYYY:YYYY (range with colon)
Yes (semicolon separated)
2020:2024
UN Comtrade
YYYY (annual), YYYYMM (monthly)
Yes (12 year max for annual, 1 year for monthly)
2024, 202401
CoinGecko
ISO YYYY-MM-DD or UNIX timestamp
Yes (from/to params)
2024-01-01
Statistics Canada
ISO 8601: YYYY, YYYY-MM, YYYY-MM-DD
Yes (varies by endpoint)
2024-01
Dune Analytics
ISO 8601 YYYY-MM-DDTHH:MM:SSZ
Via query parameters
2024-01-01T00:00:00Z
Multi-Country Support
Provider
Multi-Country
Separator
Max Countries
Example
FRED
❌ No
N/A
1
Must make separate calls
WorldBank
✅ Yes
Semicolon (;)
60 indicators, 1500 chars between /
chn;ago;usa
UN Comtrade
✅ Yes
Comma (,)
Multiple (API limit)
reporterCode=156,840
CoinGecko
✅ Yes
Comma (,)
Multiple
ids=bitcoin,ethereum
Statistics Canada
⚠️ Limited
Varies
Depends on dataset
Check specific table
Dune Analytics
✅ Yes
Via SQL query
Unlimited
WHERE country IN ('US', 'CN')
Provincial/State Support
Provider
Geographic Levels
Examples
FRED
✅ US States
CAUR (California Unemployment), NYUR (New York Unemployment)
WorldBank
❌ National only
No sub-national data
UN Comtrade
❌ National only
Country-level trade only
CoinGecko
N/A
Not geography-based
Statistics Canada
✅ Canadian Provinces
Provincial GDP, unemployment by province
Dune Analytics
N/A
Blockchain data (not geography-based)
Error Codes
FRED
400: Bad Request (invalid parameters)
401: Unauthorized (invalid API key)
404: Not Found (series doesn't exist)
429: Rate limit exceeded
WorldBank
400: Bad Request
404: Indicator not found
Data availability errors (no standardized error code, check response structure)
UN Comtrade
401: Invalid API key
403: Forbidden (subscription required)
429: Rate limit exceeded
500: Internal server error
CoinGecko
429: Rate limit (free tier: 10-50 calls/min)
404: Coin not found
Historical data limited to 365 days on free tier
Statistics Canada
Standard HTTP error codes
SDMX-specific error messages in response body
Dune Analytics
401: Invalid API key
404: Query not found
429: Rate limit exceeded
Query timeout errors (performance-dependent)
Rate Limits
Provider
Free Tier Limit
Paid Tier
Notes
FRED
120 requests/60s
Same
No daily limit
WorldBank
15,000 data points/call
Same
No authentication required
UN Comtrade
500 calls/day (with token)
10,000+ (subscription)
Premium required for some data
CoinGecko
10-50 calls/min
500-10,000/min
Free tier limited to 365 days history
Statistics Canada
No published limit
N/A
Generally generous
Dune Analytics
1,000 calls/month
Unlimited
Performance tiers: medium/large
Key Parameters for Each Provider
FRED
series_id (REQUIRED)
api_key (REQUIRED)
observation_start (YYYY-MM-DD)
observation_end (YYYY-MM-DD)
frequency (d, w, m, q, sa, a)
units (lin, chg, pch, pc1, log)