Class CreateLocateRequest
java.lang.Object
markets.alpaca.client.openapi.trading.model.CreateLocateRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateLocateRequest
extends Object
implements Serializable
Request to locate shares for a short sale.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateLocateRequestCreate an instance of CreateLocateRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Reject the locate unless the full requested quantity is available.Maximum acceptable locate fee per share, as a decimal string in USD.getQty()Number of shares to locate.Stock symbol.inthashCode()limitPrice(String limitPrice) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAllOrNone(Boolean allOrNone) voidsetLimitPrice(String limitPrice) voidvoidtoJson()Convert an instance of CreateLocateRequest 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_ALL_OR_NONE
- See Also:
-
SERIALIZED_NAME_LIMIT_PRICE
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateLocateRequest
public CreateLocateRequest()
-
-
Method Details
-
allOrNone
-
getAllOrNone
Reject the locate unless the full requested quantity is available.- Returns:
- allOrNone
-
setAllOrNone
-
limitPrice
-
getLimitPrice
Maximum acceptable locate fee per share, as a decimal string in USD. If omitted, any quoted fee is accepted.- Returns:
- limitPrice
-
setLimitPrice
-
qty
-
getQty
Number of shares to locate. Must be positive and in round lots of 100; invalid quantities return HTTP 400. minimum: 1- Returns:
- qty
-
setQty
-
symbol
-
getSymbol
Stock symbol.- 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 CreateLocateRequest 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 CreateLocateRequest
-
fromJson
Create an instance of CreateLocateRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateLocateRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateLocateRequest
-
toJson
Convert an instance of CreateLocateRequest to an JSON string- Returns:
- JSON string
-