public class Option extends java.lang.Object implements ApiElement
/options/...
Robinhood Representational State
Transfer (REST) endpoints. Note that this option representation includes
support for multi-leg options.
For further domain knowledge on options, see the OptionList Investopedia article.
Constructor and Description |
---|
Option() |
Modifier and Type | Method and Description |
---|---|
SimpleOption |
asSimpleOption()
Convert this
Option to a SimpleOption |
java.math.BigDecimal |
getAverageOpenPrice() |
java.lang.String |
getChainUrl() |
java.time.ZonedDateTime |
getCreatedAt() |
java.lang.String |
getDirection() |
java.lang.String |
getId() |
java.math.BigDecimal |
getIntradayAverageOpenPrice() |
java.lang.String |
getIntradayDirection() |
java.math.BigDecimal |
getIntradayQuantity() |
java.util.List<Leg> |
getLegs() |
java.math.BigDecimal |
getQuantity() |
java.lang.String |
getStrategy() |
java.lang.String |
getSymbol() |
java.math.BigDecimal |
getTradeValueMultiplier() |
java.time.ZonedDateTime |
getUpdatedAt() |
boolean |
isSimpleOption() |
boolean |
requiresAuth() |
public boolean requiresAuth()
requiresAuth
in interface ApiElement
public java.lang.String getId()
public java.math.BigDecimal getAverageOpenPrice()
public java.lang.String getChainUrl()
public java.time.ZonedDateTime getCreatedAt()
public java.lang.String getDirection()
public java.math.BigDecimal getIntradayAverageOpenPrice()
public java.lang.String getIntradayDirection()
public java.math.BigDecimal getIntradayQuantity()
public java.util.List<Leg> getLegs()
public java.math.BigDecimal getQuantity()
public java.lang.String getStrategy()
public java.lang.String getSymbol()
public java.math.BigDecimal getTradeValueMultiplier()
public java.time.ZonedDateTime getUpdatedAt()
public boolean isSimpleOption()
public SimpleOption asSimpleOption() throws NonSimpleOptionException
Option
to a SimpleOption
NonSimpleOptionException
- If the option cannot be converted