Class CommonFixedIncomeInterestActivityV2
java.lang.Object
markets.alpaca.client.openapi.broker.model.CommonFixedIncomeInterestActivityV2
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class CommonFixedIncomeInterestActivityV2
extends Object
implements Serializable
Fixed income interest fields (INT/FI). Variants from the same activity type: - Coupon: `interest_type` is `coupon`. Includes `rate` (no `price` / `accrued_interest_rate`). No `order_id`. - Accrued interest on call: `interest_type` is `accrued`. Includes `price` and `accrued_interest_rate` (no `rate`). No `order_id`. - Trade accrued: `interest_type` is `accrued`. Includes `order_id` so the interest NTA can be linked to the fill. `parent_id` is set when a parent trade `ref_id` is available.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccruedInterestRate(BigDecimal accruedInterestRate) cashPayout(BigDecimal cashPayout) entitledQty(String entitledQty) booleanCreate an instance of CommonFixedIncomeInterestActivityV2 given an JSON stringAccrued interest rate (present for accrued-interest-on-call variants)Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The cash payout for this interest activitygetCusip()The CUSIP of the security involved with the activityThe entitled quantity (principal / face amount)Get interestTypegetIsin()The ISIN of the security involved with the activityThe order that generated this accrued interest.The ref_id of the parent trade this interest is attached to.The payment dategetPrice()Call price used for accrued-interest-on-call variantsgetRate()Coupon rate amount (present for regular coupon payments)The record dateinthashCode()interestType(FixedIncomeInterestType interestType) paymentDate(LocalDate paymentDate) price(BigDecimal price) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rate(BigDecimal rate) recordDate(LocalDate recordDate) voidsetAccruedInterestRate(BigDecimal accruedInterestRate) voidsetCashPayout(BigDecimal cashPayout) voidvoidsetEntitledQty(String entitledQty) voidsetInterestType(FixedIncomeInterestType interestType) voidvoidsetOrderId(UUID orderId) voidsetParentId(UUID parentId) voidsetPaymentDate(LocalDate paymentDate) voidsetPrice(BigDecimal price) voidsetRate(BigDecimal rate) voidsetRecordDate(LocalDate recordDate) toJson()Convert an instance of CommonFixedIncomeInterestActivityV2 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_ACCRUED_INTEREST_RATE
- See Also:
-
SERIALIZED_NAME_CASH_PAYOUT
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_ENTITLED_QTY
- See Also:
-
SERIALIZED_NAME_INTEREST_TYPE
- See Also:
-
SERIALIZED_NAME_ISIN
- See Also:
-
SERIALIZED_NAME_ORDER_ID
- See Also:
-
SERIALIZED_NAME_PARENT_ID
- See Also:
-
SERIALIZED_NAME_PAYMENT_DATE
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_RATE
- See Also:
-
SERIALIZED_NAME_RECORD_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CommonFixedIncomeInterestActivityV2
public CommonFixedIncomeInterestActivityV2()
-
-
Method Details
-
accruedInterestRate
public CommonFixedIncomeInterestActivityV2 accruedInterestRate(@Nullable BigDecimal accruedInterestRate) -
getAccruedInterestRate
Accrued interest rate (present for accrued-interest-on-call variants)- Returns:
- accruedInterestRate
-
setAccruedInterestRate
-
cashPayout
-
getCashPayout
The cash payout for this interest activity- Returns:
- cashPayout
-
setCashPayout
-
cusip
-
getCusip
The CUSIP of the security involved with the activity- Returns:
- cusip
-
setCusip
-
entitledQty
-
getEntitledQty
The entitled quantity (principal / face amount)- Returns:
- entitledQty
-
setEntitledQty
-
interestType
public CommonFixedIncomeInterestActivityV2 interestType(@Nonnull FixedIncomeInterestType interestType) -
getInterestType
Get interestType- Returns:
- interestType
-
setInterestType
-
isin
-
getIsin
The ISIN of the security involved with the activity- Returns:
- isin
-
setIsin
-
orderId
-
getOrderId
The order that generated this accrued interest. Present for trade-accrued INT/FI.- Returns:
- orderId
-
setOrderId
-
parentId
-
getParentId
The ref_id of the parent trade this interest is attached to. Present for trade-accrued INT/FI when a parent trade `ref_id` is available.- Returns:
- parentId
-
setParentId
-
paymentDate
-
getPaymentDate
The payment date- Returns:
- paymentDate
-
setPaymentDate
-
price
-
getPrice
Call price used for accrued-interest-on-call variants- Returns:
- price
-
setPrice
-
rate
-
getRate
Coupon rate amount (present for regular coupon payments)- Returns:
- rate
-
setRate
-
recordDate
-
getRecordDate
The record date- Returns:
- recordDate
-
setRecordDate
-
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 CommonFixedIncomeInterestActivityV2 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 CommonFixedIncomeInterestActivityV2
-
fromJson
Create an instance of CommonFixedIncomeInterestActivityV2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CommonFixedIncomeInterestActivityV2
- Throws:
IOException- if the JSON string is invalid with respect to CommonFixedIncomeInterestActivityV2
-
toJson
Convert an instance of CommonFixedIncomeInterestActivityV2 to an JSON string- Returns:
- JSON string
-