Class CashInterestApi
java.lang.Object
markets.alpaca.client.openapi.broker.api.CashInterestApi
Generated client for CashInterestApi 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
getV1GetEodCashInterestReport: Retrieve EOD Cash Interest DetailsgetV1ListAprTiers: List APR Tiers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetV1GetEodCashInterestReport(UUID accountId, LocalDate date, LocalDate after, LocalDate before, String direction, Integer pageSize, String pageToken) Retrieve EOD Cash Interest Details This API retrieves a list of cash interest details for the given date(s) for a single account or all accounts.okhttp3.CallgetV1GetEodCashInterestReportAsync(UUID accountId, LocalDate date, LocalDate after, LocalDate before, String direction, Integer pageSize, String pageToken, ApiCallback<EoDCashInterestReportResponse> _callback) Retrieve EOD Cash Interest Details (asynchronously) This API retrieves a list of cash interest details for the given date(s) for a single account or all accounts.okhttp3.CallgetV1GetEodCashInterestReportCall(UUID accountId, LocalDate date, LocalDate after, LocalDate before, String direction, Integer pageSize, String pageToken, ApiCallback _callback) Build call for getV1GetEodCashInterestReportgetV1GetEodCashInterestReportWithHttpInfo(UUID accountId, LocalDate date, LocalDate after, LocalDate before, String direction, Integer pageSize, String pageToken) Retrieve EOD Cash Interest Details This API retrieves a list of cash interest details for the given date(s) for a single account or all accounts.List APR Tiers List all available APR tiers.okhttp3.CallgetV1ListAprTiersAsync(ApiCallback<ListAPRTiersResponse> _callback) List APR Tiers (asynchronously) List all available APR tiers.okhttp3.CallgetV1ListAprTiersCall(ApiCallback _callback) Build call for getV1ListAprTiersList APR Tiers List all available APR tiers.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
CashInterestApi
public CashInterestApi() -
CashInterestApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
getV1GetEodCashInterestReportCall
public okhttp3.Call getV1GetEodCashInterestReportCall(@Nullable UUID accountId, @Nullable LocalDate date, @Nullable LocalDate after, @Nullable LocalDate before, @Nullable String direction, @Nullable Integer pageSize, @Nullable String pageToken, ApiCallback _callback) throws ApiException Build call for getV1GetEodCashInterestReport- Parameters:
accountId- Account globally unique identifier. If not provided, the report will be generated for all accounts. (optional)date- A date in the format YYYY-MM-DD. If not provided, the report will be generated for the most recent date this report is available. (optional)after- A date in the format YYYY-MM-DD, valid only if account_id is provided and date is not provided. If not provided, this will use `before` value. If neither is provided the most recent available date is used for both `before` and `after`. (optional)before- A date in the format YYYY-MM-DD, valid only if account_id is provided and date is not provided. If not provided, this will use the most recent available date. (optional)direction- The direction to use for sorting responses, either `asc` or `desc`. Only valid for account_id queries, for which only sorting by date is supported. Defaults to `desc`. (optional)pageSize- The page size, used for paginating responses. Defaults to 1000, with a maximum of 10,000. (optional, default to 1000)pageToken- A token used to retrieve the next page for paginated queries. If provided the response will begin at the next page of the results for the response from which the `next_page_token` is used. (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, returns a list of daily interest accruals and an optional next page token. - 400 A client error occurred. Please check the provided request parameters and try again. - 401 Unauthorized. Please check your API key and try again. - 429 Too many requests. Please wait a moment and try again. - 500 A server error occurred. Please contact Alpaca. -
-
getV1GetEodCashInterestReport
public EoDCashInterestReportResponse getV1GetEodCashInterestReport(@Nullable UUID accountId, @Nullable LocalDate date, @Nullable LocalDate after, @Nullable LocalDate before, @Nullable String direction, @Nullable Integer pageSize, @Nullable String pageToken) throws ApiException Retrieve EOD Cash Interest Details This API retrieves a list of cash interest details for the given date(s) for a single account or all accounts. End-of-day (EOD) details are typically accessible after 8:00pm Eastern Time (ET) and reflect that day's ending state across cash balances, accrued interest, accrued fees, as well as additional ancillary details.- Parameters:
accountId- Account globally unique identifier. If not provided, the report will be generated for all accounts. (optional)date- A date in the format YYYY-MM-DD. If not provided, the report will be generated for the most recent date this report is available. (optional)after- A date in the format YYYY-MM-DD, valid only if account_id is provided and date is not provided. If not provided, this will use `before` value. If neither is provided the most recent available date is used for both `before` and `after`. (optional)before- A date in the format YYYY-MM-DD, valid only if account_id is provided and date is not provided. If not provided, this will use the most recent available date. (optional)direction- The direction to use for sorting responses, either `asc` or `desc`. Only valid for account_id queries, for which only sorting by date is supported. Defaults to `desc`. (optional)pageSize- The page size, used for paginating responses. Defaults to 1000, with a maximum of 10,000. (optional, default to 1000)pageToken- A token used to retrieve the next page for paginated queries. If provided the response will begin at the next page of the results for the response from which the `next_page_token` is used. (optional)- Returns:
- EoDCashInterestReportResponse
- 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, returns a list of daily interest accruals and an optional next page token. - 400 A client error occurred. Please check the provided request parameters and try again. - 401 Unauthorized. Please check your API key and try again. - 429 Too many requests. Please wait a moment and try again. - 500 A server error occurred. Please contact Alpaca. -
-
getV1GetEodCashInterestReportWithHttpInfo
public ApiResponse<EoDCashInterestReportResponse> getV1GetEodCashInterestReportWithHttpInfo(@Nullable UUID accountId, @Nullable LocalDate date, @Nullable LocalDate after, @Nullable LocalDate before, @Nullable String direction, @Nullable Integer pageSize, @Nullable String pageToken) throws ApiException Retrieve EOD Cash Interest Details This API retrieves a list of cash interest details for the given date(s) for a single account or all accounts. End-of-day (EOD) details are typically accessible after 8:00pm Eastern Time (ET) and reflect that day's ending state across cash balances, accrued interest, accrued fees, as well as additional ancillary details.- Parameters:
accountId- Account globally unique identifier. If not provided, the report will be generated for all accounts. (optional)date- A date in the format YYYY-MM-DD. If not provided, the report will be generated for the most recent date this report is available. (optional)after- A date in the format YYYY-MM-DD, valid only if account_id is provided and date is not provided. If not provided, this will use `before` value. If neither is provided the most recent available date is used for both `before` and `after`. (optional)before- A date in the format YYYY-MM-DD, valid only if account_id is provided and date is not provided. If not provided, this will use the most recent available date. (optional)direction- The direction to use for sorting responses, either `asc` or `desc`. Only valid for account_id queries, for which only sorting by date is supported. Defaults to `desc`. (optional)pageSize- The page size, used for paginating responses. Defaults to 1000, with a maximum of 10,000. (optional, default to 1000)pageToken- A token used to retrieve the next page for paginated queries. If provided the response will begin at the next page of the results for the response from which the `next_page_token` is used. (optional)- Returns:
- ApiResponse<EoDCashInterestReportResponse>
- 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, returns a list of daily interest accruals and an optional next page token. - 400 A client error occurred. Please check the provided request parameters and try again. - 401 Unauthorized. Please check your API key and try again. - 429 Too many requests. Please wait a moment and try again. - 500 A server error occurred. Please contact Alpaca. -
-
getV1GetEodCashInterestReportAsync
public okhttp3.Call getV1GetEodCashInterestReportAsync(@Nullable UUID accountId, @Nullable LocalDate date, @Nullable LocalDate after, @Nullable LocalDate before, @Nullable String direction, @Nullable Integer pageSize, @Nullable String pageToken, ApiCallback<EoDCashInterestReportResponse> _callback) throws ApiException Retrieve EOD Cash Interest Details (asynchronously) This API retrieves a list of cash interest details for the given date(s) for a single account or all accounts. End-of-day (EOD) details are typically accessible after 8:00pm Eastern Time (ET) and reflect that day's ending state across cash balances, accrued interest, accrued fees, as well as additional ancillary details.- Parameters:
accountId- Account globally unique identifier. If not provided, the report will be generated for all accounts. (optional)date- A date in the format YYYY-MM-DD. If not provided, the report will be generated for the most recent date this report is available. (optional)after- A date in the format YYYY-MM-DD, valid only if account_id is provided and date is not provided. If not provided, this will use `before` value. If neither is provided the most recent available date is used for both `before` and `after`. (optional)before- A date in the format YYYY-MM-DD, valid only if account_id is provided and date is not provided. If not provided, this will use the most recent available date. (optional)direction- The direction to use for sorting responses, either `asc` or `desc`. Only valid for account_id queries, for which only sorting by date is supported. Defaults to `desc`. (optional)pageSize- The page size, used for paginating responses. Defaults to 1000, with a maximum of 10,000. (optional, default to 1000)pageToken- A token used to retrieve the next page for paginated queries. If provided the response will begin at the next page of the results for the response from which the `next_page_token` is used. (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, returns a list of daily interest accruals and an optional next page token. - 400 A client error occurred. Please check the provided request parameters and try again. - 401 Unauthorized. Please check your API key and try again. - 429 Too many requests. Please wait a moment and try again. - 500 A server error occurred. Please contact Alpaca. -
-
getV1ListAprTiersCall
Build call for getV1ListAprTiers- 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, returns a list of APR tiers or none if no tiers are available. - 401 Unauthorized. Please check your API key and try again. - 429 Too many requests. Please wait a moment and try again. - 500 A server error occurred. Please contact Alpaca. -
-
getV1ListAprTiers
List APR Tiers List all available APR tiers. These tiers may be assigned to an account, and will be used to determine the interest rate paid on uninvested cash balances.- Returns:
- ListAPRTiersResponse
- 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, returns a list of APR tiers or none if no tiers are available. - 401 Unauthorized. Please check your API key and try again. - 429 Too many requests. Please wait a moment and try again. - 500 A server error occurred. Please contact Alpaca. -
-
getV1ListAprTiersWithHttpInfo
List APR Tiers List all available APR tiers. These tiers may be assigned to an account, and will be used to determine the interest rate paid on uninvested cash balances.- Returns:
- ApiResponse<ListAPRTiersResponse>
- 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, returns a list of APR tiers or none if no tiers are available. - 401 Unauthorized. Please check your API key and try again. - 429 Too many requests. Please wait a moment and try again. - 500 A server error occurred. Please contact Alpaca. -
-
getV1ListAprTiersAsync
public okhttp3.Call getV1ListAprTiersAsync(ApiCallback<ListAPRTiersResponse> _callback) throws ApiException List APR Tiers (asynchronously) List all available APR tiers. These tiers may be assigned to an account, and will be used to determine the interest rate paid on uninvested cash balances.- 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, returns a list of APR tiers or none if no tiers are available. - 401 Unauthorized. Please check your API key and try again. - 429 Too many requests. Please wait a moment and try again. - 500 A server error occurred. Please contact Alpaca. -
-