Class AccountConfigurations
java.lang.Object
markets.alpaca.client.openapi.broker.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
Represents additional configuration settings for an account
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe desired maximum options trading level.static enumall or none. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisableOvernightTrading(Boolean disableOvernightTrading) booleanfractionalTrading(Boolean fractionalTrading) static AccountConfigurationsCreate an instance of AccountConfigurations given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.If true, overnight trading is disabled.If true, account is able to participate in fractional tradingCan be \"1\" or \"2\"The desired maximum options trading level.If true, account becomes long-only mode.If set to true then Alpaca will accept orders for PTP symbols with no exception.If true, new orders are blocked.all or none.inthashCode()maxMarginMultiplier(String maxMarginMultiplier) maxOptionsTradingLevel(AccountConfigurations.MaxOptionsTradingLevelEnum maxOptionsTradingLevel) noShorting(Boolean noShorting) ptpNoExceptionEntry(String ptpNoExceptionEntry) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDisableOvernightTrading(Boolean disableOvernightTrading) voidsetFractionalTrading(Boolean fractionalTrading) voidsetMaxMarginMultiplier(String maxMarginMultiplier) voidsetMaxOptionsTradingLevel(AccountConfigurations.MaxOptionsTradingLevelEnum maxOptionsTradingLevel) voidsetNoShorting(Boolean noShorting) voidsetPtpNoExceptionEntry(String ptpNoExceptionEntry) voidsetSuspendTrade(Boolean suspendTrade) voidsetTradeConfirmEmail(AccountConfigurations.TradeConfirmEmailEnum tradeConfirmEmail) suspendTrade(Boolean suspendTrade) toJson()Convert an instance of AccountConfigurations to an JSON stringtoString()tradeConfirmEmail(AccountConfigurations.TradeConfirmEmailEnum tradeConfirmEmail) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DISABLE_OVERNIGHT_TRADING
- See Also:
-
SERIALIZED_NAME_FRACTIONAL_TRADING
- See Also:
-
SERIALIZED_NAME_MAX_MARGIN_MULTIPLIER
- See Also:
-
SERIALIZED_NAME_MAX_OPTIONS_TRADING_LEVEL
- See Also:
-
SERIALIZED_NAME_NO_SHORTING
- See Also:
-
SERIALIZED_NAME_PTP_NO_EXCEPTION_ENTRY
- See Also:
-
SERIALIZED_NAME_SUSPEND_TRADE
- See Also:
-
SERIALIZED_NAME_TRADE_CONFIRM_EMAIL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountConfigurations
public AccountConfigurations()
-
-
Method Details
-
disableOvernightTrading
-
getDisableOvernightTrading
If true, overnight trading is disabled.- Returns:
- disableOvernightTrading
-
setDisableOvernightTrading
-
fractionalTrading
-
getFractionalTrading
If true, account is able to participate in fractional trading- Returns:
- fractionalTrading
-
setFractionalTrading
-
maxMarginMultiplier
-
getMaxMarginMultiplier
Can be \"1\" or \"2\"- Returns:
- maxMarginMultiplier
-
setMaxMarginMultiplier
-
maxOptionsTradingLevel
public AccountConfigurations maxOptionsTradingLevel(@Nullable AccountConfigurations.MaxOptionsTradingLevelEnum maxOptionsTradingLevel) -
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
-
getNoShorting
If true, account becomes long-only mode.- Returns:
- noShorting
-
setNoShorting
-
ptpNoExceptionEntry
-
getPtpNoExceptionEntry
If set to true then Alpaca will accept orders for PTP symbols with no exception. Default is false.- Returns:
- ptpNoExceptionEntry
-
setPtpNoExceptionEntry
-
suspendTrade
-
getSuspendTrade
If true, new orders are blocked.- Returns:
- suspendTrade
-
setSuspendTrade
-
tradeConfirmEmail
public AccountConfigurations tradeConfirmEmail(@Nullable AccountConfigurations.TradeConfirmEmailEnum tradeConfirmEmail) -
getTradeConfirmEmail
all or none. If none, emails for order fills are not sent.- Returns:
- tradeConfirmEmail
-
setTradeConfirmEmail
public void setTradeConfirmEmail(@Nullable AccountConfigurations.TradeConfirmEmailEnum tradeConfirmEmail) -
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 AccountConfigurations 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 AccountConfigurations
-
fromJson
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
Convert an instance of AccountConfigurations to an JSON string- Returns:
- JSON string
-