Class AggregatePositionResponse
java.lang.Object
markets.alpaca.client.openapi.broker.model.AggregatePositionResponse
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AggregatePositionResponse
extends Object
implements Serializable
AggregatePositionResponse
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassetType(AssetClass assetType) closingPrice(BigDecimal closingPrice) cusip(BigDecimal cusip) booleanstatic AggregatePositionResponseCreate an instance of AggregatePositionResponse given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get assetTypeEOD asset price per share at session closegetCusip()Cusip (9 digits, can start with 0's)Aggregate notional dollar amount of the partner's long positionsAggregate number of shares that the partner is longNumber of accounts that have a position in this asset (either long or short)Aggregate notional dollar amount of the partner's short positionsAggregate number of shares that the partner is shortSymbol of assetinthashCode()longMarketValue(BigDecimal longMarketValue) longQty(BigDecimal longQty) numAccounts(Integer numAccounts) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAssetType(AssetClass assetType) voidsetClosingPrice(BigDecimal closingPrice) voidsetCusip(BigDecimal cusip) voidsetLongMarketValue(BigDecimal longMarketValue) voidsetLongQty(BigDecimal longQty) voidsetNumAccounts(Integer numAccounts) voidsetShortMarketValue(BigDecimal shortMarketValue) voidsetShortQty(BigDecimal shortQty) voidshortMarketValue(BigDecimal shortMarketValue) shortQty(BigDecimal shortQty) toJson()Convert an instance of AggregatePositionResponse 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_ASSET_TYPE
- See Also:
-
SERIALIZED_NAME_CLOSING_PRICE
- See Also:
-
SERIALIZED_NAME_CUSIP
- See Also:
-
SERIALIZED_NAME_LONG_MARKET_VALUE
- See Also:
-
SERIALIZED_NAME_LONG_QTY
- See Also:
-
SERIALIZED_NAME_NUM_ACCOUNTS
- See Also:
-
SERIALIZED_NAME_SHORT_MARKET_VALUE
- See Also:
-
SERIALIZED_NAME_SHORT_QTY
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AggregatePositionResponse
public AggregatePositionResponse()
-
-
Method Details
-
assetType
-
getAssetType
Get assetType- Returns:
- assetType
-
setAssetType
-
closingPrice
-
getClosingPrice
EOD asset price per share at session close- Returns:
- closingPrice
-
setClosingPrice
-
cusip
-
getCusip
Cusip (9 digits, can start with 0's)- Returns:
- cusip
-
setCusip
-
longMarketValue
-
getLongMarketValue
Aggregate notional dollar amount of the partner's long positions- Returns:
- longMarketValue
-
setLongMarketValue
-
longQty
-
getLongQty
Aggregate number of shares that the partner is long- Returns:
- longQty
-
setLongQty
-
numAccounts
-
getNumAccounts
Number of accounts that have a position in this asset (either long or short)- Returns:
- numAccounts
-
setNumAccounts
-
shortMarketValue
-
getShortMarketValue
Aggregate notional dollar amount of the partner's short positions- Returns:
- shortMarketValue
-
setShortMarketValue
-
shortQty
-
getShortQty
Aggregate number of shares that the partner is short- Returns:
- shortQty
-
setShortQty
-
symbol
-
getSymbol
Symbol of 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 AggregatePositionResponse 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 AggregatePositionResponse
-
fromJson
Create an instance of AggregatePositionResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AggregatePositionResponse
- Throws:
IOException- if the JSON string is invalid with respect to AggregatePositionResponse
-
toJson
Convert an instance of AggregatePositionResponse to an JSON string- Returns:
- JSON string
-