Uses of Class
com.opengamma.strata.basics.date.MarketTenor
-
Packages that use MarketTenor Package Description com.opengamma.strata.basics.date Tools for working with dates.com.opengamma.strata.loader Tools for loading data from files.com.opengamma.strata.product.deposit.type Conventions and templates to aid the construction of deposits.com.opengamma.strata.product.fx.type Conventions and templates to aid the construction of foreign exchange products. -
-
Uses of MarketTenor in com.opengamma.strata.basics.date
Fields in com.opengamma.strata.basics.date declared as MarketTenor Modifier and Type Field Description static MarketTenor
MarketTenor. ON
A tenor code for Overnight, meaning from today to tomorrow.static MarketTenor
MarketTenor. SN
A tenor code for Spot-Next, meaning from the spot date to the next day.static MarketTenor
MarketTenor. SW
A tenor code for Spot-Week, meaning one week starting from the spot date.static MarketTenor
MarketTenor. TN
A tenor code for Tomorrow-Next, meaning from tomorrow to the next day.Methods in com.opengamma.strata.basics.date that return MarketTenor Modifier and Type Method Description static MarketTenor
MarketTenor. ofSpot(Tenor tenor)
Obtains an instance from aTenor
with spot implied.static MarketTenor
MarketTenor. ofSpotDays(int days)
Obtains an instance from a number of days from spot.static MarketTenor
MarketTenor. ofSpotMonths(int months)
Obtains an instance from a number of months from spot.static MarketTenor
MarketTenor. ofSpotYears(int years)
Obtains an instance from a number of years from spot.static MarketTenor
MarketTenor. parse(String toParse)
Parses a formatted string representing the market tenor.Methods in com.opengamma.strata.basics.date with parameters of type MarketTenor Modifier and Type Method Description int
MarketTenor. compareTo(MarketTenor other)
Compares this market tenor to another market tenor. -
Uses of MarketTenor in com.opengamma.strata.loader
Methods in com.opengamma.strata.loader that return MarketTenor Modifier and Type Method Description static MarketTenor
LoaderUtils. parseMarketTenor(String str)
Parses a market tenor from the input string.Methods in com.opengamma.strata.loader that return types with arguments of type MarketTenor Modifier and Type Method Description static Optional<MarketTenor>
LoaderUtils. tryParseMarketTenor(String str)
Tries to parse a market tenor from the input string. -
Uses of MarketTenor in com.opengamma.strata.product.deposit.type
Methods in com.opengamma.strata.product.deposit.type with parameters of type MarketTenor Modifier and Type Method Description default TermDepositTrade
TermDepositConvention. createTrade(LocalDate tradeDate, MarketTenor marketTenor, BuySell buySell, double notional, double rate, ReferenceData refData)
Creates a trade based on this convention using a market tenor, such as ON, TN, SN, SW or 1M. -
Uses of MarketTenor in com.opengamma.strata.product.fx.type
Methods in com.opengamma.strata.product.fx.type with parameters of type MarketTenor Modifier and Type Method Description default FxSwapTrade
FxSwapConvention. createTrade(LocalDate tradeDate, MarketTenor marketTenor, BuySell buySell, double notional, double nearFxRate, double farLegForwardPoints, ReferenceData refData)
Creates a trade based on this convention using a market tenor, such as ON, TN, SN, SW or 1M.
-