# End-of-Day Batch Processing

> End-of-day batch processing is this article's name for running together, after the day's trades are closed, the jobs a financial institution performs every day. They include jobs that rules and sources describe as daily, such as calculating valuations, risk measures, and collateral amounts and preparing reporting data, and are kept separate from online processing. Among jobs that depend on one another, a delay in an earlier job delays the later jobs.

- URL: https://www.derivatives-compass.org/en/data-systems/end-of-day-batch/
- Area: Data and Systems › System Architecture
- Last reviewed: 2026-11-27
- 日本語版: https://www.derivatives-compass.org/ja/data-systems/end-of-day-batch/index.md

When collateral amounts or daily report figures differ from the previous day, the dependencies among the jobs show which value in which job is the source. On a day when a job is delayed or fails, the same dependencies help you estimate how far the effect reaches.

**Prerequisites**

- [Front-to-Back System Architecture](https://www.derivatives-compass.org/en/data-systems/system-architecture/) — To know the trading, risk, confirmation and settlement, and accounting systems, and how data passes between them.
- [Market Data Management](https://www.derivatives-compass.org/en/data-systems/market-data-management/) — To know how the market data that the first end-of-day job loads is obtained and checked.

## Key points

- Rules set out daily hypothetical P&L and collateral amount calculation, and backtesting uses daily values.
- The collateral amount comes from the total market value of the trades, and the daily report carries valuations and collateral amounts.
- On JSCC interest rate swaps, yen variation margin is due at 11:00 on the business day after the calculation date.

## Processing that runs every day

Processing that responds on the spot to user actions is online processing, and processing that runs in bulk, without waiting for user actions, is batch processing. [End-of-day batch processing](https://www.derivatives-compass.org/en/glossary/end-of-day-batch/) is the batch processing that uses values as of the close of the day's trading.

Rules and sources set out the following as daily jobs or as jobs that use daily values. Which row applies to your institution is determined by the "Who it applies to" column.

| Job                                                                         | What is done daily                                                                                                                                                                                                                                                           | Who it applies to                                                                                                                                                             |
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Calculating hypothetical P\&L                                               | Find the daily P\&L from revaluing the previous day's closing [positions](https://www.derivatives-compass.org/en/glossary/position/) with the current day's closing [market data](https://www.derivatives-compass.org/en/glossary/market-data/) (hypothetical P\&L)          | Banks that use the internal models approach for market risk[^kokuji-92]                                                                                                       |
| [Backtesting](https://www.derivatives-compass.org/en/glossary/backtesting/) | Compare the daily [VaR](https://www.derivatives-compass.org/en/glossary/value-at-risk/) over the latest 250 business days with daily hypothetical P\&L and with actual P\&L found in the daily P\&L process                                                                  | Same as above[^kokuji-275]                                                                                                                                                    |
| Capturing risk equivalents                                                  | Capture the market risk equivalent and the counterparty risk equivalent every business day                                                                                                                                                                                   | [Financial instruments business operators](https://www.derivatives-compass.org/en/glossary/financial-instruments-business-operator/)[^fibo-178]                               |
| Calculating collateral amounts                                              | For each counterparty, calculate every day the total [market value](https://www.derivatives-compass.org/en/glossary/mark-to-market/) of the transactions and the total market value of [variation margin](https://www.derivatives-compass.org/en/glossary/variation-margin/) | Financial instruments business operators and similar firms that trade non-cleared [OTC derivatives](https://www.derivatives-compass.org/en/glossary/otc-derivative/)[^cao-vm] |

## Dependencies among jobs

The collateral amount comes from the total market value of the transactions, and the daily report carries valuations and collateral amounts[^cao-vm][^gl-action].

**Figure 1: Dependencies among end-of-day values**

The result of recalculating valuations passes in parallel to the aggregation of daily P\&L and to the collateral amount calculation, The daily report receives the values that passed through the collateral amount calculation and the valuation values. The figure draws only the line from the collateral amount calculation to the report.

Go deeper: [Risk Calculation Infrastructure: Full Revaluation, Approximation, and Distributed Computing](https://www.derivatives-compass.org/en/data-systems/risk-calculation-infrastructure/)

## Effects of delays and preparation

Among jobs that depend on one another, when an earlier job is delayed, the later jobs that use its values cannot start either.

Consider a hypothetical example in which three non-cleared interest rate swaps with one counterparty have market values of +800 million yen, −300 million yen, and +200 million yen on the previous day, and +500 million yen, −300 million yen, and +100 million yen on the current day. The market value of variation margin (VM) already received is 500 million yen, and the [minimum transfer amount](https://www.derivatives-compass.org/en/glossary/minimum-transfer-amount/) is 50 million yen. A positive market value means your institution is the side that receives. In this example, the mismatch between the total market value and the VM already received is taken as the amount to request or return.

Calculated with the current day's values, the total market value is, in units of 100 million yen, 5 − 3 + 1 = +3, or +300 million yen. The 500 million yen of VM already received is 200 million yen more than this total, so your institution returns 200 million yen.

Suppose the loading of market data is delayed and the calculation uses the previous day's values. The total market value is then, in the same units, 8 − 3 + 2 = +7, or +700 million yen. The 500 million yen of VM already received falls 200 million yen short, so your institution requests 200 million yen. The mismatch exceeds the minimum transfer amount, so it falls under the rule that calls for an immediate request[^cao-vm]. With the current day's values your institution would return that amount, so the direction reverses and the amounts differ by 400 million yen.

For transactions cleared through a central counterparty, payments and receipts have deadlines. Under Article 81, paragraph 1 of its business rules for interest rate swaps, [Japan Securities Clearing Corporation](https://www.derivatives-compass.org/en/glossary/jscc/) (JSCC) sets the deadline for a clearing participant that is the paying side to deposit variation margin at 11:00 on the next business day after the calculation date[^jscc-81]. The deadline for yen-denominated deposits is fixed by that article.

However, JSCC may change settlement deadlines temporarily when a system failure or similar event occurs[^jscc-113]. For foreign-currency-denominated cleared contracts, the rules also let JSCC postpone the deadline of a clearing participant that did not complete a deposit, if JSCC finds it appropriate[^jscc-85]. The steps for payments and receipts by the deadlines are covered on the [Collateral Operations](https://www.derivatives-compass.org/en/internal-operations/collateral-operations/) page.

Among the points of focus in the [supervisory guidelines](https://www.derivatives-compass.org/en/glossary/supervisory-guidelines/), one check on the contingency plan (a plan for unexpected events) of a bank or a financial instruments business operator is whether it assumes adequate risk scenarios, such as a major delay in batch processing[^fsa-batch][^fsa-batch-kin].

## Background: the Bank of Japan's 2007 assumed cases

In a March 2007 document, the [Bank of Japan](https://www.derivatives-compass.org/en/glossary/boj/) compiled assumed cases of system failures at financial institutions, based on cases it saw in examinations and similar work. The cases are not limited to derivatives and include ATM systems. The assumed cases that involved batch processing were as follows[^boj-cases].

| Assumed case                                   | What happened                                                                                                                                                                                 | Countermeasure the document lists                                                                                         |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| Conflict between ad hoc and regular batch jobs | Both ended abnormally, and because the job could not be started after business start time by design, it could not be rerun and the start of business was greatly delayed.                     | Before ad hoc work, check its effect on parallel work, and state the conditions for a rerun in the work procedure manual. |
| Abnormal batch end after a CPU upgrade         | Response time became extremely short, and the checking program, with too few digits, read it as 0 seconds and ended abnormally. The tests had covered only online processing.                 | When changing the system, run impact tests on the whole system, including batch processing.                               |
| Wrong timing of registering a batch program    | A program that should have been registered in production after business ended on the business day before the service started was run during the day on the start date, and an error occurred. | Create a release procedure manual and set up a system to verify it.                                                       |
| Setting the system start-up time               | Batch processing finished 6 hours before online processing started, but start-up was 2 hours before, and recovery from a failure was not in time for the start of business.                   | Set the start-up time so that, including the recovery time if it fails, it is in time for the start of business.          |

## Background: US valuation guidance, 1998 to 2003

The 1998 examination manual of the US Federal Reserve Board said that, except for some illiquid products, positions should be revalued at least daily[^frb-mtm].

The manual described determining market value as an intraday activity traders perform to monitor their positions, and also as a daily activity management staff perform to check the effect on profit and loss[^frb-intraday].

The same section, dated April 2003, said that the time of valuation should be aligned. A [hedging](https://www.derivatives-compass.org/en/glossary/hedging/) transaction and the transaction it hedges should be valued as of the same time, even when the exchanges' closing times differ. Instruments in the same trading portfolio should also be valued as of the same time, even when they trade in different places[^frb-cutoff].

## What this article does not cover

- The content and deadlines of trade reporting are not covered on this page. They are covered on the [Regulatory Reporting](https://www.derivatives-compass.org/en/internal-operations/regulatory-reporting/) page.
- The classification of loss events, including system failures, is not covered on this page. It is covered on the [Operational Risk in Derivatives](https://www.derivatives-compass.org/en/operational-risk/operational-risk-overview/) page.

[^kokuji-92]: ["銀行法第十四条の二の規定に基づき、銀行がその保有する資産等に照らし自己資本の充実の状況が適当であるかどうかを判断するための基準"](https://www.fsa.go.jp/policy/basel_ii/ginkou1_4.pdf) (Financial Services Agency Notice No. 19 of 2006, updated August 24, 2026; the "Capital Adequacy Notice", in Japanese), Article 1, items 92 (hypothetical P\&L) and 95 (actual P\&L), pages 24–25.

[^kokuji-275]: [The Capital Adequacy Notice](https://www.fsa.go.jp/policy/basel_ii/ginkou1_4.pdf), Article 275-2, paragraph 1 (firm-wide backtesting, page 460) and Article 275-3, paragraph 1 (by trading desk, page 461). It applies to banks that use the internal models approach.

[^fibo-178]: ["金融商品取引業等に関する内閣府令"](https://laws.e-gov.go.jp/law/419M60000002052) (Cabinet Office Order on Financial Instruments Business, etc.; the "FIB Cabinet Office Order", in Japanese), Article 178, paragraph 2.

[^cao-vm]: [The FIB Cabinet Office Order](https://laws.e-gov.go.jp/law/419M60000002052), Article 123, paragraph 1, item 21-10(a) (daily calculation) and (b) (request immediately when the amount exceeds the amount set in advance by the parties).

[^gl-action]: [Financial Services Agency, "店頭デリバティブ取引等の規制に関する内閣府令第４条第１項で定める作成・保存・報告事項 ガイドライン"](https://www.fsa.go.jp/news/r5/shouken/20231121/05.pdf) (Guidelines on the items to be prepared, retained, and reported under Article 4, paragraph 1 of the Cabinet Office Order on the regulation of OTC derivatives transactions, our translation; established December 2022, revised November 2023, in Japanese), Annex 1, item 101, definition of "Action type" (page 27, PDF page 31).

[^jscc-81]: [Japan Securities Clearing Corporation, "金利スワップ取引清算業務に関する業務方法書"](https://www.jpx.co.jp/jscc/kisoku/cimhll00000001ow-att/01_irsgyoumuhouhousyo.pdf) (Business Rules for Interest Rate Swap Clearing; the "JSCC Business Rules", in Japanese), Article 81, paragraph 1 (page 67). For foreign-currency-denominated cleared contracts, the deadline is 11:00 on the first business day of JSCC that is also a home-country business day of the currency after the calculation date.

[^jscc-113]: [The JSCC Business Rules](https://www.jpx.co.jp/jscc/kisoku/cimhll00000001ow-att/01_irsgyoumuhouhousyo.pdf), Article 113 (page 94). JSCC notifies all clearing participants before the change.

[^jscc-85]: [The JSCC Business Rules](https://www.jpx.co.jp/jscc/kisoku/cimhll00000001ow-att/01_irsgyoumuhouhousyo.pdf), Article 85-5, paragraph 1 (page 72). The deadline moves to the same time on the first business day of JSCC after the day the deposit was not completed that is also a home-country business day of the currency.

[^fsa-batch]: [Financial Services Agency, "主要行等向けの総合的な監督指針"](https://www.fsa.go.jp/common/law/city.pdf) (Comprehensive Guidelines for Supervision of Major Banks, etc., in Japanese), III-3-7-1-2 (9) (3) (November 2026), page 268.

[^fsa-batch-kin]: [Financial Services Agency, "金融商品取引業者等向けの総合的な監督指針"](https://www.fsa.go.jp/common/law/guide/kinyushohin.pdf) (Comprehensive Guidelines for Supervision of Financial Instruments Business Operators, etc., in Japanese), III-2-8-1 (1) (9) (iii) (November 2026), page 82.

[^boj-cases]: Bank of Japan, Financial System and Bank Examination Department, ["事例からみたコンピュータ・システム・リスク管理の具体策"](https://www.boj.or.jp/research/brp/ron_2007/ron0703a.htm) (Concrete measures for computer system risk management, based on cases; our translation) (March 2007), Annex 1, "想定される障害事例と対応策" (in Japanese). The conflict between ad hoc and regular batch jobs and the start-up time are on PDF page 20, the CPU upgrade on PDF page 17, and the release of batch programs on PDF pages 13 and 23.

[^frb-mtm]: [Board of Governors of the Federal Reserve System, "Trading and Capital-Markets Activities Manual"](https://www.federalreserve.gov/boarddocs/supmanual/trading/trading.pdf) (the "FRB Manual"), Section 2100.1 (February 1998), page 2, "Daily Mark-to-Market Process."

[^frb-intraday]: [The FRB Manual](https://www.federalreserve.gov/boarddocs/supmanual/trading/trading.pdf), Section 2060.1 (February 1998), page 6.

[^frb-cutoff]: [The FRB Manual](https://www.federalreserve.gov/boarddocs/supmanual/trading/trading.pdf), Section 2100.1 (April 2003), page 3.

**Read next**

- [Daily Valuation and P\&L Sign-Off](https://www.derivatives-compass.org/en/internal-operations/daily-valuation-and-pnl/) — To know how an independent unit checks and signs off the valuations and P\&L that the end-of-day jobs produce.
- [Collateral Operations](https://www.derivatives-compass.org/en/internal-operations/collateral-operations/) — To know the daily collateral amount calculation and the steps for payments and receipts by the deadlines.

## Sources

- [銀行法第十四条の二の規定に基づき、銀行がその保有する資産等に照らし自己資本の充実の状況が適当であるかどうかを判断するための基準](https://www.fsa.go.jp/policy/basel_ii/ginkou1_4.pdf) — 金融庁
- [金融商品取引業等に関する内閣府令](https://laws.e-gov.go.jp/law/419M60000002052) — e-Gov 法令検索（デジタル庁）
- [店頭デリバティブ取引等の規制に関する内閣府令第４条第１項で定める作成・保存・報告事項 ガイドライン（2023 年 11 月改訂版）](https://www.fsa.go.jp/news/r5/shouken/20231121/05.pdf) — 金融庁
- [金利スワップ取引清算業務に関する業務方法書](https://www.jpx.co.jp/jscc/kisoku/cimhll00000001ow-att/01_irsgyoumuhouhousyo.pdf) — 日本証券クリアリング機構
- [主要行等向けの総合的な監督指針](https://www.fsa.go.jp/common/law/city.pdf) — 金融庁
- [金融商品取引業者等向けの総合的な監督指針](https://www.fsa.go.jp/common/law/guide/kinyushohin.pdf) — 金融庁
- [事例からみたコンピュータ・システム・リスク管理の具体策](https://www.boj.or.jp/research/brp/ron_2007/ron0703a.htm) — 日本銀行
- [Trading and Capital-Markets Activities Manual](https://www.federalreserve.gov/boarddocs/supmanual/trading/trading.pdf) — Board of Governors of the Federal Reserve System
