Class AccountCreationRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.AccountCreationRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AccountCreationRequest
extends Object
implements Serializable
Represents the fields required to create a new account
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe user's investment objective.static enumThe expected period of time the user plan to invest to achieve his/her financial goal(s).static enumThe user's ability to quickly and easily convert to cash all or a portion of the investments in this account without experiencing significant loss in value.static enumThe user's investment risk tolerance. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountSubType(AccountSubType accountSubType) accountType(AccountType accountType) addAgreementsItem(Agreement agreementsItem) addBeneficiariesItem(Beneficiary beneficiariesItem) addDocumentsItem(OwnerDocumentUploadRequest documentsItem) addEnabledAssetsItem(AssetClass enabledAssetsItem) agreements(List<Agreement> agreements) allowInstantAch(Boolean allowInstantAch) beneficiaries(List<Beneficiary> beneficiaries) cashInterest(AccountCashInterestPost cashInterest) disclosures(Disclosures disclosures) documents(List<OwnerDocumentUploadRequest> documents) enabledAssets(List<AssetClass> enabledAssets) booleanfpsl(AccountFPSLPost fpsl) static AccountCreationRequestCreate an instance of AccountCreationRequest given an JSON stringGet accountSubTypeGet accountTypeReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The client must present the Alpaca Account and Margin Agreements to the end user, and confirm they have read and agreed to the agreement.Determines whether the account will be enabled for Instant ACH by the partner.IRA Account only.Get cashInterestGet contactGet disclosuresGet documentsWill default to `us_equity`.getFpsl()Get fpslGet identityThe user's investment objective.The expected period of time the user plan to invest to achieve his/her financial goal(s).The user's ability to quickly and easily convert to cash all or a portion of the investments in this account without experiencing significant loss in value.UUID of an existing account holder (party) to use as the primary account holder for the new account.The user's investment risk tolerance.Get tradingConfigurationsGet trustedContactinthashCode()investmentObjective(AccountCreationRequest.InvestmentObjectiveEnum investmentObjective) investmentTimeHorizon(AccountCreationRequest.InvestmentTimeHorizonEnum investmentTimeHorizon) liquidityNeeds(AccountCreationRequest.LiquidityNeedsEnum liquidityNeeds) primaryAccountHolderId(UUID primaryAccountHolderId) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.riskTolerance(AccountCreationRequest.RiskToleranceEnum riskTolerance) voidsetAccountSubType(AccountSubType accountSubType) voidsetAccountType(AccountType accountType) voidsetAgreements(List<Agreement> agreements) voidsetAllowInstantAch(Boolean allowInstantAch) voidsetBeneficiaries(List<Beneficiary> beneficiaries) voidsetCashInterest(AccountCashInterestPost cashInterest) voidsetContact(Contact contact) voidsetDisclosures(Disclosures disclosures) voidsetDocuments(List<OwnerDocumentUploadRequest> documents) voidsetEnabledAssets(List<AssetClass> enabledAssets) voidsetFpsl(AccountFPSLPost fpsl) voidsetIdentity(Identity identity) voidsetInvestmentObjective(AccountCreationRequest.InvestmentObjectiveEnum investmentObjective) voidsetInvestmentTimeHorizon(AccountCreationRequest.InvestmentTimeHorizonEnum investmentTimeHorizon) voidsetLiquidityNeeds(AccountCreationRequest.LiquidityNeedsEnum liquidityNeeds) voidsetPrimaryAccountHolderId(UUID primaryAccountHolderId) voidsetRiskTolerance(AccountCreationRequest.RiskToleranceEnum riskTolerance) voidsetTradingConfigurations(AccountConfigurations tradingConfigurations) voidsetTrustedContact(TrustedContact trustedContact) toJson()Convert an instance of AccountCreationRequest to an JSON stringtoString()tradingConfigurations(AccountConfigurations tradingConfigurations) trustedContact(TrustedContact trustedContact) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_SUB_TYPE
- See Also:
-
SERIALIZED_NAME_ACCOUNT_TYPE
- See Also:
-
SERIALIZED_NAME_AGREEMENTS
- See Also:
-
SERIALIZED_NAME_ALLOW_INSTANT_ACH
- See Also:
-
SERIALIZED_NAME_BENEFICIARIES
- See Also:
-
SERIALIZED_NAME_CASH_INTEREST
- See Also:
-
SERIALIZED_NAME_CONTACT
- See Also:
-
SERIALIZED_NAME_DISCLOSURES
- See Also:
-
SERIALIZED_NAME_DOCUMENTS
- See Also:
-
SERIALIZED_NAME_ENABLED_ASSETS
- See Also:
-
SERIALIZED_NAME_FPSL
- See Also:
-
SERIALIZED_NAME_IDENTITY
- See Also:
-
SERIALIZED_NAME_INVESTMENT_OBJECTIVE
- See Also:
-
SERIALIZED_NAME_INVESTMENT_TIME_HORIZON
- See Also:
-
SERIALIZED_NAME_LIQUIDITY_NEEDS
- See Also:
-
SERIALIZED_NAME_PRIMARY_ACCOUNT_HOLDER_ID
- See Also:
-
SERIALIZED_NAME_RISK_TOLERANCE
- See Also:
-
SERIALIZED_NAME_TRADING_CONFIGURATIONS
- See Also:
-
SERIALIZED_NAME_TRUSTED_CONTACT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountCreationRequest
public AccountCreationRequest()
-
-
Method Details
-
accountSubType
-
getAccountSubType
Get accountSubType- Returns:
- accountSubType
-
setAccountSubType
-
accountType
-
getAccountType
Get accountType- Returns:
- accountType
-
setAccountType
-
agreements
-
addAgreementsItem
-
getAgreements
The client must present the Alpaca Account and Margin Agreements to the end user, and confirm they have read and agreed to the agreement.- Returns:
- agreements
-
setAgreements
-
allowInstantAch
-
getAllowInstantAch
Determines whether the account will be enabled for Instant ACH by the partner. Defaults to false if not provided.- Returns:
- allowInstantAch
-
setAllowInstantAch
-
beneficiaries
-
addBeneficiariesItem
-
getBeneficiaries
IRA Account only. A user can submit max 6 beneficiaries.- Returns:
- beneficiaries
-
setBeneficiaries
-
cashInterest
-
getCashInterest
Get cashInterest- Returns:
- cashInterest
-
setCashInterest
-
contact
-
getContact
Get contact- Returns:
- contact
-
setContact
-
disclosures
-
getDisclosures
Get disclosures- Returns:
- disclosures
-
setDisclosures
-
documents
-
addDocumentsItem
-
getDocuments
Get documents- Returns:
- documents
-
setDocuments
-
enabledAssets
-
addEnabledAssetsItem
-
getEnabledAssets
Will default to `us_equity`. Alpaca has the ability to update the default value upon request.- Returns:
- enabledAssets
-
setEnabledAssets
-
fpsl
-
getFpsl
Get fpsl- Returns:
- fpsl
-
setFpsl
-
identity
-
getIdentity
Get identity- Returns:
- identity
-
setIdentity
-
investmentObjective
public AccountCreationRequest investmentObjective(@Nullable AccountCreationRequest.InvestmentObjectiveEnum investmentObjective) -
getInvestmentObjective
The user's investment objective. This field should be used instead of the deprecated `investment_objective` under identity.- Returns:
- investmentObjective
-
setInvestmentObjective
public void setInvestmentObjective(@Nullable AccountCreationRequest.InvestmentObjectiveEnum investmentObjective) -
investmentTimeHorizon
public AccountCreationRequest investmentTimeHorizon(@Nullable AccountCreationRequest.InvestmentTimeHorizonEnum investmentTimeHorizon) -
getInvestmentTimeHorizon
The expected period of time the user plan to invest to achieve his/her financial goal(s). This field should be used instead of the deprecated `investment_time_horizon` under identity.- Returns:
- investmentTimeHorizon
-
setInvestmentTimeHorizon
public void setInvestmentTimeHorizon(@Nullable AccountCreationRequest.InvestmentTimeHorizonEnum investmentTimeHorizon) -
liquidityNeeds
public AccountCreationRequest liquidityNeeds(@Nullable AccountCreationRequest.LiquidityNeedsEnum liquidityNeeds) -
getLiquidityNeeds
The user's ability to quickly and easily convert to cash all or a portion of the investments in this account without experiencing significant loss in value. This field should be used instead of the deprecated `liquidity_needs` under identity.- Returns:
- liquidityNeeds
-
setLiquidityNeeds
-
-
getPrimaryAccountHolderId
UUID of an existing account holder (party) to use as the primary account holder for the new account. Used to open additional accounts under the Multi-Live Accounts (MLA) flow. When present: - `contact` and `identity` must be omitted (returns HTTP 400 otherwise). - `agreements` must still be supplied (e.g. `customer_agreement` for trading; `customer_agreement` and `etc_agreement` for IRA). - Only `account_type` values of `trading` and `ira` are supported.- Returns:
- primaryAccountHolderId
-
setPrimaryAccountHolderId
-
riskTolerance
public AccountCreationRequest riskTolerance(@Nullable AccountCreationRequest.RiskToleranceEnum riskTolerance) -
getRiskTolerance
The user's investment risk tolerance. This field should be used instead of the deprecated `risk_tolerance` under identity.- Returns:
- riskTolerance
-
setRiskTolerance
-
tradingConfigurations
public AccountCreationRequest tradingConfigurations(@Nullable AccountConfigurations tradingConfigurations) -
getTradingConfigurations
Get tradingConfigurations- Returns:
- tradingConfigurations
-
setTradingConfigurations
-
trustedContact
-
getTrustedContact
Get trustedContact- Returns:
- trustedContact
-
setTrustedContact
-
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 AccountCreationRequest 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 AccountCreationRequest
-
fromJson
Create an instance of AccountCreationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountCreationRequest
- Throws:
IOException- if the JSON string is invalid with respect to AccountCreationRequest
-
toJson
Convert an instance of AccountCreationRequest to an JSON string- Returns:
- JSON string
-