Class Account
java.lang.Object
markets.alpaca.client.openapi.broker.model.Account
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Account
extends Object
implements Serializable
Represents high level account info. Used when returning entire account information would not be useful like the getAllAccounts operation
- See Also:
-
Nested Class Summary
Nested Classes -
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 Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountNumber(String accountNumber) accountType(AccountType accountType) addAgreementsItem(Agreement agreementsItem) addDocumentsItem(OwnerDocument documentsItem) addEnabledAssetsItem(AssetClass enabledAssetsItem) agreements(List<Agreement> agreements) allowInstantAch(Boolean allowInstantAch) cashInterest(AccountCashInterestResponse cashInterest) createdAt(OffsetDateTime createdAt) cryptoStatus(AccountStatus cryptoStatus) disclosures(Disclosures disclosures) documents(List<OwnerDocument> documents) enabledAssets(List<AssetClass> enabledAssets) booleanfpsl(AccountFPSLResponse fpsl) static AccountCreate an instance of Account given an JSON stringA human-readable account number that can be shown to the end userGet accountTypeReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get agreementsDetermines whether the account is enabled for Instant ACH by the partner.Get cashInterestGet contactTimestamp (RFC3339) of account creation.Get cryptoStatus\"USD\" // US Dollar \"JPY\" // Japanese Yen \"EUR\" // Euro \"CAD\" // Canadian Dollar \"GBP\" // British Pound Sterling \"CHF\" // Swiss Franc \"TRY\" // Turkish Lira \"AUD\" // Australian Dollar \"CZK\" // Czech Koruna \"SEK\" // Swedish Krona \"DKK\" // Danish Krone \"SGD\" // Singapore Dollar \"HKD\" // Hong Kong Dollar \"HUF\" // Hungarian Forint \"NZD\" // New Zealand Dollar \"NOK\" // Norwegian Krone \"PLN\" // Poland ZłotyGet disclosuresThe documents associated with the primary owner of the accountAssets the user has enabled and is able to trade once status and/or crypto_status are ACTIVEgetFpsl()Get fpslgetId()UUID that identifies the account for later referenceGet identityIndicates whether the account is blocked for Instant ACH by Alpaca.EOD equity calculation (cash + long market value + short market value)UUID that identifies the primary account holder (party) for accounts opened under the Multi-Live Accounts (MLA) flow.Get statusGet trustedContactinthashCode()instantAchBlocked(Boolean instantAchBlocked) lastEquity(BigDecimal lastEquity) primaryAccountHolderId(UUID primaryAccountHolderId) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountNumber(String accountNumber) voidsetAccountType(AccountType accountType) voidsetAgreements(List<Agreement> agreements) voidsetAllowInstantAch(Boolean allowInstantAch) voidsetCashInterest(AccountCashInterestResponse cashInterest) voidsetContact(Contact contact) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCryptoStatus(AccountStatus cryptoStatus) voidsetCurrency(String currency) voidsetDisclosures(Disclosures disclosures) voidsetDocuments(List<OwnerDocument> documents) voidsetEnabledAssets(List<AssetClass> enabledAssets) voidsetFpsl(AccountFPSLResponse fpsl) voidvoidsetIdentity(Identity identity) voidsetInstantAchBlocked(Boolean instantAchBlocked) voidsetLastEquity(BigDecimal lastEquity) voidsetPrimaryAccountHolderId(UUID primaryAccountHolderId) voidsetStatus(AccountStatus status) voidsetTrustedContact(TrustedContact trustedContact) status(AccountStatus status) toJson()Convert an instance of Account to an JSON stringtoString()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_NUMBER
- See Also:
-
SERIALIZED_NAME_ACCOUNT_TYPE
- See Also:
-
SERIALIZED_NAME_AGREEMENTS
- See Also:
-
SERIALIZED_NAME_ALLOW_INSTANT_ACH
- See Also:
-
SERIALIZED_NAME_CASH_INTEREST
- See Also:
-
SERIALIZED_NAME_CONTACT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CRYPTO_STATUS
- See Also:
-
SERIALIZED_NAME_CURRENCY
- 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_ID
- See Also:
-
SERIALIZED_NAME_IDENTITY
- See Also:
-
SERIALIZED_NAME_INSTANT_ACH_BLOCKED
- See Also:
-
SERIALIZED_NAME_LAST_EQUITY
- See Also:
-
SERIALIZED_NAME_PRIMARY_ACCOUNT_HOLDER_ID
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TRUSTED_CONTACT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
accountNumber
-
getAccountNumber
A human-readable account number that can be shown to the end user- Returns:
- accountNumber
-
setAccountNumber
-
accountType
-
getAccountType
Get accountType- Returns:
- accountType
-
setAccountType
-
agreements
-
addAgreementsItem
-
getAgreements
Get agreements- Returns:
- agreements
-
setAgreements
-
allowInstantAch
-
getAllowInstantAch
Determines whether the account is enabled for Instant ACH by the partner.- Returns:
- allowInstantAch
-
setAllowInstantAch
-
cashInterest
-
getCashInterest
Get cashInterest- Returns:
- cashInterest
-
setCashInterest
-
contact
-
getContact
Get contact- Returns:
- contact
-
setContact
-
createdAt
-
getCreatedAt
Timestamp (RFC3339) of account creation.- Returns:
- createdAt
-
setCreatedAt
-
cryptoStatus
-
getCryptoStatus
Get cryptoStatus- Returns:
- cryptoStatus
-
setCryptoStatus
-
currency
-
getCurrency
\"USD\" // US Dollar \"JPY\" // Japanese Yen \"EUR\" // Euro \"CAD\" // Canadian Dollar \"GBP\" // British Pound Sterling \"CHF\" // Swiss Franc \"TRY\" // Turkish Lira \"AUD\" // Australian Dollar \"CZK\" // Czech Koruna \"SEK\" // Swedish Krona \"DKK\" // Danish Krone \"SGD\" // Singapore Dollar \"HKD\" // Hong Kong Dollar \"HUF\" // Hungarian Forint \"NZD\" // New Zealand Dollar \"NOK\" // Norwegian Krone \"PLN\" // Poland Złoty- Returns:
- currency
-
setCurrency
-
disclosures
-
getDisclosures
Get disclosures- Returns:
- disclosures
-
setDisclosures
-
documents
-
addDocumentsItem
-
getDocuments
The documents associated with the primary owner of the account- Returns:
- documents
-
setDocuments
-
enabledAssets
-
addEnabledAssetsItem
-
getEnabledAssets
Assets the user has enabled and is able to trade once status and/or crypto_status are ACTIVE- Returns:
- enabledAssets
-
setEnabledAssets
-
fpsl
-
getFpsl
Get fpsl- Returns:
- fpsl
-
setFpsl
-
id
-
getId
UUID that identifies the account for later reference- Returns:
- id
-
setId
-
identity
-
getIdentity
Get identity- Returns:
- identity
-
setIdentity
-
instantAchBlocked
-
getInstantAchBlocked
Indicates whether the account is blocked for Instant ACH by Alpaca. Defaults to false when the partner creates the account. If the partner has set allow_instant_ach to true but instant_ach_blocked is true, then the account is blocked for Instant ACH irrespective of the fact that the partner has it enabled.- Returns:
- instantAchBlocked
-
setInstantAchBlocked
-
lastEquity
-
getLastEquity
EOD equity calculation (cash + long market value + short market value)- Returns:
- lastEquity
-
setLastEquity
-
-
getPrimaryAccountHolderId
UUID that identifies the primary account holder (party) for accounts opened under the Multi-Live Accounts (MLA) flow. Only populated when the account was created by referencing an existing account holder via `primary_account_holder_id` on `POST /v1/accounts`. Otherwise `null`. Currently only supported for `account_type` of `trading` and `ira`.- Returns:
- primaryAccountHolderId
-
setPrimaryAccountHolderId
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
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 Account 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 Account
-
fromJson
Create an instance of Account given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Account
- Throws:
IOException- if the JSON string is invalid with respect to Account
-
toJson
Convert an instance of Account to an JSON string- Returns:
- JSON string
-