Class UsTreasury
java.lang.Object
markets.alpaca.client.openapi.broker.model.UsTreasury
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UsTreasury
extends Object
implements Serializable
A US treasury
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbondStatus(BondStatus bondStatus) closePrice(Double closePrice) closePriceDate(LocalDate closePriceDate) closeYieldToMaturity(Double closeYieldToMaturity) closeYieldToWorst(Double closeYieldToWorst) couponFrequency(CouponFrequency couponFrequency) couponType(CouponType couponType) description(String description) descriptionShort(String descriptionShort) booleanfirstCouponDate(LocalDate firstCouponDate) static UsTreasuryCreate an instance of UsTreasury given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get bondStatusThe price of the last transaction of a security before the market closes for normal trading, shown as a percentage of par valueThe date of the close priceYield to maturity of the treasury after the last closeYield to worst of the treasury after the last closeThe annual interest rate paid on the bond as a percentage of par valueGet couponFrequencyGet couponTypegetCusip()CUSIP is a nine-character alphanumeric code that uniquely identifies the securityDescription of the treasuryShort description of the treasuryThe date of the first coupon paymentgetIsin()International Securities Identification NumberThe date on which the bond was issuedThe date of the last coupon paymentThe date on which the bond maturesThe date of the next coupon paymentGet subtypeWhether the treasury is tradableinthashCode()lastCouponDate(LocalDate lastCouponDate) maturityDate(LocalDate maturityDate) nextCouponDate(LocalDate nextCouponDate) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetBondStatus(BondStatus bondStatus) voidsetClosePrice(Double closePrice) voidsetClosePriceDate(LocalDate closePriceDate) voidsetCloseYieldToMaturity(Double closeYieldToMaturity) voidsetCloseYieldToWorst(Double closeYieldToWorst) voidvoidsetCouponFrequency(CouponFrequency couponFrequency) voidsetCouponType(CouponType couponType) voidvoidsetDescription(String description) voidsetDescriptionShort(String descriptionShort) voidsetFirstCouponDate(LocalDate firstCouponDate) voidvoidsetIssueDate(LocalDate issueDate) voidsetLastCouponDate(LocalDate lastCouponDate) voidsetMaturityDate(LocalDate maturityDate) voidsetNextCouponDate(LocalDate nextCouponDate) voidsetSubtype(TreasurySubtype subtype) voidsetTradable(Boolean tradable) subtype(TreasurySubtype subtype) toJson()Convert an instance of UsTreasury to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_BOND_STATUS
- See Also:
-
SERIALIZED_NAME_CLOSE_PRICE
- See Also:
-
SERIALIZED_NAME_CLOSE_PRICE_DATE
- See Also:
-
SERIALIZED_NAME_CLOSE_YIELD_TO_MATURITY
- See Also:
-
SERIALIZED_NAME_CLOSE_YIELD_TO_WORST
- See Also:
-
SERIALIZED_NAME_COUPON
- See Also:
-
SERIALIZED_NAME_COUPON_FREQUENCY
- See Also:
-
SERIALIZED_NAME_COUPON_TYPE
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_DESCRIPTION_SHORT
- See Also:
-
SERIALIZED_NAME_FIRST_COUPON_DATE
- See Also:
-
SERIALIZED_NAME_ISIN
- See Also:
-
SERIALIZED_NAME_ISSUE_DATE
- See Also:
-
SERIALIZED_NAME_LAST_COUPON_DATE
- See Also:
-
SERIALIZED_NAME_MATURITY_DATE
- See Also:
-
SERIALIZED_NAME_NEXT_COUPON_DATE
- See Also:
-
SERIALIZED_NAME_SUBTYPE
- See Also:
-
SERIALIZED_NAME_TRADABLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UsTreasury
public UsTreasury()
-
-
Method Details
-
bondStatus
-
getBondStatus
Get bondStatus- Returns:
- bondStatus
-
setBondStatus
-
closePrice
-
getClosePrice
The price of the last transaction of a security before the market closes for normal trading, shown as a percentage of par value- Returns:
- closePrice
-
setClosePrice
-
closePriceDate
-
getClosePriceDate
The date of the close price- Returns:
- closePriceDate
-
setClosePriceDate
-
closeYieldToMaturity
-
getCloseYieldToMaturity
Yield to maturity of the treasury after the last close- Returns:
- closeYieldToMaturity
-
setCloseYieldToMaturity
-
closeYieldToWorst
-
getCloseYieldToWorst
Yield to worst of the treasury after the last close- Returns:
- closeYieldToWorst
-
setCloseYieldToWorst
-
coupon
-
getCoupon
The annual interest rate paid on the bond as a percentage of par value- Returns:
- coupon
-
setCoupon
-
couponFrequency
-
getCouponFrequency
Get couponFrequency- Returns:
- couponFrequency
-
setCouponFrequency
-
couponType
-
getCouponType
Get couponType- Returns:
- couponType
-
setCouponType
-
cusip
-
getCusip
CUSIP is a nine-character alphanumeric code that uniquely identifies the security- Returns:
- cusip
-
setCusip
-
description
-
getDescription
Description of the treasury- Returns:
- description
-
setDescription
-
descriptionShort
-
getDescriptionShort
Short description of the treasury- Returns:
- descriptionShort
-
setDescriptionShort
-
firstCouponDate
-
getFirstCouponDate
The date of the first coupon payment- Returns:
- firstCouponDate
-
setFirstCouponDate
-
isin
-
getIsin
International Securities Identification Number- Returns:
- isin
-
setIsin
-
issueDate
-
getIssueDate
The date on which the bond was issued- Returns:
- issueDate
-
setIssueDate
-
lastCouponDate
-
getLastCouponDate
The date of the last coupon payment- Returns:
- lastCouponDate
-
setLastCouponDate
-
maturityDate
-
getMaturityDate
The date on which the bond matures- Returns:
- maturityDate
-
setMaturityDate
-
nextCouponDate
-
getNextCouponDate
The date of the next coupon payment- Returns:
- nextCouponDate
-
setNextCouponDate
-
subtype
-
getSubtype
Get subtype- Returns:
- subtype
-
setSubtype
-
tradable
-
getTradable
Whether the treasury is tradable- Returns:
- tradable
-
setTradable
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the UsTreasury instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to UsTreasury
-
fromJson
Create an instance of UsTreasury given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UsTreasury
- Throws:
IOException- if the JSON string is invalid with respect to UsTreasury
-
toJson
Convert an instance of UsTreasury to an JSON string- Returns:
- JSON string
-