Class SkippedOrder
java.lang.Object
markets.alpaca.client.openapi.broker.model.SkippedOrder
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SkippedOrder
extends Object
implements Serializable
Skipped orders model contains information for such orders that the rebalancing engine didn't send to our order system due to some validation issues.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SkippedOrderCreate an instance of SkippedOrder given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Currency of the orderNotional value of the orderReason for the order being skippedFormatted error message with the cause of the skipgetSide()Side of the order (buy, sell, sell_short)Symbol for which the adjustment was skippedinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.reasonDetails(String reasonDetails) voidsetCurrency(String currency) voidsetNotional(String notional) voidvoidsetReasonDetails(String reasonDetails) voidvoidtoJson()Convert an instance of SkippedOrder 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_CURRENCY
- See Also:
-
SERIALIZED_NAME_NOTIONAL
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_REASON_DETAILS
- See Also:
-
SERIALIZED_NAME_SIDE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SkippedOrder
public SkippedOrder()
-
-
Method Details
-
currency
-
getCurrency
Currency of the order- Returns:
- currency
-
setCurrency
-
notional
-
getNotional
Notional value of the order- Returns:
- notional
-
setNotional
-
reason
-
getReason
Reason for the order being skipped- Returns:
- reason
-
setReason
-
reasonDetails
-
getReasonDetails
Formatted error message with the cause of the skip- Returns:
- reasonDetails
-
setReasonDetails
-
side
-
getSide
Side of the order (buy, sell, sell_short)- Returns:
- side
-
setSide
-
symbol
-
getSymbol
Symbol for which the adjustment was skipped- 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 SkippedOrder 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 SkippedOrder
-
fromJson
Create an instance of SkippedOrder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SkippedOrder
- Throws:
IOException- if the JSON string is invalid with respect to SkippedOrder
-
toJson
Convert an instance of SkippedOrder to an JSON string- Returns:
- JSON string
-