Use Cases
Scheduled Exchange Rate Sync
Automate currency exchange rate updates on a cron schedule. Keep your pricing, invoicing, and financial data accurate with TrigRun.
Pull fresh exchange rates from a provider API every 2 hours during business days. Your backend updates pricing tables, invoice calculations, and reporting — automatically.
The problem
Your SaaS bills customers in multiple currencies, or your e-commerce store displays prices in local currencies. Stale exchange rates mean inaccurate pricing, incorrect invoices, and accounting discrepancies. You need rates refreshed frequently during business hours, but not necessarily overnight or on weekends.
The TrigRun solution
| Setting | Value |
|---|---|
| Schedule | 0 */2 * * 1-5 (every 2 hours, weekdays only) |
| Method | POST |
| Timeout | 30 seconds |
| Retries | 3 attempts |
Create via API
Expected results
Successful sync:
| Field | Example value |
|---|---|
| Status | 200 OK |
| Duration | 1,240 ms |
| Response | {"base": "USD", "rates_updated": 7, "source": "ecb", "timestamp": "2026-03-16T14:00:00Z", "sample": {"EUR": 0.9215, "GBP": 0.7890}} |
Rate provider down:
| Field | Example value |
|---|---|
| Status | 503 Service Unavailable |
| Attempts | 3 of 3 |
| Result | failed — Slack alert sent |
| Impact | Previous rates remain in use (stale but not missing) |
Your sync endpoint
Common schedules
| Pattern | Expression | Use case |
|---|---|---|
| Every 2h weekdays | 0 */2 * * 1-5 | SaaS multi-currency pricing |
| Hourly all week | 0 * * * * | Trading platforms |
| Daily at market open | 0 9 * * 1-5 | Invoice generation |
| Every 15 min weekdays | */15 * * * 1-5 | Real-time forex dashboards |