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.25.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.The transfer ID of the associated deposit or withdrawal.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) voidvoidsetTransferId(UUID transferId) status(NonTradeActivity.StatusEnum status) toJson()Convert an instance of NonTradeActivity to an JSON stringtoString()transferId(UUID transferId) 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:
-
SERIALIZED_NAME_TRANSFER_ID
- 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`: - **CGD**: Capital Gains Distribution activity sub-types: - **LTCG**: Long-Term Capital Gain - **STCG**: Short-Term Capital Gain - **DIV**: Dividend activity sub-types: - **CDIV**: Cash Dividend - **ROC**: Return of Capital - **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 - **FI**: Fixed Income Interest (coupon or accrued) - **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.ROC**: Return of Capital - **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 - **REO**: Reorganization activity sub-types: - **REOS**: Stock only (1 or more stock legs) - **REOC**: Cash only (one cash leg) - **REOSC**: Stock and cash - **REORG**: 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 activities.- 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 activities.- Returns:
- cusip
-
setCusip
-
date
-
getDate
Valid only for non-trading activity types. Null for trading activities.- Returns:
- date
-
setDate
-
description
-
getDescription
Valid only for non-trading activity types. Null for trading activities.- 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 activities.- Returns:
- netAmount
-
setNetAmount
-
qty
-
getQty
Valid only for non-trading activity types. Null for trading activities.- Returns:
- qty
-
setQty
-
status
-
getStatus
Valid only for non-trading activity types. Null for trading activities.- Returns:
- status
-
setStatus
-
symbol
-
getSymbol
Valid only for non-trading activity types. Null for trading activities.- Returns:
- symbol
-
setSymbol
-
transferId
-
getTransferId
The transfer ID of the associated deposit or withdrawal. Populated for `OCT` (On Chain Transactions) activities.- Returns:
- transferId
-
setTransferId
-
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
-