架构操练Kata:金融风险系统

2018-03-10  本文已影响0人  程序员吾真本

(译自Simon Brown的Software Architecture for Developers II;译者:伍斌)
背景
一家办公室设在伦敦、纽约和新加坡的全球投资银行,与其他银行(交易对手)进行金融产品交易(买卖)。当股票市场的股价上涨或下跌时,银行要么赚钱要么赔钱。在每个工作日结束时,银行需要通过对所持有的交易数据进行一些计算,以了解他们所面临的风险(例如赔了多少钱)。该银行现拥有“交易数据系统”(TDS)和“参考数据系统”(RDS),但需要一个新的“风险系统”。

功能要求
新的“风险系统”的功能要求如下。
1.从“交易数据系统”导入交易数据。
2.从“参考数据系统”导入交易对手数据。
3.将两组数据结合在一起,用交易对手方的信息丰富交易数据。
4.对于每个交易对手,计算银行所面临的风险。
5.生成可导入Microsoft Excel的报告,其中包含银行已知的所有交易对手的风险数据。
6.在新加坡的下一个交易日(上午9点)开始之前将报告分发给商业用户。
7.为部分业务用户提供配置和维护风险计算所使用的外部参数的方法。

非功能性要求
新“风险系统”的非功能性要求如下:

Financial Risk System
(Software Architecture for Developers II by Simon Brown)
Background
A global investment bank based in London, New York and Singapore trades (buys and sells) financial products with other banks (counterparties). When share prices on the stock markets move up or down, the bank either makes money or loses it. At the end of the working day, the bank needs to gain a view of how much risk they are exposed to (e.g. of losing money) by running some calculations on the data held about their trades. The bank has an existing Trade Data System (TDS) and Reference Data System (RDS) but need a new Risk System.

Functional Requirements
The high-level functional requirements for the new Risk System are as follows.

  1. Import trade data from the Trade Data System.”
  2. Import counterparty data from the Reference Data System.
  3. Join the two sets of data together, enriching the trade data with information about the counterparty.
  4. For each counterparty, calculate the risk that the bank is exposed to.
  5. Generate a report that can be imported into Microsoft Excel containing the risk figures for all counterparties known by the bank.
  6. Distribute the report to the business users before the start of the next trading day (9am) in Singapore.
  7. Provide a way for a subset of the business users to configure and maintain the external parameters used by the risk calculations.

Non-functional Requirements
The non-functional requirements for the new Risk System are as follows.

上一篇 下一篇

猜你喜欢

热点阅读