Class AccountConfigurations

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class AccountConfigurations extends Object implements Serializable
The account configuration API provides custom configurations about your trading account settings. These configurations control various allow you to modify settings to suit your trading needs.
See Also:
  • Field Details

  • Constructor Details

    • AccountConfigurations

      public AccountConfigurations()
  • Method Details

    • disableOvernightTrading

      public AccountConfigurations disableOvernightTrading(@Nullable Boolean disableOvernightTrading)
    • getDisableOvernightTrading

      @Nullable public Boolean getDisableOvernightTrading()
      If true, overnight trading is disabled.
      Returns:
      disableOvernightTrading
    • setDisableOvernightTrading

      public void setDisableOvernightTrading(@Nullable Boolean disableOvernightTrading)
    • fractionalTrading

      public AccountConfigurations fractionalTrading(@Nullable Boolean fractionalTrading)
    • getFractionalTrading

      @Nullable public Boolean getFractionalTrading()
      If true, account is able to participate in fractional trading
      Returns:
      fractionalTrading
    • setFractionalTrading

      public void setFractionalTrading(@Nullable Boolean fractionalTrading)
    • maxMarginMultiplier

      public AccountConfigurations maxMarginMultiplier(@Nullable String maxMarginMultiplier)
    • getMaxMarginMultiplier

      @Nullable public String getMaxMarginMultiplier()
      Can be \"1\", \"2\", or \"4\"
      Returns:
      maxMarginMultiplier
    • setMaxMarginMultiplier

      public void setMaxMarginMultiplier(@Nullable String maxMarginMultiplier)
    • maxOptionsTradingLevel

      public AccountConfigurations maxOptionsTradingLevel(@Nullable AccountConfigurations.MaxOptionsTradingLevelEnum maxOptionsTradingLevel)
    • getMaxOptionsTradingLevel

      @Nullable public AccountConfigurations.MaxOptionsTradingLevelEnum getMaxOptionsTradingLevel()
      The desired maximum options trading level. 0=disabled, 1=Covered Call/Cash-Secured Put, 2=Long Call/Put, 3=Spreads/Straddles.
      Returns:
      maxOptionsTradingLevel
    • setMaxOptionsTradingLevel

      public void setMaxOptionsTradingLevel(@Nullable AccountConfigurations.MaxOptionsTradingLevelEnum maxOptionsTradingLevel)
    • noShorting

      public AccountConfigurations noShorting(@Nullable Boolean noShorting)
    • getNoShorting

      @Nullable public Boolean getNoShorting()
      If true, account becomes long-only mode.
      Returns:
      noShorting
    • setNoShorting

      public void setNoShorting(@Nullable Boolean noShorting)
    • ptpNoExceptionEntry

      public AccountConfigurations ptpNoExceptionEntry(@Nullable Boolean ptpNoExceptionEntry)
    • getPtpNoExceptionEntry

      @Nullable public Boolean getPtpNoExceptionEntry()
      If set to true then Alpaca will accept orders for PTP symbols with no exception. Default is false.
      Returns:
      ptpNoExceptionEntry
    • setPtpNoExceptionEntry

      public void setPtpNoExceptionEntry(@Nullable Boolean ptpNoExceptionEntry)
    • suspendTrade

      public AccountConfigurations suspendTrade(@Nullable Boolean suspendTrade)
    • getSuspendTrade

      @Nullable public Boolean getSuspendTrade()
      If true, new orders are blocked.
      Returns:
      suspendTrade
    • setSuspendTrade

      public void setSuspendTrade(@Nullable Boolean suspendTrade)
    • tradeConfirmEmail

      public AccountConfigurations tradeConfirmEmail(@Nullable String tradeConfirmEmail)
    • getTradeConfirmEmail

      @Nullable public String getTradeConfirmEmail()
      all or none. If none, emails for order fills are not sent.
      Returns:
      tradeConfirmEmail
    • setTradeConfirmEmail

      public void setTradeConfirmEmail(@Nullable String tradeConfirmEmail)
    • putAdditionalProperty

      public AccountConfigurations 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 AccountConfigurations 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 AccountConfigurations
    • fromJson

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

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