FX buying ahead of supplier invoices
Prepared for Jane Doe · Distribution · December 3, 2026
Sample data for illustration.Targets
| Target | Open invoices | Next due | Covered | Status |
|---|---|---|---|---|
| EUR/USD | €1,450,000 | Dec 10, 2026 | 14% | Active |
| USD/JPY | ¥96,000,000 | Jan 4, 2027 | 0% | Active |
| USD/MXN | MX$7,200,000 | Nov 30, 2026 | 55% | Active |
Target detail
EUR/USD rate history (7 days)
| Date | Open | High | Low | Close |
|---|---|---|---|---|
| Nov 19 | 1.0851 | 1.0860 | 1.0809 | 1.0824 |
| Nov 18 | 1.0872 | 1.0880 | 1.0838 | 1.0850 |
| Nov 17 | 1.0890 | 1.0901 | 1.0861 | 1.0873 |
| Nov 16 | 1.0884 | 1.0907 | 1.0870 | 1.0891 |
| Nov 13 | 1.0869 | 1.0895 | 1.0858 | 1.0885 |
| Nov 12 | 1.0855 | 1.0880 | 1.0840 | 1.0868 |
| Nov 11 | 1.0871 | 1.0889 | 1.0846 | 1.0857 |
Invoice schedule
Alerts: what the system watches for
Edit alert
Configured alerts
Decision logic: alerts, conditions, plays and rules
Play: Buy currency on weakness before invoices are due
- Rate at 20-day low
- Rate 1% below 30-day average
- Invoice due within 30 days
- Coverage below 50%
Rules
Policy gate
Live feed
Buy (1)
Buy €200,000 toward Dec 10 invoice
Sell (1)
Sell MX$300,000 surplus (credit note)
Wait (1)
Mid-range; due Jan 4, nothing covered yet
Audit trail: one recommendation, start to finish
Data received
Play evaluated → rule fired
Decision
Outcome
Daily flags
ROI scoring and baseline
| Target | Decisions | Avg rate | Baseline | Best possible | Captured | Result vs baseline |
|---|---|---|---|---|---|---|
| EUR/USD | 12 | 1.0838 | 1.0881 | 1.0795 | 50% | +$9,800 |
| USD/JPY | 7 | 150.9 | 149.8 | 152.4 | 42% | +$6,300 |
| USD/MXN | 9 | 17.52 | 17.41 | 17.78 | 30% | +$3,150 |
Baseline: Rate on the day each invoice arrived. Best possible: Best rate before it was due. Sample figures; in a live installation, these come from the organization’s own decisions and data.
AI Agent Decision Data
Reads rates and open invoices each morning and recommends Buy, Wait or Sell for each currency, with a short reason.
When it acts: Before the treasurer approves; the treasury analyst sees the agent's recommendation beside the rules' call.
Agent feed: sample records
| Time | Target | Recommendation | Model | Agent’s reason |
|---|---|---|---|---|
| 11/19 09:31 AM | EUR/USD | Buy | v2.4 | Rate near its 20-day low; Dec 15 invoice under 50% covered |
| 11/19 10:47 AM | USD/MXN | Sell | v2.4 | Coverage above 100% after the credit note |
| 11/19 11:05 AM | USD/JPY | Buy | v2.4 | Yen weakening; Jan 10 invoice not yet covered |
| 11/20 09:02 AM | EUR/USD | Buy | v2.4 | Buy 40% of the Jan 5 invoice while the rate is low |
Policy breaches flagged
Checked against the policy gate the moment each output arrives.
Agent's call against the rules' call, last 30 days
| Agent | Buy | Wait | Sell |
|---|---|---|---|
| Buy | 18 | 6 | 0 |
| Wait | 3 | 41 | 1 |
| Sell | 0 | 1 | 4 |
Rows are the agent's call, columns the rules' call. Most disagreements are the agent buying early on a trending rate, before the 20-day-low rule fires. Shaded cells are agreement.
Disagreements, graded on the outcome
| Target | Agent | Rules | Decision makers | What followed | Better call |
|---|---|---|---|---|---|
| USD/JPY | Buy | Wait | Wait | Yen fell another 0.9% before the rules bought | Agent |
| EUR/USD | Wait | Buy | Buy | Rate rose 0.4% the following week | Rules |
| USD/MXN | Buy | Wait | Buy | Peso flat; buying early gained nothing | Tie |
Drift
| Period | Model | Agreement |
|---|---|---|
| Aug | v2.2 | 83% |
| Sep | v2.3new | 86% |
| Oct | v2.3 | 87% |
| Nov | v2.4new | 85% |
Agreement slipped after the v2.4 update as the agent began buying earlier on trending rates. Outcome grading shows whether that is paying off.
Fit and next steps
What we’d check first
- Live rates, firm invoice due dates and the same buying decision repeated for every invoice
- How often the ERP payables can be exported
- Whether bank FX quotes are available as a feed
- How credit notes and part payments appear
- Cash forecasts, more currencies and new rules
Next step: a formal proposal
For IT and data teams: an AI data pipeline
Stockurai is licensed to researchers and institutions for real-time analysis of equity markets, with AI and machine learning built into the process. The same AI data pipeline can be built for this decision.
- It runs entirely in the organization’s own AWS account, and all data stays there.
- Every recommendation is stored with the full data behind it: labeled records data teams can use to train and test models.
- Built with AI in mind, making maintenance and extension simple for a single technical resource.
Design prototype prepared by Stockurai · Sample data for illustration only · stockurai.com