Class AdvancedInstructions
java.lang.Object
markets.alpaca.client.openapi.broker.model.AdvancedInstructions
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AdvancedInstructions
extends Object
implements Serializable
Advanced instructions for Direct Market Access (DMA) routing. When `algorithm` is `DMA`, the order is routed directly to the exchange specified in `destination`. Note that this feature is only available to partners/correspondents who have been enabled for DMA.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe advanced routing algorithm to use for the order.static classstatic enumTarget exchange for order execution. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalgorithm(AdvancedInstructions.AlgorithmEnum algorithm) destination(AdvancedInstructions.DestinationEnum destination) displayQty(BigDecimal displayQty) booleanstatic AdvancedInstructionsCreate an instance of AdvancedInstructions given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The advanced routing algorithm to use for the order.Target exchange for order execution.Maximum shares displayed on the exchange at any time.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAlgorithm(AdvancedInstructions.AlgorithmEnum algorithm) voidsetDestination(AdvancedInstructions.DestinationEnum destination) voidsetDisplayQty(BigDecimal displayQty) toJson()Convert an instance of AdvancedInstructions 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_ALGORITHM
- See Also:
-
SERIALIZED_NAME_DESTINATION
- See Also:
-
SERIALIZED_NAME_DISPLAY_QTY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AdvancedInstructions
public AdvancedInstructions()
-
-
Method Details
-
algorithm
-
getAlgorithm
The advanced routing algorithm to use for the order. Only `DMA` (Direct Market Access) is supported.- Returns:
- algorithm
-
setAlgorithm
-
destination
-
getDestination
Target exchange for order execution. Required when `algorithm` is `DMA`.- Returns:
- destination
-
setDestination
-
displayQty
-
getDisplayQty
Maximum shares displayed on the exchange at any time. Must be in round lot increments.- Returns:
- displayQty
-
setDisplayQty
-
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 AdvancedInstructions 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 AdvancedInstructions
-
fromJson
Create an instance of AdvancedInstructions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdvancedInstructions
- Throws:
IOException- if the JSON string is invalid with respect to AdvancedInstructions
-
toJson
Convert an instance of AdvancedInstructions to an JSON string- Returns:
- JSON string
-