Class Locate
java.lang.Object
markets.alpaca.client.openapi.trading.model.Locate
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Locate
extends Object
implements Serializable
A locate request and its current lifecycle status.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanexpiresAt(OffsetDateTime expiresAt) static LocateCreate an instance of Locate given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether the request required the full quantity.Time when the locate was created.Time when the active locate expires.getId()Locate ID.Maximum acceptable fee per share from the request.Locate fee per share in USD.Number of shares located.Machine-readable rejection reason.Number of shares requested.Get statusStock symbol.Total locate fee in USD.inthashCode()limitPrice(String limitPrice) locatedPrice(String locatedPrice) locatedQty(Long locatedQty) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rejectionReason(String rejectionReason) requestedQty(Long requestedQty) voidsetAllOrNone(Boolean allOrNone) voidsetCreatedAt(OffsetDateTime createdAt) voidsetExpiresAt(OffsetDateTime expiresAt) voidvoidsetLimitPrice(String limitPrice) voidsetLocatedPrice(String locatedPrice) voidsetLocatedQty(Long locatedQty) voidsetRejectionReason(String rejectionReason) voidsetRequestedQty(Long requestedQty) voidsetStatus(LocateStatus status) voidvoidsetTotalFee(String totalFee) status(LocateStatus status) toJson()Convert an instance of Locate 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_CREATED_AT
- See Also:
-
SERIALIZED_NAME_EXPIRES_AT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_LIMIT_PRICE
- See Also:
-
SERIALIZED_NAME_LOCATED_PRICE
- See Also:
-
SERIALIZED_NAME_LOCATED_QTY
- See Also:
-
SERIALIZED_NAME_REJECTION_REASON
- See Also:
-
SERIALIZED_NAME_REQUESTED_QTY
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_TOTAL_FEE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Locate
public Locate()
-
-
Method Details
-
allOrNone
-
getAllOrNone
Whether the request required the full quantity.- Returns:
- allOrNone
-
setAllOrNone
-
createdAt
-
getCreatedAt
Time when the locate was created.- Returns:
- createdAt
-
setCreatedAt
-
expiresAt
-
getExpiresAt
Time when the active locate expires. Omitted when rejected.- Returns:
- expiresAt
-
setExpiresAt
-
id
-
getId
Locate ID.- Returns:
- id
-
setId
-
limitPrice
-
getLimitPrice
Maximum acceptable fee per share from the request.- Returns:
- limitPrice
-
setLimitPrice
-
locatedPrice
-
getLocatedPrice
Locate fee per share in USD. Omitted when rejected.- Returns:
- locatedPrice
-
setLocatedPrice
-
locatedQty
-
getLocatedQty
Number of shares located. Omitted when rejected.- Returns:
- locatedQty
-
setLocatedQty
-
rejectionReason
-
getRejectionReason
Machine-readable rejection reason.- Returns:
- rejectionReason
-
setRejectionReason
-
requestedQty
-
getRequestedQty
Number of shares requested.- Returns:
- requestedQty
-
setRequestedQty
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
symbol
-
getSymbol
Stock symbol.- Returns:
- symbol
-
setSymbol
-
totalFee
-
getTotalFee
Total locate fee in USD. Omitted when rejected.- Returns:
- totalFee
-
setTotalFee
-
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 Locate 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 Locate
-
fromJson
Create an instance of Locate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Locate
- Throws:
IOException- if the JSON string is invalid with respect to Locate
-
toJson
Convert an instance of Locate to an JSON string- Returns:
- JSON string
-