Class AssetEntryRequirements
java.lang.Object
markets.alpaca.client.openapi.broker.model.AssetEntryRequirements
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AssetEntryRequirements
extends Object
implements Serializable
Defines the necessary conditions that must be met to initiate a position for a specific asset
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AssetEntryRequirementsCreate an instance of AssetEntryRequirements given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The percentage of the asset's market value required as Reg T (2x) buying power to open a long positionThe percentage of the asset's market value required as Reg T (2x) buying power to open a short positionThe symbol (or asset id) of the requested assetinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.regtLong(BigDecimal regtLong) regtShort(BigDecimal regtShort) voidsetRegtLong(BigDecimal regtLong) voidsetRegtShort(BigDecimal regtShort) voidtoJson()Convert an instance of AssetEntryRequirements 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_REGT_LONG
- See Also:
-
SERIALIZED_NAME_REGT_SHORT
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AssetEntryRequirements
public AssetEntryRequirements()
-
-
Method Details
-
regtLong
-
getRegtLong
The percentage of the asset's market value required as Reg T (2x) buying power to open a long position- Returns:
- regtLong
-
setRegtLong
-
regtShort
-
getRegtShort
The percentage of the asset's market value required as Reg T (2x) buying power to open a short position- Returns:
- regtShort
-
setRegtShort
-
symbol
-
getSymbol
The symbol (or asset id) of the requested asset- 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 AssetEntryRequirements 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 AssetEntryRequirements
-
fromJson
Create an instance of AssetEntryRequirements given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AssetEntryRequirements
- Throws:
IOException- if the JSON string is invalid with respect to AssetEntryRequirements
-
toJson
Convert an instance of AssetEntryRequirements to an JSON string- Returns:
- JSON string
-