Class NonTradeActivity
java.lang.Object
markets.alpaca.client.openapi.broker.model.NonTradeActivity
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class NonTradeActivity
extends Object
implements Serializable
NonTradeActivity
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumValid only for non-trading activity types. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivitySubType(String activitySubType) createdAt(OffsetDateTime createdAt) description(String description) booleanstatic NonTradeActivityCreate an instance of NonTradeActivity given an JSON stringRepresents a more specific classification to the `activity_type`.Return 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.getCusip()Valid only for non-trading activity types.getDate()Valid only for non-trading activity types.Valid only for non-trading activity types.ID used to link activities who share a sibling relationshipValid only for non-trading activity types.Valid only for non-trading activity types.getQty()Valid only for non-trading activity types.Valid only for non-trading activity types.Valid only for non-trading activity types.inthashCode()netAmount(BigDecimal netAmount) perShareAmount(BigDecimal perShareAmount) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.qty(BigDecimal qty) voidsetActivitySubType(String activitySubType) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidvoidvoidsetDescription(String description) voidsetGroupId(UUID groupId) voidsetNetAmount(BigDecimal netAmount) voidsetPerShareAmount(BigDecimal perShareAmount) voidsetQty(BigDecimal qty) voidsetStatus(NonTradeActivity.StatusEnum status) voidstatus(NonTradeActivity.StatusEnum status) toJson()Convert an instance of NonTradeActivity 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_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_DATE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_GROUP_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
-
NonTradeActivity
public NonTradeActivity()
-
-
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
-
createdAt
-
getCreatedAt
Valid only for non-trading activity types. Null for trading activites.- Returns:
- createdAt
-
setCreatedAt
-
currency
-
getCurrency
Currency denomination of the activity. USD by default.- Returns:
- currency
-
setCurrency
-
cusip
-
getCusip
Valid only for non-trading activity types. Null for trading activites.- Returns:
- cusip
-
setCusip
-
date
-
getDate
Valid only for non-trading activity types. Null for trading activites.- Returns:
- date
-
setDate
-
description
-
getDescription
Valid only for non-trading activity types. Null for trading activites.- Returns:
- description
-
setDescription
-
groupId
-
getGroupId
ID used to link activities who share a sibling relationship- Returns:
- groupId
-
setGroupId
-
netAmount
-
getNetAmount
Valid only for non-trading activity types. Null for trading activites.- Returns:
- netAmount
-
setNetAmount
-
qty
-
getQty
Valid only for non-trading activity types. Null for trading activites.- Returns:
- qty
-
setQty
-
status
-
getStatus
Valid only for non-trading activity types. Null for trading activites.- Returns:
- status
-
setStatus
-
symbol
-
getSymbol
Valid only for non-trading activity types. Null for trading activites.- 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 NonTradeActivity 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 NonTradeActivity
-
fromJson
Create an instance of NonTradeActivity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NonTradeActivity
- Throws:
IOException- if the JSON string is invalid with respect to NonTradeActivity
-
toJson
Convert an instance of NonTradeActivity to an JSON string- Returns:
- JSON string
-