Class Announcement
java.lang.Object
markets.alpaca.client.openapi.broker.model.Announcement
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Announcement
extends Object
implements Serializable
The announcements endpoint contains public information on previous and upcoming dividends, mergers, spinoffs, and stock splits. Announcement data is made available through the API as soon as it is ingested by Alpaca, which is typically the following trading day after the declaration date. This provides insight into future account stock position and cash balance changes that will take effect on an announcement's payable date. Additionally, viewing previous announcement details can improve bookkeeping and reconciling previous account cash and position changes.
- 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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaSubType(AnnouncementCASubType caSubType) caType(AnnouncementCAType caType) corporateActionId(String corporateActionId) declarationDate(String declarationDate) booleanstatic AnnouncementCreate an instance of Announcement given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCash()The amount of cash to be paid per share held by an account on the record date.Get caSubTypeGet caTypeID that remains consistent across all announcements for the same corporate action.Date the corporate action or subsequent terms update was announced.The first date that purchasing a security will not result in a corporate action entitlement.getId()ID that is specific to a single announcement.CUSIP of the company initiating the announcement.Symbol of the company initiating the announcement.The numerator to determine any quantity change ratios in positions.The denominator to determine any quantity change ratios in positions.The date the announcement will take effect.The date an account must hold a settled position in the security in order to receive the corporate action entitlement.CUSIP of the child company involved in the announcement.Symbol of the child company involved in the announcement.inthashCode()initiatingOriginalCusip(String initiatingOriginalCusip) initiatingSymbol(String initiatingSymbol) payableDate(String payableDate) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.recordDate(String recordDate) voidvoidsetCaSubType(AnnouncementCASubType caSubType) voidsetCaType(AnnouncementCAType caType) voidsetCorporateActionId(String corporateActionId) voidsetDeclarationDate(String declarationDate) voidvoidvoidsetInitiatingOriginalCusip(String initiatingOriginalCusip) voidsetInitiatingSymbol(String initiatingSymbol) voidsetNewRate(String newRate) voidsetOldRate(String oldRate) voidsetPayableDate(String payableDate) voidsetRecordDate(String recordDate) voidsetTargetOriginalCusip(String targetOriginalCusip) voidsetTargetSymbol(String targetSymbol) targetOriginalCusip(String targetOriginalCusip) targetSymbol(String targetSymbol) toJson()Convert an instance of Announcement 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_CA_SUB_TYPE
- See Also:
-
SERIALIZED_NAME_CA_TYPE
- See Also:
-
SERIALIZED_NAME_CASH
- See Also:
-
SERIALIZED_NAME_CORPORATE_ACTION_ID
- See Also:
-
SERIALIZED_NAME_DECLARATION_DATE
- See Also:
-
SERIALIZED_NAME_EX_DATE
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_INITIATING_ORIGINAL_CUSIP
- See Also:
-
SERIALIZED_NAME_INITIATING_SYMBOL
- See Also:
-
SERIALIZED_NAME_NEW_RATE
- See Also:
-
SERIALIZED_NAME_OLD_RATE
- See Also:
-
SERIALIZED_NAME_PAYABLE_DATE
- See Also:
-
SERIALIZED_NAME_RECORD_DATE
- See Also:
-
SERIALIZED_NAME_TARGET_ORIGINAL_CUSIP
- See Also:
-
SERIALIZED_NAME_TARGET_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Announcement
public Announcement()
-
-
Method Details
-
caSubType
-
getCaSubType
Get caSubType- Returns:
- caSubType
-
setCaSubType
-
caType
-
getCaType
Get caType- Returns:
- caType
-
setCaType
-
cash
-
getCash
The amount of cash to be paid per share held by an account on the record date.- Returns:
- cash
-
setCash
-
corporateActionId
-
getCorporateActionId
ID that remains consistent across all announcements for the same corporate action. Unlike 'id', this can be used to connect multiple announcements to see how the terms have changed throughout the lifecycle of the corporate action event.- Returns:
- corporateActionId
-
setCorporateActionId
-
declarationDate
-
getDeclarationDate
Date the corporate action or subsequent terms update was announced.- Returns:
- declarationDate
-
setDeclarationDate
-
exDate
-
getExDate
The first date that purchasing a security will not result in a corporate action entitlement.- Returns:
- exDate
-
setExDate
-
id
-
getId
ID that is specific to a single announcement.- Returns:
- id
-
setId
-
initiatingOriginalCusip
-
getInitiatingOriginalCusip
CUSIP of the company initiating the announcement.- Returns:
- initiatingOriginalCusip
-
setInitiatingOriginalCusip
-
initiatingSymbol
-
getInitiatingSymbol
Symbol of the company initiating the announcement.- Returns:
- initiatingSymbol
-
setInitiatingSymbol
-
newRate
-
getNewRate
The numerator to determine any quantity change ratios in positions.- Returns:
- newRate
-
setNewRate
-
oldRate
-
getOldRate
The denominator to determine any quantity change ratios in positions.- Returns:
- oldRate
-
setOldRate
-
payableDate
-
getPayableDate
The date the announcement will take effect. On this date, account stock and cash balances are expected to be processed accordingly.- Returns:
- payableDate
-
setPayableDate
-
recordDate
-
getRecordDate
The date an account must hold a settled position in the security in order to receive the corporate action entitlement.- Returns:
- recordDate
-
setRecordDate
-
targetOriginalCusip
-
getTargetOriginalCusip
CUSIP of the child company involved in the announcement.- Returns:
- targetOriginalCusip
-
setTargetOriginalCusip
-
targetSymbol
-
getTargetSymbol
Symbol of the child company involved in the announcement.- Returns:
- targetSymbol
-
setTargetSymbol
-
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 Announcement 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 Announcement
-
fromJson
Create an instance of Announcement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Announcement
- Throws:
IOException- if the JSON string is invalid with respect to Announcement
-
toJson
Convert an instance of Announcement to an JSON string- Returns:
- JSON string
-