Class AccountConfigurationsApi
java.lang.Object
markets.alpaca.client.openapi.trading.api.AccountConfigurationsApi
Generated client for AccountConfigurationsApi operations.
This class is generated from the configured OpenAPI spec. Operation method Javadocs include OAS summaries, descriptions, parameters, return types, response details, and external documentation links when present in the spec.
Operations
getAccountConfig: Get Account ConfigurationspatchAccountConfig: Account Configurations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet Account Configurations gets the current account configuration valuesokhttp3.CallgetAccountConfigAsync(ApiCallback<AccountConfigurations> _callback) Get Account Configurations (asynchronously) gets the current account configuration valuesokhttp3.CallgetAccountConfigCall(ApiCallback _callback) Build call for getAccountConfigGet Account Configurations gets the current account configuration valuesintpatchAccountConfig(AccountConfigurations accountConfigurations) Account Configurations Updates and returns the current account configuration valuesokhttp3.CallpatchAccountConfigAsync(AccountConfigurations accountConfigurations, ApiCallback<AccountConfigurations> _callback) Account Configurations (asynchronously) Updates and returns the current account configuration valuesokhttp3.CallpatchAccountConfigCall(AccountConfigurations accountConfigurations, ApiCallback _callback) Build call for patchAccountConfigpatchAccountConfigWithHttpInfo(AccountConfigurations accountConfigurations) Account Configurations Updates and returns the current account configuration valuesvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
AccountConfigurationsApi
public AccountConfigurationsApi() -
AccountConfigurationsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
getAccountConfigCall
Build call for getAccountConfig- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response -
-
getAccountConfig
Get Account Configurations gets the current account configuration values- Returns:
- AccountConfigurations
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response -
-
getAccountConfigWithHttpInfo
Get Account Configurations gets the current account configuration values- Returns:
- ApiResponse<AccountConfigurations>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response -
-
getAccountConfigAsync
public okhttp3.Call getAccountConfigAsync(ApiCallback<AccountConfigurations> _callback) throws ApiException Get Account Configurations (asynchronously) gets the current account configuration values- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response -
-
patchAccountConfigCall
public okhttp3.Call patchAccountConfigCall(@Nullable AccountConfigurations accountConfigurations, ApiCallback _callback) throws ApiException Build call for patchAccountConfig- Parameters:
accountConfigurations- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response -
-
patchAccountConfig
public AccountConfigurations patchAccountConfig(@Nullable AccountConfigurations accountConfigurations) throws ApiException Account Configurations Updates and returns the current account configuration values- Parameters:
accountConfigurations- (optional)- Returns:
- AccountConfigurations
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response -
-
patchAccountConfigWithHttpInfo
public ApiResponse<AccountConfigurations> patchAccountConfigWithHttpInfo(@Nullable AccountConfigurations accountConfigurations) throws ApiException Account Configurations Updates and returns the current account configuration values- Parameters:
accountConfigurations- (optional)- Returns:
- ApiResponse<AccountConfigurations>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response -
-
patchAccountConfigAsync
public okhttp3.Call patchAccountConfigAsync(@Nullable AccountConfigurations accountConfigurations, ApiCallback<AccountConfigurations> _callback) throws ApiException Account Configurations (asynchronously) Updates and returns the current account configuration values- Parameters:
accountConfigurations- (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Successful response -
-