Class AcatsEquity
java.lang.Object
markets.alpaca.client.openapi.broker.model.AcatsEquity
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class AcatsEquity
extends Object
implements Serializable
Equity asset requested in a partial transfer. Identify the security with either `cusip` or `symbol` -- provide one, not both. Prefer `cusip` when you have it: it is a stable, unambiguous identifier. Use `symbol` only when a CUSIP is not available, as ticker symbols can change or be reused over time.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumPosition type. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AcatsEquityCreate an instance of AcatsEquity given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCusip()CUSIP security identifier for the asset -- 8 uppercase alphanumeric characters followed by a check character, which may be a digit or one of `*`, `@`, `#`.Position type.getQty()Quantity of assets to transfer.Stock ticker symbol (e.g.Set to true to transfer the entire balance of this asset.inthashCode()position(AcatsEquity.PositionEnum position) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.qty(BigDecimal qty) voidvoidsetPosition(AcatsEquity.PositionEnum position) voidsetQty(BigDecimal qty) voidvoidsetTransferAll(Boolean transferAll) toJson()Convert an instance of AcatsEquity to an JSON stringtoString()transferAll(Boolean transferAll) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_POSITION
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_TRANSFER_ALL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AcatsEquity
public AcatsEquity()
-
-
Method Details
-
cusip
-
getCusip
CUSIP security identifier for the asset -- 8 uppercase alphanumeric characters followed by a check character, which may be a digit or one of `*`, `@`, `#`. Recommended over `symbol` for unambiguous identification. Provide either `cusip` or `symbol`, not both.- Returns:
- cusip
-
setCusip
-
position
-
getPosition
Position type. Only `LONG` and `SHORT` are accepted for equities -- `CREDIT` and `DEBIT` apply to cash positions and are rejected with HTTP 400 here.- Returns:
- position
-
setPosition
-
qty
-
getQty
Quantity of assets to transfer. Use `transfer_all` to transfer the entire position instead of specifying a quantity -- `qty` and `transfer_all: true` are mutually exclusive, and sending both is rejected with HTTP 400. Note that the ACATS system will only transfer whole shares.- Returns:
- qty
-
setQty
-
symbol
-
getSymbol
Stock ticker symbol (e.g. `AAPL`, `BRK.B`, `GOOGL`). Up to 6 alphanumeric characters, optionally followed by a single `.` or `-` separator and a 1-5 letter suffix. Values are trimmed and upper-cased before validation. Use only when a CUSIP is not available, since symbols can change or be reused over time. Provide either `cusip` or `symbol`, not both.- Returns:
- symbol
-
setSymbol
-
transferAll
-
getTransferAll
Set to true to transfer the entire balance of this asset. Must not be combined with `qty`. Setting it to `false` without a `qty` is rejected with HTTP 400.- Returns:
- transferAll
-
setTransferAll
-
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 AcatsEquity 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 AcatsEquity
-
fromJson
Create an instance of AcatsEquity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AcatsEquity
- Throws:
IOException- if the JSON string is invalid with respect to AcatsEquity
-
toJson
Convert an instance of AcatsEquity to an JSON string- Returns:
- JSON string
-