Class AcatsAsset
java.lang.Object
markets.alpaca.client.openapi.broker.model.AcatsAsset
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class AcatsAsset
extends Object
implements Serializable
An asset included in an ACATS transfer.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAsset typestatic classstatic enumStatus -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount(BigDecimal amount) assetClass(AcatsAsset.AssetClassEnum assetClass) assetDescription(String assetDescription) currencyCode(String currencyCode) booleanstatic AcatsAssetCreate an instance of AcatsAsset given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Positive number indicating the market value of the assets being transferredAsset typeDescription, usually from DTCC's Security Master FileISO currency code in which amount is denominatedgetCusip()CUSIP security identifier for the asset.getIsin()Deprecated.Get positiongetQty()Positive number indicating how many shares or units are being transferredHuman readable reason for why an asset is considered ineligible for transferStatusSymbol identifier for the asset.inthashCode()Deprecated.position(AcatsPosition position) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.qty(BigDecimal qty) rejectionMessage(String rejectionMessage) voidsetAmount(BigDecimal amount) voidsetAssetClass(AcatsAsset.AssetClassEnum assetClass) voidsetAssetDescription(String assetDescription) voidsetCurrencyCode(String currencyCode) voidvoidDeprecated.voidsetPosition(AcatsPosition position) voidsetQty(BigDecimal qty) voidsetRejectionMessage(String rejectionMessage) voidsetStatus(AcatsAsset.StatusEnum status) voidstatus(AcatsAsset.StatusEnum status) toJson()Convert an instance of AcatsAsset 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_AMOUNT
- See Also:
-
SERIALIZED_NAME_ASSET_CLASS
- See Also:
-
SERIALIZED_NAME_ASSET_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_CURRENCY_CODE
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_ISIN
- See Also:
-
SERIALIZED_NAME_POSITION
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_REJECTION_MESSAGE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AcatsAsset
public AcatsAsset()
-
-
Method Details
-
amount
-
getAmount
Positive number indicating the market value of the assets being transferred- Returns:
- amount
-
setAmount
-
assetClass
-
getAssetClass
Asset type- Returns:
- assetClass
-
setAssetClass
-
assetDescription
-
getAssetDescription
Description, usually from DTCC's Security Master File- Returns:
- assetDescription
-
setAssetDescription
-
currencyCode
-
getCurrencyCode
ISO currency code in which amount is denominated- Returns:
- currencyCode
-
setCurrencyCode
-
cusip
-
getCusip
CUSIP security identifier for the asset. Only returned when a CUSIP was provided for this asset at the time the transfer was initiated, in which case it is returned alongside `symbol`.- Returns:
- cusip
-
setCusip
-
isin
Deprecated. -
getIsin
Deprecated.**Deprecation notice:** Use `symbol` or `cusip` instead. Returned with all assets only for backward compatibility while consumers migrate. Since: 2026-08-04 Sunset: 2027-02-04 --- ISIN for the asset.- Returns:
- isin
-
setIsin
Deprecated. -
position
-
getPosition
Get position- Returns:
- position
-
setPosition
-
qty
-
getQty
Positive number indicating how many shares or units are being transferred- Returns:
- qty
-
setQty
-
rejectionMessage
-
getRejectionMessage
Human readable reason for why an asset is considered ineligible for transfer- Returns:
- rejectionMessage
-
setRejectionMessage
-
status
-
getStatus
Status- Returns:
- status
-
setStatus
-
symbol
-
getSymbol
Symbol identifier for the asset. Always returned when a symbol is known for the asset, including when the transfer was initiated with a CUSIP.- 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 AcatsAsset 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 AcatsAsset
-
fromJson
Create an instance of AcatsAsset given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AcatsAsset
- Throws:
IOException- if the JSON string is invalid with respect to AcatsAsset
-
toJson
Convert an instance of AcatsAsset to an JSON string- Returns:
- JSON string
-