Class CommonREOActivityV2

java.lang.Object
markets.alpaca.client.openapi.trading.model.CommonREOActivityV2
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.25.0") public class CommonREOActivityV2 extends Object implements Serializable
Reorganization (REO) activity sub-types: - **REOS**: Stock only (1 or more stock legs) - **REOC**: Cash only (one cash leg) - **REOSC**: Stock and cash
See Also:
  • Field Details

  • Constructor Details

    • CommonREOActivityV2

      public CommonREOActivityV2()
  • Method Details

    • cashPayout

      public CommonREOActivityV2 cashPayout(@Nullable BigDecimal cashPayout)
    • getCashPayout

      @Nullable public BigDecimal getCashPayout()
      Cash payout amount
      Returns:
      cashPayout
    • setCashPayout

      public void setCashPayout(@Nullable BigDecimal cashPayout)
    • cashRate

      public CommonREOActivityV2 cashRate(@Nullable BigDecimal cashRate)
    • getCashRate

      @Nullable public BigDecimal getCashRate()
      Cash rate per share
      Returns:
      cashRate
    • setCashRate

      public void setCashRate(@Nullable BigDecimal cashRate)
    • cusip

      public CommonREOActivityV2 cusip(@Nullable String cusip)
    • getCusip

      @Nullable public String getCusip()
      CUSIP received on this stock leg
      Returns:
      cusip
    • setCusip

      public void setCusip(@Nullable String cusip)
    • effectiveDate

      public CommonREOActivityV2 effectiveDate(@Nullable LocalDate effectiveDate)
    • getEffectiveDate

      @Nullable public LocalDate getEffectiveDate()
      Effective date of the reorganization
      Returns:
      effectiveDate
    • setEffectiveDate

      public void setEffectiveDate(@Nullable LocalDate effectiveDate)
    • isin

      public CommonREOActivityV2 isin(@Nullable String isin)
    • getIsin

      @Nullable public String getIsin()
      ISIN received on this stock leg
      Returns:
      isin
    • setIsin

      public void setIsin(@Nullable String isin)
    • newRate

      public CommonREOActivityV2 newRate(@Nullable BigDecimal newRate)
    • getNewRate

      @Nullable public BigDecimal getNewRate()
      New ratio for this stock leg
      Returns:
      newRate
    • setNewRate

      public void setNewRate(@Nullable BigDecimal newRate)
    • payableDate

      public CommonREOActivityV2 payableDate(@Nonnull LocalDate payableDate)
    • getPayableDate

      @Nonnull public LocalDate getPayableDate()
      Payable date of the reorganization
      Returns:
      payableDate
    • setPayableDate

      public void setPayableDate(@Nonnull LocalDate payableDate)
    • qty

      public CommonREOActivityV2 qty(@Nullable BigDecimal qty)
    • getQty

      @Nullable public BigDecimal getQty()
      Quantity received on this stock leg
      Returns:
      qty
    • setQty

      public void setQty(@Nullable BigDecimal qty)
    • removedQty

      public CommonREOActivityV2 removedQty(@Nullable BigDecimal removedQty)
    • getRemovedQty

      @Nullable public BigDecimal getRemovedQty()
      Positive quantity removed from the source position
      Returns:
      removedQty
    • setRemovedQty

      public void setRemovedQty(@Nullable BigDecimal removedQty)
    • sourceCusip

      public CommonREOActivityV2 sourceCusip(@Nonnull String sourceCusip)
    • getSourceCusip

      @Nonnull public String getSourceCusip()
      CUSIP of the source security
      Returns:
      sourceCusip
    • setSourceCusip

      public void setSourceCusip(@Nonnull String sourceCusip)
    • sourceIsin

      public CommonREOActivityV2 sourceIsin(@Nullable String sourceIsin)
    • getSourceIsin

      @Nullable public String getSourceIsin()
      ISIN of the source security
      Returns:
      sourceIsin
    • setSourceIsin

      public void setSourceIsin(@Nullable String sourceIsin)
    • sourceQty

      public CommonREOActivityV2 sourceQty(@Nullable BigDecimal sourceQty)
    • getSourceQty

      @Nullable public BigDecimal getSourceQty()
      Source position quantity
      Returns:
      sourceQty
    • setSourceQty

      public void setSourceQty(@Nullable BigDecimal sourceQty)
    • sourceRate

      public CommonREOActivityV2 sourceRate(@Nullable BigDecimal sourceRate)
    • getSourceRate

      @Nullable public BigDecimal getSourceRate()
      Source ratio for this stock leg
      Returns:
      sourceRate
    • setSourceRate

      public void setSourceRate(@Nullable BigDecimal sourceRate)
    • sourceSymbol

      public CommonREOActivityV2 sourceSymbol(@Nonnull String sourceSymbol)
    • getSourceSymbol

      @Nonnull public String getSourceSymbol()
      Symbol of the source security
      Returns:
      sourceSymbol
    • setSourceSymbol

      public void setSourceSymbol(@Nonnull String sourceSymbol)
    • symbol

      public CommonREOActivityV2 symbol(@Nullable String symbol)
    • getSymbol

      @Nullable public String getSymbol()
      Symbol received on this stock leg
      Returns:
      symbol
    • setSymbol

      public void setSymbol(@Nullable String symbol)
    • putAdditionalProperty

      public CommonREOActivityV2 putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the CommonREOActivityV2 instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 CommonREOActivityV2
    • fromJson

      public static CommonREOActivityV2 fromJson(String jsonString) throws IOException
      Create an instance of CommonREOActivityV2 given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CommonREOActivityV2
      Throws:
      IOException - if the JSON string is invalid with respect to CommonREOActivityV2
    • toJson

      public String toJson()
      Convert an instance of CommonREOActivityV2 to an JSON string
      Returns:
      JSON string