rate_alert_check
Check whether a currency pair's current rate has crossed a threshold. Returns a boolean verdict and current rate for triggering alerts in polling loops or CI checks.
Instructions
Check whether a currency pair's current rate has crossed a threshold. Returns a boolean verdict and the current rate — designed for use in polling loops or CI checks that trigger alerts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Quote currency (e.g. USD) | |
| from | Yes | Base currency (e.g. NZD) | |
| direction | Yes | 'above' = alert when rate > threshold; 'below' = alert when rate < threshold | |
| threshold | Yes | The rate to check against |