Class AccountsApi

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

public class AccountsApi extends Object
Generated client for AccountsApi 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

  • getAccount: Get Account
  • Constructor Details

    • AccountsApi

      public AccountsApi()
    • AccountsApi

      public AccountsApi(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)
    • getAccountCall

      public okhttp3.Call getAccountCall(ApiCallback _callback) throws ApiException
      Build call for getAccount
      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 OK -
    • getAccount

      public Account getAccount() throws ApiException
      Get Account Returns your account details.
      Returns:
      Account
      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 OK -
    • getAccountWithHttpInfo

      public ApiResponse<Account> getAccountWithHttpInfo() throws ApiException
      Get Account Returns your account details.
      Returns:
      ApiResponse<Account>
      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 OK -
    • getAccountAsync

      public okhttp3.Call getAccountAsync(ApiCallback<Account> _callback) throws ApiException
      Get Account (asynchronously) Returns your account details.
      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 OK -