Class AdminConfigurationsEvent
java.lang.Object
markets.alpaca.client.openapi.broker.model.AdminConfigurationsEvent
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AdminConfigurationsEvent
extends Object
implements Serializable
Represents a change to admin configurations, as broadcast over the **events** streaming API. Only fields whose value changed are included; unrelated update events will not include a flag that did not change. Depending on the type of the Admin Configuration, the sent event will behave differently. For bool flags we are only sending the new value. For example, the following payload means that the disable_shorting flag was set to true: ``` { \"disable_shorting\": true } ``` For other data types, we are embedding the old and new values into the payload. For example changing the max_margin_multiplier from 4 to 1 will yield this payload: ``` { \"max_margin_multiplier\": { \"from\": 4, \"to\": 1 } } ``` Introducing an override value from the default will yield a null value as `from`. For example restricting the max_margin_multiplier to 1 from default will yield the following payload: ``` { \"max_margin_multiplier\": { \"from\": null, \"to\": 1 } } ```
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacctDailyTransferLimit(AdminConfigurationsEventAcctDailyTransferLimit acctDailyTransferLimit) allowInstantAch(Boolean allowInstantAch) disableAlgodashAccess(Boolean disableAlgodashAccess) disableApiKey(Boolean disableApiKey) disableCrypto(Boolean disableCrypto) disableDayTrading(Boolean disableDayTrading) disableFractional(Boolean disableFractional) disableShorting(Boolean disableShorting) booleanstatic AdminConfigurationsEventCreate an instance of AdminConfigurationsEvent given an JSON stringGet acctDailyTransferLimitReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.If true, the account is allowed to perform instant ACHIf true, the account is allowed to access algo dashIf true, the account's API key will be disabledIf true, the account is not allowed to trade cryptosIf true, the account is not allowed to day trade (e.g.If true, the account cannot create orders for fractional share positionsIf true the account is not allowed to create short position ordersIf true, incoming transfers to this account are rejectedGet maxMarginMultiplierGet maxOptionsTradingLevelIf true, outgoing transfers from this account are rejectedGet restrictToLiquidationReasonsinthashCode()incomingTransfersBlocked(Boolean incomingTransfersBlocked) maxMarginMultiplier(AdminConfigurationsEventAcctDailyTransferLimit maxMarginMultiplier) maxOptionsTradingLevel(AdminConfigurationsEventAcctDailyTransferLimit maxOptionsTradingLevel) outgoingTransfersBlocked(Boolean outgoingTransfersBlocked) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.restrictToLiquidationReasons(RestrictToLiquidationReasons restrictToLiquidationReasons) voidsetAcctDailyTransferLimit(AdminConfigurationsEventAcctDailyTransferLimit acctDailyTransferLimit) voidsetAllowInstantAch(Boolean allowInstantAch) voidsetDisableAlgodashAccess(Boolean disableAlgodashAccess) voidsetDisableApiKey(Boolean disableApiKey) voidsetDisableCrypto(Boolean disableCrypto) voidsetDisableDayTrading(Boolean disableDayTrading) voidsetDisableFractional(Boolean disableFractional) voidsetDisableShorting(Boolean disableShorting) voidsetIncomingTransfersBlocked(Boolean incomingTransfersBlocked) voidsetMaxMarginMultiplier(AdminConfigurationsEventAcctDailyTransferLimit maxMarginMultiplier) voidsetMaxOptionsTradingLevel(AdminConfigurationsEventAcctDailyTransferLimit maxOptionsTradingLevel) voidsetOutgoingTransfersBlocked(Boolean outgoingTransfersBlocked) voidsetRestrictToLiquidationReasons(RestrictToLiquidationReasons restrictToLiquidationReasons) toJson()Convert an instance of AdminConfigurationsEvent to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCT_DAILY_TRANSFER_LIMIT
- See Also:
-
SERIALIZED_NAME_ALLOW_INSTANT_ACH
- See Also:
-
SERIALIZED_NAME_DISABLE_ALGODASH_ACCESS
- See Also:
-
SERIALIZED_NAME_DISABLE_API_KEY
- See Also:
-
SERIALIZED_NAME_DISABLE_CRYPTO
- See Also:
-
SERIALIZED_NAME_DISABLE_DAY_TRADING
- See Also:
-
SERIALIZED_NAME_DISABLE_FRACTIONAL
- See Also:
-
SERIALIZED_NAME_DISABLE_SHORTING
- See Also:
-
SERIALIZED_NAME_INCOMING_TRANSFERS_BLOCKED
- See Also:
-
SERIALIZED_NAME_MAX_MARGIN_MULTIPLIER
- See Also:
-
SERIALIZED_NAME_MAX_OPTIONS_TRADING_LEVEL
- See Also:
-
SERIALIZED_NAME_OUTGOING_TRANSFERS_BLOCKED
- See Also:
-
SERIALIZED_NAME_RESTRICT_TO_LIQUIDATION_REASONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AdminConfigurationsEvent
public AdminConfigurationsEvent()
-
-
Method Details
-
acctDailyTransferLimit
public AdminConfigurationsEvent acctDailyTransferLimit(@Nullable AdminConfigurationsEventAcctDailyTransferLimit acctDailyTransferLimit) -
getAcctDailyTransferLimit
Get acctDailyTransferLimit- Returns:
- acctDailyTransferLimit
-
setAcctDailyTransferLimit
public void setAcctDailyTransferLimit(@Nullable AdminConfigurationsEventAcctDailyTransferLimit acctDailyTransferLimit) -
allowInstantAch
-
getAllowInstantAch
If true, the account is allowed to perform instant ACH- Returns:
- allowInstantAch
-
setAllowInstantAch
-
disableAlgodashAccess
-
getDisableAlgodashAccess
If true, the account is allowed to access algo dash- Returns:
- disableAlgodashAccess
-
setDisableAlgodashAccess
-
disableApiKey
-
getDisableApiKey
If true, the account's API key will be disabled- Returns:
- disableApiKey
-
setDisableApiKey
-
disableCrypto
-
getDisableCrypto
If true, the account is not allowed to trade cryptos- Returns:
- disableCrypto
-
setDisableCrypto
-
disableDayTrading
-
getDisableDayTrading
If true, the account is not allowed to day trade (e.g. buy and sell the same security on the same day)- Returns:
- disableDayTrading
-
setDisableDayTrading
-
disableFractional
-
getDisableFractional
If true, the account cannot create orders for fractional share positions- Returns:
- disableFractional
-
setDisableFractional
-
disableShorting
-
getDisableShorting
If true the account is not allowed to create short position orders- Returns:
- disableShorting
-
setDisableShorting
-
incomingTransfersBlocked
public AdminConfigurationsEvent incomingTransfersBlocked(@Nullable Boolean incomingTransfersBlocked) -
getIncomingTransfersBlocked
If true, incoming transfers to this account are rejected- Returns:
- incomingTransfersBlocked
-
setIncomingTransfersBlocked
-
maxMarginMultiplier
public AdminConfigurationsEvent maxMarginMultiplier(@Nullable AdminConfigurationsEventAcctDailyTransferLimit maxMarginMultiplier) -
getMaxMarginMultiplier
Get maxMarginMultiplier- Returns:
- maxMarginMultiplier
-
setMaxMarginMultiplier
public void setMaxMarginMultiplier(@Nullable AdminConfigurationsEventAcctDailyTransferLimit maxMarginMultiplier) -
maxOptionsTradingLevel
public AdminConfigurationsEvent maxOptionsTradingLevel(@Nullable AdminConfigurationsEventAcctDailyTransferLimit maxOptionsTradingLevel) -
getMaxOptionsTradingLevel
Get maxOptionsTradingLevel- Returns:
- maxOptionsTradingLevel
-
setMaxOptionsTradingLevel
public void setMaxOptionsTradingLevel(@Nullable AdminConfigurationsEventAcctDailyTransferLimit maxOptionsTradingLevel) -
outgoingTransfersBlocked
public AdminConfigurationsEvent outgoingTransfersBlocked(@Nullable Boolean outgoingTransfersBlocked) -
getOutgoingTransfersBlocked
If true, outgoing transfers from this account are rejected- Returns:
- outgoingTransfersBlocked
-
setOutgoingTransfersBlocked
-
restrictToLiquidationReasons
public AdminConfigurationsEvent restrictToLiquidationReasons(@Nullable RestrictToLiquidationReasons restrictToLiquidationReasons) -
getRestrictToLiquidationReasons
Get restrictToLiquidationReasons- Returns:
- restrictToLiquidationReasons
-
setRestrictToLiquidationReasons
public void setRestrictToLiquidationReasons(@Nullable RestrictToLiquidationReasons restrictToLiquidationReasons) -
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 AdminConfigurationsEvent 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 AdminConfigurationsEvent
-
fromJson
Create an instance of AdminConfigurationsEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdminConfigurationsEvent
- Throws:
IOException- if the JSON string is invalid with respect to AdminConfigurationsEvent
-
toJson
Convert an instance of AdminConfigurationsEvent to an JSON string- Returns:
- JSON string
-