Enum Class PortfolioRunStatus
- All Implemented Interfaces:
Serializable,Comparable<PortfolioRunStatus>,Constable
| Status | Final | Represented State | Notes | |:------------------:|:-----:|:--------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------:| | QUEUED | No | The run has been queued, waiting for our system to process it. | Runs only executed when the US market is open and there's at least 15 minutes before the market closes. | | IN_PROGRESS | No | Portfolio adjustment is in progress. | | | CANCELED | Yes | Portfolio run canceled, before being picked up by Alpaca's background processing | | | CANCELED_MID_RUN | Yes | Portfolio run canceled while executing. | The portfolio's state is in between the pre-run and post-run state, manual remediation or job re-run is recommended. | | ERROR | Yes | There was an error while rebalancing the portfolio. | The portfolio's state is in between the pre-run and post-run state, manual remediation or job re-run is recommended. | | TIMEOUT | Yes | A timeout occurred while rebalancing the portfolio. | The portfolio's state is in between the pre-run and post-run state, manual remediation or job re-run is recommended. | | COMPLETED_ADJUSTED | Yes | The portfolio has been adjusted | The adjustments have been prepared, but the run details haven't yet updated with the list of resulting orders | | COMPLETED_SUCCESS | Yes | The portfolio has been adjusted, run status updated | |
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic PortfolioRunStatusgetValue()toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) static PortfolioRunStatusReturns the enum constant of this class with the specified name.static PortfolioRunStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
QUEUED
-
IN_PROGRESS
-
CANCELED
-
CANCELED_MID_RUN
-
ERROR
-
TIMEOUT
-
COMPLETED_ADJUSTED
-
COMPLETED_SUCCESS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
- Overrides:
toStringin classEnum<PortfolioRunStatus>
-
fromValue
-
validateJsonElement
- Throws:
IOException
-