Sudha Rayarao  /  Projects  /  CitiFTP

CitiFTP: Funds Transfer Pricing Platform

A case study of my work as a Business Analyst on a global, centralized funds transfer pricing engine. It runs on a Hadoop/Spark big-data platform and prices every contract on a global bank's balance sheet, every day.

Role: Business Analyst (Infosys, client Citi) Oct 2021 to present Banking · Treasury · Data Warehouse

At a glance

One global platformreplacing several legacy transfer-pricing processes and spreadsheet tools (EUCs)
Hundreds of millionsof contract records processed every business day
Every product, every regiondeposits, loans, cards, mortgages, overdrafts and more, across EMEA, APAC, LATAM and NAM
Three pricing componentsinterest rate, liquidity premium and liquidity cost allocation

Contents

  1. The business problem: what is FTP?
  2. Why a central platform
  3. My role
  4. Technical architecture
  5. The daily processing pipeline
  6. Key design concepts
  7. Data quality and control reports
  8. Maintenance UI and maker-checker workflow
  9. Global rollouts
  10. Process improvement: Python Excel Builder
  11. Outcomes
  12. Skills and tools used

1. The business problem: what is funds transfer pricing?

A bank earns money on the spread. On a loan it collects interest from the customer but has to fund that loan with money that costs something. On a deposit it pays the customer interest but can invest that money for a higher return. Each loan, deposit or card account is a contract (also called an arrangement).

Different business units bring in that money. Liability units gather deposits and asset units make loans. These units are good at serving customers, but they don't manage the bank's funding or its exposure to market rates. Treasury does that. Treasury pools the money from every business: it pays the deposit businesses for the funds they bring in and charges the lending businesses for the funds they use.

Funds transfer pricing (FTP) is the internal pricing that makes this fair. For each contract, FTP works out a benchmark "transfer rate" that matches the contract's currency, tenor and repricing profile. The gap between the customer rate and the transfer rate is the business unit's margin. Treasury takes on the interest-rate and liquidity risk and earns or pays the rest. If FTP is wrong, the bank can't tell which products, branches or businesses are really profitable.

A simple worked example (illustrative numbers)

ContractCustomer rateTransfer rateBusiness unit marginWho carries the market risk
1-year term deposit, $1,000,0004.00% paid4.25% credited+0.25% ≈ $2,500 / yrTreasury
1-year loan, $1,000,0007.00% received4.40% charged+2.60% ≈ $26,000 / yrTreasury

Products like recurring deposits or amortizing loans are harder. The balance and remaining tenor change every month, so each slice of the balance needs its own transfer rate. That's why FTP runs daily at the contract level rather than as a monthly estimate.

What gets priced

The results are tickets: priced records with rates and revenue. These turn into P&L allocations and journal entries that post to the general ledger, profitability, treasury and risk systems.

2. Why a central platform

Before

  • Transfer pricing was spread across several legacy systems and manual spreadsheets.
  • Methods and rate sources varied by region and product.
  • Data came from many product processors and offline sources.
  • TP P&L was reported at different levels of detail, so it was hard to trace back to the underlying balances.

After

  • One system for every business, product and legal entity.
  • One data source per major product, in line with the bank's target architecture.
  • Daily, granular postings, so balance sheet changes show up in FTP within a day or two.
  • One consistent method that follows the bank's FTP policy, using published rate curves that stakeholders can review.
  • Fewer manual adjustments and spreadsheets, and less operational risk.

3. My role

I work as the Business Analyst between the business (Treasury, business controllers and finance users) and the technology teams that build and run the platform. My focus is on making sure the data is correct and each release is ready for production.

4. Technical architecture

CitiFTP is a multi-tier application. A web front end lets the business maintain parameters, and a big-data back end does the heavy end-of-day processing.

Web UI

Single sign-on front end where users maintain portfolios, assignments, assumptions and mappings. It also has a few built-in reports.

Middle tier

Java web services running on the bank's enterprise container platform. This layer holds the UI business logic.

Oracle database

Stores the user-maintained parameters and reference data (hierarchies, holidays, market rates), plus the data for UI reports.

SFTP landing zone

Where upstream product and ledger feeds arrive before they are checked for compliance and picked up.

Big-data platform

Hadoop/HDFS with Java Spark for every core process: model assignment, ticketing and allocations. Hive and Impala tables sit on top of the files for SQL access.

Orchestration

Autosys jobs and schedules run the daily process from start to finish.

Reporting

Tableau for summary reports, an inquiry framework for detailed extracts, and control reports for operations teams.

The UI/Oracle side and the big-data side are separate: neither can read the other directly. Data passes between them through scheduled Sqoop exports and imports (see key design concepts).

5. The daily processing pipeline

Contract feeds arrive every business day in packages. A package groups countries in nearby time zones, so each region can be processed once its data is in, without waiting for the whole world. Within each package the feeds are split by product. The platform processes each package from start to finish on its own.

