TreasuryBill
in package
Table of Contents
Methods
- bondEquivalentYield() : float|string
- TBILLEQ.
- price() : float|string
- TBILLPRICE.
- yield() : string|float
- TBILLYIELD.
Methods
bondEquivalentYield()
TBILLEQ.
public
static bondEquivalentYield(mixed $settlement, mixed $maturity, mixed $discount) : float|string
Returns the bond-equivalent yield for a Treasury bill.
Parameters
- $settlement : mixed
-
The Treasury bill's settlement date. The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
- $maturity : mixed
-
The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.
- $discount : mixed
-
The Treasury bill's discount rate
Return values
float|string —Result, or a string containing an error
price()
TBILLPRICE.
public
static price(mixed $settlement, mixed $maturity, mixed $discount) : float|string
Returns the price per $100 face value for a Treasury bill.
Parameters
- $settlement : mixed
-
The Treasury bill's settlement date. The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
- $maturity : mixed
-
The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.
- $discount : mixed
-
The Treasury bill's discount rate
Return values
float|string —Result, or a string containing an error
yield()
TBILLYIELD.
public
static yield(mixed $settlement, mixed $maturity, float|string $price) : string|float
Returns the yield for a Treasury bill.
Parameters
- $settlement : mixed
-
The Treasury bill's settlement date. The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
- $maturity : mixed
-
The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.
- $price : float|string
-
The Treasury bill's price per $100 face value