Class ActivityEventV2CommonFields
java.lang.Object
markets.alpaca.client.openapi.trading.model.ActivityEventV2CommonFields
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ActivityEventV2CommonFields
extends Object
implements Serializable
Represents the common fields for all Activity V2 Events
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
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 TypeMethodDescriptionactivitySubtype(String activitySubtype) activityType(String activityType) at(OffsetDateTime at) booleanexecutedAt(OffsetDateTime executedAt) static ActivityEventV2CommonFieldsCreate an instance of ActivityEventV2CommonFields given an JSON stringSub category for activity type, if anyThe type of the activity, which can be trade or any of the non trade activitiesReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAt()Timestamp of eventCurrency code in ISO formatLexically sortable, monotonically increasing character stringExecution time for the activity eventThe net amount of money (positive or negative) associated with the activityPrevious ID is presented if this activity corrects or cancels a previous trade or non trade activity.getPrice()The price of the security involved with the activitygetQty()The quantity of the security involved with the activitygetRefId()The unique identifier for the activity.Date when the activity settledStatus of the activityCurrency conversion fee rate base-point in case of local currency activityConversion rate for local currency activitiesinthashCode()netAmount(BigDecimal netAmount) previousId(UUID previousId) price(BigDecimal price) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.qty(BigDecimal qty) voidsetActivitySubtype(String activitySubtype) voidsetActivityType(String activityType) voidsetAt(OffsetDateTime at) voidsetCurrency(String currency) voidsetEventId(String eventId) voidsetExecutedAt(OffsetDateTime executedAt) voidsetNetAmount(BigDecimal netAmount) voidsetPreviousId(UUID previousId) voidsetPrice(BigDecimal price) voidsetQty(BigDecimal qty) voidvoidsetSettleDate(LocalDate settleDate) voidvoidsetSwapFeeBps(BigDecimal swapFeeBps) voidsetSwapRate(BigDecimal swapRate) settleDate(LocalDate settleDate) swapFeeBps(BigDecimal swapFeeBps) swapRate(BigDecimal swapRate) toJson()Convert an instance of ActivityEventV2CommonFields 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_SUBTYPE
- See Also:
-
SERIALIZED_NAME_ACTIVITY_TYPE
- See Also:
-
SERIALIZED_NAME_AT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_EVENT_ID
- See Also:
-
SERIALIZED_NAME_EXECUTED_AT
- See Also:
-
SERIALIZED_NAME_NET_AMOUNT
- See Also:
-
SERIALIZED_NAME_PREVIOUS_ID
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_REF_ID
- See Also:
-
SERIALIZED_NAME_SETTLE_DATE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SWAP_FEE_BPS
- See Also:
-
SERIALIZED_NAME_SWAP_RATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ActivityEventV2CommonFields
public ActivityEventV2CommonFields()
-
-
Method Details
-
activitySubtype
-
getActivitySubtype
Sub category for activity type, if any- Returns:
- activitySubtype
-
setActivitySubtype
-
activityType
-
getActivityType
The type of the activity, which can be trade or any of the non trade activities- Returns:
- activityType
-
setActivityType
-
at
-
getAt
Timestamp of event- Returns:
- at
-
setAt
-
currency
-
getCurrency
Currency code in ISO format- Returns:
- currency
-
setCurrency
-
eventId
-
getEventId
Lexically sortable, monotonically increasing character string- Returns:
- eventId
-
setEventId
-
executedAt
-
getExecutedAt
Execution time for the activity event- Returns:
- executedAt
-
setExecutedAt
-
netAmount
-
getNetAmount
The net amount of money (positive or negative) associated with the activity- Returns:
- netAmount
-
setNetAmount
-
previousId
-
getPreviousId
Previous ID is presented if this activity corrects or cancels a previous trade or non trade activity. It contains execution_id or trns_id respectively- Returns:
- previousId
-
setPreviousId
-
price
-
getPrice
The price of the security involved with the activity- Returns:
- price
-
setPrice
-
qty
-
getQty
The quantity of the security involved with the activity- Returns:
- qty
-
setQty
-
refId
-
getRefId
The unique identifier for the activity. For trades, the execution_id is used, for other activities the trns_id is used.- Returns:
- refId
-
setRefId
-
settleDate
-
getSettleDate
Date when the activity settled- Returns:
- settleDate
-
setSettleDate
-
status
-
getStatus
Status of the activity- Returns:
- status
-
setStatus
-
swapFeeBps
-
getSwapFeeBps
Currency conversion fee rate base-point in case of local currency activity- Returns:
- swapFeeBps
-
setSwapFeeBps
-
swapRate
-
getSwapRate
Conversion rate for local currency activities- Returns:
- swapRate
-
setSwapRate
-
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 ActivityEventV2CommonFields 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 ActivityEventV2CommonFields
-
fromJson
Create an instance of ActivityEventV2CommonFields given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ActivityEventV2CommonFields
- Throws:
IOException- if the JSON string is invalid with respect to ActivityEventV2CommonFields
-
toJson
Convert an instance of ActivityEventV2CommonFields to an JSON string- Returns:
- JSON string
-