Class PortfolioRun
java.lang.Object
markets.alpaca.client.openapi.broker.model.PortfolioRun
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class PortfolioRun
extends Object
implements Serializable
PortfolioRun
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumsystem or apistatic enumfull_rebalance or invest_cash -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFailedOrdersItem(Order failedOrdersItem) addOrdersItem(Order ordersItem) addSkippedOrdersItem(SkippedOrder skippedOrdersItem) addWeightsItem(PortfolioWeights weightsItem) canceledAt(String canceledAt) completedAt(String completedAt) booleanfailedOrders(List<Order> failedOrders) static PortfolioRunCreate an instance of PortfolioRun given an JSON stringAccount ID for given runReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.RFC3339 formatRFC3339 formatArray of failed orders for this rungetId()Run IDsystem or apiArray of executed orders for this runPortfolio ID for given runExplainer text in case of failed runsArray of skipped order for this runGet statusgetType()full_rebalance or invest_cashRFC3339 formatConsidered weighting for this runinthashCode()initiatedFrom(PortfolioRun.InitiatedFromEnum initiatedFrom) portfolioId(String portfolioId) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountId(String accountId) voidsetCanceledAt(String canceledAt) voidsetCompletedAt(String completedAt) voidsetFailedOrders(List<Order> failedOrders) voidvoidsetInitiatedFrom(PortfolioRun.InitiatedFromEnum initiatedFrom) voidvoidsetPortfolioId(String portfolioId) voidvoidsetSkippedOrders(List<SkippedOrder> skippedOrders) voidsetStatus(PortfolioRunStatus status) voidsetType(PortfolioRun.TypeEnum type) voidsetUpdatedAt(String updatedAt) voidsetWeights(List<PortfolioWeights> weights) skippedOrders(List<SkippedOrder> skippedOrders) status(PortfolioRunStatus status) toJson()Convert an instance of PortfolioRun to an JSON stringtoString()type(PortfolioRun.TypeEnum type) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundweights(List<PortfolioWeights> weights)
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_CANCELED_AT
- See Also:
-
SERIALIZED_NAME_COMPLETED_AT
- See Also:
-
SERIALIZED_NAME_FAILED_ORDERS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_INITIATED_FROM
- See Also:
-
SERIALIZED_NAME_ORDERS
- See Also:
-
SERIALIZED_NAME_PORTFOLIO_ID
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_SKIPPED_ORDERS
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_WEIGHTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PortfolioRun
public PortfolioRun()
-
-
Method Details
-
accountId
-
getAccountId
Account ID for given run- Returns:
- accountId
-
setAccountId
-
canceledAt
-
getCanceledAt
RFC3339 format- Returns:
- canceledAt
-
setCanceledAt
-
completedAt
-
getCompletedAt
RFC3339 format- Returns:
- completedAt
-
setCompletedAt
-
failedOrders
-
addFailedOrdersItem
-
getFailedOrders
Array of failed orders for this run- Returns:
- failedOrders
-
setFailedOrders
-
id
-
getId
Run ID- Returns:
- id
-
setId
-
initiatedFrom
-
getInitiatedFrom
system or api- Returns:
- initiatedFrom
-
setInitiatedFrom
-
orders
-
addOrdersItem
-
getOrders
Array of executed orders for this run- Returns:
- orders
-
setOrders
-
portfolioId
-
getPortfolioId
Portfolio ID for given run- Returns:
- portfolioId
-
setPortfolioId
-
reason
-
getReason
Explainer text in case of failed runs- Returns:
- reason
-
setReason
-
skippedOrders
-
addSkippedOrdersItem
-
getSkippedOrders
Array of skipped order for this run- Returns:
- skippedOrders
-
setSkippedOrders
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
type
-
getType
full_rebalance or invest_cash- Returns:
- type
-
setType
-
updatedAt
-
getUpdatedAt
RFC3339 format- Returns:
- updatedAt
-
setUpdatedAt
-
weights
-
addWeightsItem
-
getWeights
Considered weighting for this run- Returns:
- weights
-
setWeights
-
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 PortfolioRun 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 PortfolioRun
-
fromJson
Create an instance of PortfolioRun given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PortfolioRun
- Throws:
IOException- if the JSON string is invalid with respect to PortfolioRun
-
toJson
Convert an instance of PortfolioRun to an JSON string- Returns:
- JSON string
-