get_funding_forecast
TMS liquidity/funding view: per-currency running cash balance seeded from the user's REAL bank balances - INCLUDING base currency (which the FX-exposure tools deliberately exclude). Answers whether the user will hold the units to settle upcoming payables/receivables, the first date each currency runs short and by how much, the trade the gap implies (BUY on a projected shortfall by its date, SELL on a surplus), and whether base-currency cash can fund the foreign purchases (can_self_fund + base_funding_shortfall). Uses real bank balances + real invoices plus the projected settlement component with its band and accuracy. Trade direction is a mechanical consequence of the gap sign, not a recommendation. sufficient_history is false when the settlement history is too short for a reliable band.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Optional 3-letter currency code to filter to one currency. | |
| horizon_weeks | No | Projection horizon in weeks (1-26, default 8). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool-specific payload. Null when connection_status.state is 'setup_required'. | |
| connection_status | Yes |