Search Results yield_to_discount_factor_short




Overview

XTR_RATE_CONVERSION is a PL/SQL package body owned by APPS in Oracle E-Business Treasury Management (ETRM). It provides the arithmetic engine that converts interest rate quotations between the many conventions used in money markets, bond markets, and derivative pricing. Its declared purpose is to translate a rate expressed under one quoting basis into the equivalent rate under another, so that deals, instruments, and cash flows can be compared and priced on a common footing. The package head file references the 2005 header revision, and the body is shipped as part of the ETRM schema in both 12.1.1 and 12.2.2.

The package is a pure computational utility. It holds no persistent state, opens no cursors, and performs no DML. Its procedures receive scalar numeric inputs and return scalar numeric results, making it safe to call from SQL, PL/SQL, forms, and concurrent programs alike. It is referenced by nine other packages within the ETRM schema, which indicates it sits near the bottom of the dependency hierarchy as a shared calculation library rather than as a business-process driver.

Key Procedures and Functions

The metadata documents seventeen callable units. They fall into three groups.

Tables Accessed

The documented metadata records no referenced tables for this package. This is consistent with its role as a stateless calculation library: all inputs are passed as parameters, and all outputs are returned to the caller. No APPS synonyms, base tables, or views are read or written, so the package introduces no row-level locking, no read consistency exposure, and no performance dependence on table statistics. Any persistence of converted rates occurs in the calling package or form.

Usage Notes

Because the package is declared in APPS and has no table dependency, it is normally invoked indirectly. The nine referencing packages call it during deal capture, instrument valuation, and rate setting, where a rate entered in one convention must be stored or displayed in another. It may also be called from Oracle Forms through the ETRM rate fields, from concurrent programs that reprice or revalue portfolios, and from custom PL/SQL or SQL expressions that need a consistent conversion formula. Callers should note that inputs are unvalidated numeric scalars: a zero annual basis, a zero day count, or a rate that drives the denominator to zero will raise a numeric error or division-by-zero at the call site. Because results are returned through NOCOPY OUT parameters in some routines, callers must treat the output parameter as undefined if the procedure raises an exception.