Class NonTradeActivities
java.lang.Object
markets.alpaca.client.openapi.trading.model.NonTradeActivities
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class NonTradeActivities
extends Object
implements Serializable
NonTradeActivities
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGets or Sets activityTypestatic classstatic enumThe activity status. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivitySubType(String activitySubType) activityType(NonTradeActivities.ActivityTypeEnum activityType) createdAt(OffsetDateTime createdAt) date(OffsetDateTime date) booleanstatic NonTradeActivitiesCreate an instance of NonTradeActivities given an JSON stringRepresents a more specific classification to the `activity_type`.Get activityTypeReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Valid only for non-trading activity types.Currency denomination of the activity (e.g.getCusip()The CUSIP of the security involved with the activity.getDate()The date on which the activity occurred or on which the transaction associated with the activity settled.ID used to link activities who share a sibling relationship.getId()An ID for the activity, always in \"::\" format.The net amount of money (positive or negative) associated with the activity.For dividend activities, the average amount paid per share.getQty()For dividend activities, the number of shares that contributed to the payment.The activity status.The symbol of the security involved with the activity.inthashCode()perShareAmount(String perShareAmount) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetActivitySubType(String activitySubType) voidsetActivityType(NonTradeActivities.ActivityTypeEnum activityType) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidvoidsetDate(OffsetDateTime date) voidsetGroupId(String groupId) voidvoidsetNetAmount(String netAmount) voidsetPerShareAmount(String perShareAmount) voidvoidvoidstatus(NonTradeActivities.StatusEnum status) toJson()Convert an instance of NonTradeActivities 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_ACTIVITY_SUB_TYPE
- See Also:
-
SERIALIZED_NAME_ACTIVITY_TYPE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_DATE
- See Also:
-
SERIALIZED_NAME_GROUP_ID
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NET_AMOUNT
- See Also:
-
SERIALIZED_NAME_PER_SHARE_AMOUNT
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NonTradeActivities
public NonTradeActivities()
-
-
Method Details
-
activitySubType
-
getActivitySubType
Represents a more specific classification to the `activity_type`. This field is optional and may not always be populated, depending on the activity type and the available data. Each `activity_type` has a set of valid `activity_sub_type` values. Full mapping of `activity_type` to `activity_sub_type`: - **DIV**: Dividend activity sub-types: - **CDIV**: Cash Dividend - **SDIV**: Stock Dividend - **SPD**: Substitute Payment In Lieu Of Dividend - **FEE**: Fee-related activity sub-types: - **REG**: Regulatory Fee - **TAF**: Trading Activity Fee - **LCT**: Local Currency Trading Fee - **ORF**: Options Regulatory Fee - **OCC**: Options Clearing Corporation Fee - **NRC**: Non-Retail Commission Fee - **NRV**: Non-Retail Venue Fee - **COM**: Commission - **CAT**: Consolidated Audit Trail Fee - **INT**: Interest-related activity sub-types: - **MGN**: Margin Interest - **CDT**: Credit Interest - **SWP**: Sweep Interest - **QII**: Qualified Interest - **MA**: Merger and Acquisition activity sub-types: - **CMA**: Cash Merger - **SMA**: Stock Merger - **SCMA**: Stock & Cash Merger - **NC**: Name Change activity sub types - **SNC**: Symbol Name Change - **CNC**: CUSIP Name Change - **SCNC**: Symbol & CUSIP Name Change - **OPCA**: Option Corporate Action activity sub-types: - **DIV.CDIV**: Cash Dividend - **DIV.SDIV**: Stock Dividend - **MA.CMA**: Cash Merger - **MA.SMA**: Stock Merger - **MA.SCMA**: Stock & Cash Merger - **NC.CNC**: CUSIP Name Change - **NC.SNC**: Symbol Name Change - **NC.SCNC**: Symbol & CUSIP Name Change - **SPIN**: Spin-off - **SPLIT.FSPLIT**: Forward Stock Split - **SPLIT.RSPLIT**: Reverse Stock Split - **SPLIT.USPLIT**: Unit Split - **REORG**: Reorganization activity sub-types: - **WRM**: Worthless Removal - **SPLIT**: Stock Split activity sub-types: - **FSPLIT**: Forward Stock Split - **RSPLIT**: Reverse Stock Split - **USPLIT**: Unit Split - **VOF**: Voluntary Offering activity sub-types: - **VTND**: Tender Offer - **VWRT**: Warrant Exercise - **VRGT**: Rights Offer - **VEXH**: Exchange Offer - **WH**: Withholding activity sub-types: - **SWH**: State Withholding - **FWH**: Federal Withholding - **SLWH**: Sales Withholding- Returns:
- activitySubType
-
setActivitySubType
-
activityType
-
getActivityType
Get activityType- Returns:
- activityType
-
setActivityType
-
createdAt
-
getCreatedAt
Valid only for non-trading activity types. Null for trading activites.- Returns:
- createdAt
-
setCreatedAt
-
currency
-
getCurrency
Currency denomination of the activity (e.g. USD). Included in NTA stream events and activity responses.- Returns:
- currency
-
setCurrency
-
cusip
-
getCusip
The CUSIP of the security involved with the activity. Not present for all activity types.- Returns:
- cusip
-
setCusip
-
date
-
getDate
The date on which the activity occurred or on which the transaction associated with the activity settled.- Returns:
- date
-
setDate
-
groupId
-
getGroupId
ID used to link activities who share a sibling relationship.- Returns:
- groupId
-
setGroupId
-
id
-
getId
An ID for the activity, always in \"::\" format. Can be sent as page_token in requests to facilitate the paging of results.- Returns:
- id
-
setId
-
netAmount
-
getNetAmount
The net amount of money (positive or negative) associated with the activity.- Returns:
- netAmount
-
setNetAmount
-
qty
-
getQty
For dividend activities, the number of shares that contributed to the payment. Not present for other activity types.- Returns:
- qty
-
setQty
-
status
-
getStatus
The activity status.- Returns:
- status
-
setStatus
-
symbol
-
getSymbol
The symbol of the security involved with the activity. Not present for all activity types.- Returns:
- symbol
-
setSymbol
-
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 NonTradeActivities 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 NonTradeActivities
-
fromJson
Create an instance of NonTradeActivities given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NonTradeActivities
- Throws:
IOException- if the JSON string is invalid with respect to NonTradeActivities
-
toJson
Convert an instance of NonTradeActivities to an JSON string- Returns:
- JSON string
-