Class NonTradeActivityEvent
java.lang.Object
markets.alpaca.client.openapi.broker.model.NonTradeActivityEvent
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class NonTradeActivityEvent
extends Object
implements Serializable
Represents a non-trade activity SSE event
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumStatus of the event -
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 Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(OffsetDateTime at) description(String description) booleanstatic NonTradeActivityEventCreate an instance of NonTradeActivityEvent given an JSON stringAccount UUIDReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAt()Timestamp of when the event was emittedgetCusip()CUSIP the event is associated with, not present when no CUSIP is applicableAdditional information about the event, empty string if not applicableType of entry for e.g JNLC, FEE, INT, DIVNRA etcMonotonically increasing 64bit integerlexically sortable, monotonically increasing character arraygetId()Record UUIDNet amount if applicable, 0 otherwisePer share amount if applicablegetPrice()Price if applicable.getQty()Quantity of the stock affected.Date of settlement if applicableStatus of the eventSymbol the event is associated with, empty string when no symbol is applicableDate of the event recorded in the systeminthashCode()netAmount(BigDecimal netAmount) perShareAmount(BigDecimal perShareAmount) price(BigDecimal price) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.qty(BigDecimal qty) voidsetAccountId(UUID accountId) voidsetAt(OffsetDateTime at) voidvoidsetDescription(String description) voidsetEntryType(String entryType) voidsetEventId(Integer eventId) voidsetEventUlid(String eventUlid) voidvoidsetNetAmount(BigDecimal netAmount) voidsetPerShareAmount(BigDecimal perShareAmount) voidsetPrice(BigDecimal price) voidsetQty(BigDecimal qty) voidsetSettleDate(LocalDate settleDate) voidvoidvoidsetSystemDate(LocalDate systemDate) settleDate(LocalDate settleDate) systemDate(LocalDate systemDate) toJson()Convert an instance of NonTradeActivityEvent 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_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_AT
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ENTRY_TYPE
- See Also:
-
SERIALIZED_NAME_EVENT_ID
- See Also:
-
SERIALIZED_NAME_EVENT_ULID
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NET_AMOUNT
- See Also:
-
SERIALIZED_NAME_PER_SHARE_AMOUNT
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_SETTLE_DATE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_SYSTEM_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NonTradeActivityEvent
public NonTradeActivityEvent()
-
-
Method Details
-
accountId
-
getAccountId
Account UUID- Returns:
- accountId
-
setAccountId
-
at
-
getAt
Timestamp of when the event was emitted- Returns:
- at
-
setAt
-
cusip
-
getCusip
CUSIP the event is associated with, not present when no CUSIP is applicable- Returns:
- cusip
-
setCusip
-
description
-
getDescription
Additional information about the event, empty string if not applicable- Returns:
- description
-
setDescription
-
entryType
-
getEntryType
Type of entry for e.g JNLC, FEE, INT, DIVNRA etc- Returns:
- entryType
-
setEntryType
-
eventId
-
getEventId
Monotonically increasing 64bit integer- Returns:
- eventId
-
setEventId
-
eventUlid
-
getEventUlid
lexically sortable, monotonically increasing character array- Returns:
- eventUlid
-
setEventUlid
-
id
-
getId
Record UUID- Returns:
- id
-
setId
-
netAmount
-
getNetAmount
Net amount if applicable, 0 otherwise- Returns:
- netAmount
-
setNetAmount
-
price
-
getPrice
Price if applicable.- Returns:
- price
-
setPrice
-
qty
-
getQty
Quantity of the stock affected. 0 for cash events- Returns:
- qty
-
setQty
-
settleDate
-
getSettleDate
Date of settlement if applicable- Returns:
- settleDate
-
setSettleDate
-
status
-
getStatus
Status of the event- Returns:
- status
-
setStatus
-
symbol
-
getSymbol
Symbol the event is associated with, empty string when no symbol is applicable- Returns:
- symbol
-
setSymbol
-
systemDate
-
getSystemDate
Date of the event recorded in the system- Returns:
- systemDate
-
setSystemDate
-
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 NonTradeActivityEvent 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 NonTradeActivityEvent
-
fromJson
Create an instance of NonTradeActivityEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NonTradeActivityEvent
- Throws:
IOException- if the JSON string is invalid with respect to NonTradeActivityEvent
-
toJson
Convert an instance of NonTradeActivityEvent to an JSON string- Returns:
- JSON string
-