1Ingest & pre-processFeeds land on SFTP, pass completeness and accuracy checks, and load into the raw layer.
2Holiday adjust & mergeBalances are adjusted for country holidays. Daily feeds are merged with month-end anchor data, monthly balances and manually uploaded contracts.
3Filter & enrichRows that are out of scope are removed by configuration. Missing attributes are filled in and known data-quality issues are fixed.
4Model & portfolio assignmentEach contract goes into a model or portfolio for each pricing component and gets its treasury accounting code.
5Balance & ticketingCore and stable balances are calculated, then tickets are written with transfer rates from published curves (term, rollover, reverse and more).
6P&L allocationTicket P&L is split into business-side and treasury-side records. Aggregate P&L is spread back to contracts pro rata.
7Ledger & downstream feedsJournal header and detail files go to the strategic ledger. Treasury and risk systems get ticket and balance feeds.
8Reporting & controlSummary and detailed reports go out, along with control reports that operations teams check before sign-off.

The pipeline also has an intraday path. Contracts booked during the day can get same-day transfer pricing tickets, and those tickets link to the end-of-day tickets for the same contracts.

Model assignment in more detail

Model assignment is the first and most important step. Contracts are grouped into models based on their business-unit, segment and geography hierarchies, account, legal entity, accounting code, currency and a few product attributes. Each model sets one pricing method. This means the business defines its rules once per model instead of once per contract, and the engine can process a very large book efficiently. There are separate assignments for interest-rate pricing, liquidity premium, liquidity units and treasury counterparty. After assignment, contracts are combined to remove duplicates and passed to the ticketing engines.

6. Key design concepts

Reference-data refresh (Sqoop in, Sqoop out)

Each day starts with a refresh reference data job. It exports the user-maintained parameters from Oracle as flat files into HDFS so the Spark processes can read them. The core processing can't start until this job succeeds. When a package finishes, the results the UI needs are imported back into Oracle. Both jobs can be re-run, and each run clears what was loaded before.

Effective dating

Every maintenance change in the UI has an effective date. A change saved today with a later effective date stays in Oracle but isn't sent for processing until the platform's business date reaches it. This lets the business stage changes ahead of time and keeps each day's run reproducible.

Write-once storage

HDFS stores files, not tables you can update. You can't change one row. To correct anything, you re-run the process that created the file, and it rewrites the whole output. Hive and Impala tables on top of the files give analysts SQL access. This affects how we plan fixes, re-runs and validation.

Month-end anchoring and manual contracts

Some balances only arrive in month-end feeds, and some aren't covered by any system feed. Month-end data is processed into "anchor" files that are added to each daily run. Users can upload manual contracts through the UI, and these are re-processed daily until they are replaced. Together these give complete balance-sheet coverage.

7. Data quality and control reports

Operations teams use control reports to watch each day's run and catch problems before results reach the ledger. One of the first is a pre-assignment balance report. It is regenerated each time a product feed arrives in a package, so a problem can be caught early.

As a BA I used these reports with my own SQL reconciliations in Hue/Impala and Oracle. I traced breaks back through the layers to the source feed, confirmed fixes and signed off releases.

8. Maintenance UI and maker-checker workflow

All business configuration goes through a controlled workflow in the CitiFTP UI. It covers portfolio definitions and assignments, model and treasury code mappings, rate and curve setup, filter rules, ticket adjustments and migrations, and manual contracts.

9. Global rollouts

Business units move to CitiFTP country by country, and their legacy transfer pricing is switched off as they go. I have supported go-lives across EMEA, APAC, LATAM and NAM, including Canada, Germany, Ireland, Singapore and Hong Kong, with no critical issues during stabilization. Each rollout follows a repeatable plan:

10. Process improvement: Python Excel Builder

Several reports were built by an "Excel Builder" framework that merged many CSV extracts into one formatted workbook. It depended on several infrastructure layers and support teams, so it was slow to change and hard to support:

The replacement is a standalone Python and Pandas tool. It reads a configuration of reports, sheets and source files, merges the CSVs, applies formatting and writes the workbook. It has no external runtime dependencies, so the team can run and fix it themselves, and it handles much larger files.

11. Outcomes

12. Skills and tools used

Funds Transfer PricingTreasury & Balance SheetProfitability / P&L Requirements AnalysisUAT / SITData ReconciliationSource-to-Target Validation Data LineageSQLOracleHive / HQLApache ImpalaHue Hadoop / HDFSSparkSqoopAutosysUnix / LinuxSecure File Transfer TableauPython / PandasJIRAConfluenceAgile ScrumGo-live Coordination

This is a general description written for my portfolio. It doesn't include confidential client information such as internal system names, data, figures, code or screenshots, and the example numbers are made up.