Class AccountConfigurationsApi

java.lang.Object
markets.alpaca.client.openapi.trading.api.AccountConfigurationsApi

public class AccountConfigurationsApi extends Object
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 Configurations
  • patchAccountConfig: Account Configurations
  • Constructor Details

    • AccountConfigurationsApi

      public AccountConfigurationsApi()
    • AccountConfigurationsApi

      public AccountConfigurationsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • getAccountConfigCall

      public okhttp3.Call getAccountConfigCall(ApiCallback _callback) throws ApiException
      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

      public AccountConfigurations getAccountConfig() throws ApiException
      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

      public ApiResponse<AccountConfigurations> getAccountConfigWithHttpInfo() throws ApiException
      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 -