Class AdvancedInstructions
java.lang.Object
markets.alpaca.client.openapi.trading.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 Elite Smart Router: https://docs.alpaca.markets/docs/alpaca-elite-smart-router
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe advanced routing algorithm to use for the orderstatic 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) endTime(OffsetDateTime endTime) 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 orderTarget exchange for order executionMaximum shares/contracts displayed on the exchange at any time.When the algorithm is to be done executing.Maximum percentage of the ticker's period volume this order might participate in.When the algorithm is to start executing.inthashCode()maxPercentage(BigDecimal maxPercentage) 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) voidsetEndTime(OffsetDateTime endTime) voidsetMaxPercentage(BigDecimal maxPercentage) voidsetStartTime(OffsetDateTime startTime) startTime(OffsetDateTime startTime) 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:
-
SERIALIZED_NAME_END_TIME
- See Also:
-
SERIALIZED_NAME_MAX_PERCENTAGE
- See Also:
-
SERIALIZED_NAME_START_TIME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AdvancedInstructions
public AdvancedInstructions()
-
-
Method Details
-
algorithm
-
getAlgorithm
The advanced routing algorithm to use for the order- Returns:
- algorithm
-
setAlgorithm
-
destination
-
getDestination
Target exchange for order execution- Returns:
- destination
-
setDestination
-
displayQty
-
getDisplayQty
Maximum shares/contracts displayed on the exchange at any time. Must be in round lot increments- Returns:
- displayQty
-
setDisplayQty
-
endTime
-
getEndTime
When the algorithm is to be done executing. Must be within current market trading hours- Returns:
- endTime
-
setEndTime
-
maxPercentage
-
getMaxPercentage
Maximum percentage of the ticker's period volume this order might participate in. Must be 0 < max_percentage < 1, with up to 3 decimal points precision.- Returns:
- maxPercentage
-
setMaxPercentage
-
startTime
-
getStartTime
When the algorithm is to start executing. Must be within current market trading hours- Returns:
- startTime
-
setStartTime
-
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
-