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.28.0")
public class PortfolioRun
extends Object
implements Serializable
PortfolioRun
- See Also:
-
Nested Class Summary
Nested Classes -
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 IDGet initiatedFromArray of executed orders for this runPortfolio ID for given runExplainer text in case of failed runsArray of skipped order for this runGet statusgetType()Get typeRFC3339 formatConsidered weighting for this runinthashCode()initiatedFrom(PortfolioRunInitiator 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(PortfolioRunInitiator initiatedFrom) voidvoidsetPortfolioId(String portfolioId) voidvoidsetSkippedOrders(List<SkippedOrder> skippedOrders) voidsetStatus(PortfolioRunStatus status) voidsetType(PortfolioRunType 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(PortfolioRunType 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
Get initiatedFrom- 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
Get type- 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
-