Skip to content

Dataset

Cash flow forecasting and treasury datasets for AI training

A cash flow forecasting dataset is a dated record of one company's liquidity: daily bank balances by account and currency, each cash forecast as it was issued, the actual flows that followed, and the funding, sweep, FX and investment actions treasury took. SourceX sources these from established businesses' treasury management systems, such as Kyriba and GTreasury, and from the bank reporting files that feed them. Each dataset is de-identified, with account numbers and counterparty names masked, and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Daily bank balances, cash forecasts as issued, later actual flows and the treasury actions taken
Typical systems
Kyriba, GTreasury, SAP Treasury and Risk Management, FIS Quantum, ION Reval, bank reporting portals
Typical history
Varies by partner; specify the years of daily balances and the number of saved forecast cycles you need
Modality
Structured daily series and dated events, with forecast workbooks and bank files where kept
Delivery formats
Parquet or CSV tables with JSONL events; original BAI2, MT940 or camt.053 files where agreed
Preparation
Account numbers, banks and counterparties replaced with keys; amounts scaled or banded as agreed
Licensing
Scoped per company, entity set and period; permitted use and derivatives agreed per license
Availability
Sourced to your spec; saved forecast versions depend on how the partner's treasury kept them
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
position_datedateThe business day the position describes; balances are that day's closing figures unless the source is marked intraday.
accountsarrayOne row per bank account: masked account, entity and bank keys, currency and role, such as concentration, disbursement, zero balance sub-account or pool header.
balancesarrayClosing ledger and closing available balance per account, float by availability day, and the reporting format, prior-day or intraday.
forecast_versionobjectThe forecast in force: ID, issue time, horizon, bucket size, direct or indirect method and the exchange rate basis.
forecast_linesarrayForecast amount per bucket and flow category, the feed it came from, such as receivables aging or the payment run, and a manual override flag.
actual_flowsarrayCleared flows per bucket in the same categories, with whether a rule or a person assigned the category.
variancearrayActual less forecast by category and horizon, so a receipts shortfall is negative, with the analyst's reason code and note where one was written.
category_mapobjectVersioned rules that map bank transaction codes and narrative text to flow categories.
liquidity_headroomobjectAvailable cash, undrawn committed facilities, target minimum balances and any covenant liquidity floor, exact or banded as agreed.
actionsarrayFunding, intercompany, sweep, FX and investment actions with amount, trade and value dates, approver role and an automatic or discretionary flag.
action_triggerobjectThe constraint an action answered, the forecast version it relied on, and whether the reason was recorded or inferred.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "position_date": "2024-03-14",
  "accounts": [
    {
      "account_key": "acct_7c1e",
      "entity_key": "ent_04",
      "bank_key": "bank_02",
      "currency": "USD",
      "role": "concentration"
    }
  ],
  "balances": [
    {
      "account_key": "acct_7c1e",
      "closing_ledger": 2874300,
      "closing_available": 2791100,
      "float": {
        "one_day": 61200,
        "later": 22000
      },
      "source": "bai2_prior_day"
    }
  ],
  "forecast_version": {
    "forecast_id": "fc_2024w11",
    "issued_at": "2024-03-11T14:05:00Z",
    "horizon_weeks": 13,
    "bucket": "weekly",
    "method": "direct",
    "fx_basis": "budget_rate"
  },
  "forecast_lines": [
    {
      "bucket_start": "2024-03-11",
      "category": "customer_receipts",
      "amount": 3350000,
      "source": "ar_aging",
      "manual_override": true
    },
    {
      "bucket_start": "2024-03-11",
      "category": "payroll",
      "amount": -1480000,
      "source": "payroll_calendar",
      "manual_override": false
    }
  ],
  "actual_flows": [
    {
      "bucket_start": "2024-03-11",
      "category": "customer_receipts",
      "amount": 2610000,
      "tagged_by": "rule"
    },
    {
      "bucket_start": "2024-03-11",
      "category": "payroll",
      "amount": -1482300,
      "tagged_by": "rule"
    }
  ],
  "variance": [
    {
      "category": "customer_receipts",
      "horizon_weeks": 1,
      "amount": -740000,
      "reason": "timing",
      "note": "[CUSTOMER_12] remittance expected Thursday, cleared the following Tuesday"
    }
  ],
  "category_map": {
    "version": 3,
    "effective_from": "2023-07-01",
    "rules": [
      {
        "match": "narrative contains [PAYROLL_PROVIDER]",
        "category": "payroll"
      }
    ]
  },
  "liquidity_headroom": {
    "available_cash": 2791100,
    "target_min_balance": 2500000,
    "undrawn_committed": "5m_to_10m",
    "covenant_min_liquidity": "masked"
  },
  "actions": [
    {
      "action_id": "act_5521",
      "type": "revolver_draw",
      "amount": 1500000,
      "currency": "USD",
      "trade_date": "2024-03-14",
      "value_date": "2024-03-15",
      "approver_role": "treasurer",
      "automatic": false
    }
  ],
  "action_trigger": {
    "action_id": "act_5521",
    "constraint": "target_min_balance",
    "projected_breach_date": "2024-03-15",
    "forecast_id": "fc_2024w11",
    "recorded_in": "deal_ticket_comment",
    "inferred": false
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train and backtest cash forecasting models

Daily balances and categorized flows support rolling-origin backtests, where a model forecasts from each past date using only what had cleared.

Benchmark a model against treasury's own forecast

Saved versions give a human baseline at every horizon, so a model's error can be compared with the error treasury made on the same weeks.

Teach agents funding and liquidity decisions

Positions joined to actions and constraints form state and decision pairs: draw or repay, move cash between entities, or invest a surplus.

Categorize bank transactions

Statement lines with the category a rule or analyst assigned are labeled examples for mapping bank codes and narrative text.

Evaluate treasury copilots on held-out days

Whether Friday's payroll can be funded without a draw has a recorded answer in the position and in what treasury did.

Use-case guides: Finance and accounting agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Forecasts kept as issued

Each version is a snapshot from its issue date, not the current forecast with history filled in.

One category scheme

Forecast lines and cleared flows share categories, and the mapping rules are versioned.

Ledger and available balances

Both are present with float, so spendable cash is separable from booked cash.

Actions tied to a constraint

Each discretionary move names the limit, date or policy it answered.

Dated account structure

Accounts opened, closed or moved carry effective dates, so gaps are not read as zero balances.

Overrides flagged

Manual changes to system-generated lines are marked, separating the feed's error from the analyst's judgment.

Record timeline

Cash flow forecasting

This page covers treasury cash positions and cash forecasts.Illustrative

Saved forecasts can be scored by horizon and flow category

A bank transaction history tells you what cash did. It says nothing about what treasury expected, so it can train a forecaster but cannot grade one against the team that did the job. That needs each forecast as issued. A team that saves every version of a rolling weekly forecast has forecast each calendar week many times, first from months away and last from a few days away. Set those versions against the flows that cleared and you get an error curve by horizon, which shows how early a shortfall could have been seen. A single cash flow history holds one number per day and no record of when anyone knew it.

Flow category matters as much as horizon. Payroll and scheduled debt service are known almost to the day, and a model that matches treasury on them has shown little. Customer receipts are the hard line, because they depend on when customers choose to pay. Scoring by category shows where a model adds skill. It also separates a timing miss from an amount miss: a receipt that clears on Monday in place of Friday is wrong in two weekly buckets and right in total.

Three things spoil the pairing. Many teams update the working forecast in place, so only the latest version survives unless snapshots were saved. Elapsed buckets in an old forecast are often overwritten with actuals, which makes it look perfect and leaks the answer into training. And both sides must share a basis: the same category mapping, ledger or available balance, and exchange rate, since a forecast translated at a budget rate misses actuals translated at the day's rate even when every local flow was right.

Treasury actions record the constraint behind each move

A position and a forecast describe a situation. What treasury did about it is the decision, and it sits elsewhere in the system: the drawdown notice on a revolving credit facility, the intercompany loan that moved cash from a subsidiary with a surplus to one with a payroll to fund, the FX swap that covered a currency shortfall, the placement of excess balances in a money market fund. Joined to the position on the day, each action is a decision made in a known state.

The constraint makes the example teachable. Treasury rarely moves cash because a number looks low. It moves cash because an account would fall below its target balance, because a covenant sets a liquidity floor at a test date, because a bank cut-off was near, or because cash in one country could not be sent to the parent without tax cost or approval. Where a deal ticket, approval comment or treasury policy records that reason, a model can learn the rule and an evaluator can ask whether a cheaper move would have met it. Where nothing records it, the reason is inferred and should be marked so.

Not every transfer is a decision. Zero balance structures sweep sub-account balances to a header account automatically, and those movements can outnumber the discretionary ones. In a notional pool no cash moves, so the offset never appears as a transaction on a bank statement. A transfer between two of the company's own accounts shows up twice, as a debit and as a credit, and reads as a payment and a receipt unless the legs are linked. An FX forward agreed today settles on a later value date, so the action and its cash effect fall on different days. Ask for trade and value dates as separate fields.

What to check before licensing

  • Ask whether forecast versions were saved as issued or rebuilt later. On the sample, check that elapsed buckets in an old version hold forecast values, not actuals.
  • Confirm that bank account numbers, IBANs and bank names are replaced, and that counterparty names are masked inside statement narrative text, where payer names and invoice references usually sit.
  • Ask whether facility sizes, covenant levels or lender names appear, and have the partner confirm that the confidentiality terms of its credit agreements allow their release, or have those fields banded or removed.
  • Check whether balances are ledger or available, prior-day or intraday, and that forecast and actuals use the same basis.
  • Ask for the category mapping rules with effective dates, and measure on the sample how much flow value lands in an uncategorized line.
  • Verify that automatic sweeps are flagged and both legs of each internal transfer are linked, then ask how actions executed in a bank portal were captured.
  • If the company has listed shares or public debt, ask counsel whether recent cash positions could be material nonpublic information, and agree a lag before delivery.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

How is this different from a transaction history or a budget forecast?

It pairs short-horizon cash forecasts with the bank flows that settled them. A transaction history holds cleared flows only, with no record of what was expected. A budget or FP&A forecast is usually monthly, accrual-based and organized by cost center, and its actuals arrive after the books close. Treasury forecasts usually run by bank account in daily or weekly buckets, and bank statements can score them within days.

What horizons and bucket sizes should I specify?

Specify the ones the partner's treasury actually ran, because a forecast cannot be recreated afterwards. A common pattern is daily buckets for the near term and weekly buckets further out. State the minimum number of saved versions you need, whether direct forecasts built from receipts and disbursements are required, and whether weekly snapshots are enough.

Can I get the original bank statement files?

Sometimes, where the partner kept them and agrees. Prior-day BAI2 files, SWIFT MT940 statements and ISO 20022 camt.053 messages carry balance type codes, transaction codes and narrative text that parsed tables may drop. They also carry account numbers and counterparty names, so masking has to work inside the file structure without breaking it. A sample of original files beside the parsed tables lets you check the parsing.

How are amounts treated in de-identification?

The treatment is agreed per dataset, and it changes what you can do with the data. Scaling every amount for a company by one constant keeps ratios, percentage forecast errors and the distance to a minimum balance. Banding hides more but breaks backtests. Exact amounts are the most useful and the most identifying. Ask for the method to be stated.

Does the data say why treasury made each move?

Only where the reason was written down. Some treasury systems hold a comment on the deal ticket or an approval note, and treasury policies state target balances and hedge rules. Other reasons live in email. Where a reason is inferred from the position, such as a draw the day before a projected breach of a minimum balance, ask for it to be marked as inferred.

Can positions from several entities and currencies be used together?

Yes, with the structure kept. Group treasuries manage many legal entities, banks and currencies, and the hard questions are about moving cash between them. Each account needs its entity, currency and role, each internal transfer needs both legs linked, and translation rates should travel with the positions. Ask whether any cash is restricted or cannot leave its country.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies