public final class BillSecurity extends Object implements LegalEntitySecurity, org.joda.beans.ImmutableBean, Serializable
A bill is a financial instrument that represents a unique fixed payment.
| Modifier and Type | Class and Description |
|---|---|
static class |
BillSecurity.Builder
The bean-builder for
BillSecurity. |
static class |
BillSecurity.Meta
The meta-bean for
BillSecurity. |
| Modifier and Type | Method and Description |
|---|---|
static BillSecurity.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
BillPosition |
createPosition(PositionInfo positionInfo,
double longQuantity,
double shortQuantity,
ReferenceData refData)
Creates a position based on this security from a long and short quantity.
|
BillPosition |
createPosition(PositionInfo positionInfo,
double quantity,
ReferenceData refData)
Creates a position based on this security from a net quantity.
|
Bill |
createProduct(ReferenceData refData)
Creates the product associated with this security.
|
BillTrade |
createTrade(TradeInfo info,
double quantity,
double tradePrice,
ReferenceData refData)
Creates a trade based on this security.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency that the security is traded in.
|
DayCount |
getDayCount()
Gets the day count convention applicable.
|
SecurityInfo |
getInfo()
Gets the standard security information.
|
LegalEntityId |
getLegalEntityId()
Gets the legal entity identifier.
|
AdjustablePayment |
getNotional()
Gets the adjustable notional payment of the bill notional, the amount must be positive.
|
DaysAdjustment |
getSettlementDateOffset()
Gets the number of days between valuation date and settlement date.
|
ImmutableSet<SecurityId> |
getUnderlyingIds()
Gets the set of underlying security identifiers.
|
BillYieldConvention |
getYieldConvention()
Gets yield convention.
|
int |
hashCode() |
static BillSecurity.Meta |
meta()
The meta-bean for
BillSecurity. |
BillSecurity.Meta |
metaBean() |
BillSecurity.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
BillSecurity |
withInfo(SecurityInfo info)
Returns an instance with the specified info.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSecurityIdpublic Currency getCurrency()
SecuritygetCurrency in interface Securitypublic ImmutableSet<SecurityId> getUnderlyingIds()
SecurityThe set must contain all the security identifiers that this security directly refers to. For example, a bond future will return the identifiers of the underlying basket of bonds, but a bond future option will only return the identifier of the underlying future, not the basket.
getUnderlyingIds in interface Securitypublic BillSecurity withInfo(SecurityInfo info)
SecuritywithInfo in interface LegalEntitySecuritywithInfo in interface Securityinfo - the new infopublic Bill createProduct(ReferenceData refData)
SecurityThe product of a security is distinct from the security. The product includes the financial details from this security, but excludes the additional information. The product also includes the products of any underlying securities.
createProduct in interface SecurityrefData - the reference data used to find underlying securitiespublic BillTrade createTrade(TradeInfo info, double quantity, double tradePrice, ReferenceData refData)
SecurityThis creates a trade of a suitable type for this security.
createTrade in interface Securityinfo - the trade informationquantity - the number of contracts in the tradetradePrice - the price agreed when the trade occurredrefData - the reference data used to find underlying securitiespublic BillPosition createPosition(PositionInfo positionInfo, double quantity, ReferenceData refData)
SecurityThis creates a position of a suitable type for this security.
createPosition in interface SecuritypositionInfo - the position informationquantity - the number of contracts in the positionrefData - the reference data used to find underlying securitiespublic BillPosition createPosition(PositionInfo positionInfo, double longQuantity, double shortQuantity, ReferenceData refData)
SecurityThis creates a position of a suitable type for this security.
The long quantity and short quantity must be zero or positive, not negative.
createPosition in interface SecuritypositionInfo - the position informationlongQuantity - the long quantity in the positionshortQuantity - the short quantity in the positionrefData - the reference data used to find underlying securitiespublic static BillSecurity.Meta meta()
BillSecurity.public static BillSecurity.Builder builder()
public BillSecurity.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityInfo getInfo()
This includes the security identifier.
public AdjustablePayment getNotional()
public DayCount getDayCount()
The conversion from dates to a numerical value is made based on this day count.
public BillYieldConvention getYieldConvention()
The convention defines how to convert from yield to price and inversely.
public LegalEntityId getLegalEntityId()
This identifier is used for the legal entity that issues the bill.
getLegalEntityId in interface LegalEntitySecuritypublic DaysAdjustment getSettlementDateOffset()
It is usually one business day for US and UK bills and two days for Euroland government bills.
public BillSecurity.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.