Class FundingApi
java.lang.Object
markets.alpaca.client.openapi.broker.api.FundingApi
Generated client for FundingApi 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
createACHRelationshipForAccount: Create an ACH RelationshipcreateRecipientBank: Create a Bank Relationship for an AccountcreateTransferForAccount: Request a New TransferdeleteACHRelationshipFromAccount: Delete an existing ACH relationshipdeleteRecipientBank: Delete a Bank Relationship for an AccountdeleteTransfer: Request to Close a TransfergetAccountACHRelationships: Retrieve ACH Relationships for an accountgetRecipientBanks: Retrieve Bank Relationships for an AccountgetTransfersForAccount: Retrieve List of Transfers for an Account.getV1JitSettlements: List all JIT SettlementsgetV1JitSettlementsSingle: Get a single JIT settlementgetV1TransfersJitLedgerIdBalances: Retrieve JIT Ledger BalancesgetV1TransfersJitLedgers: Retrieve JIT LedgersgetV1TransfersJitLimits: Retrieve Daily Trading LimitsgetV1TransfersJitReports: Retrieve JIT ReportspostV1JitSettlements: Create a new JIT settlement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateACHRelationshipForAccount(UUID accountId, CreateACHRelationshipRequest createACHRelationshipRequest) Create an ACH Relationship Create a new ACHRelationship for an account If successful, will return 200 code with a newly created ACH Relationship entity.okhttp3.CallcreateACHRelationshipForAccountAsync(UUID accountId, CreateACHRelationshipRequest createACHRelationshipRequest, ApiCallback<ACHRelationship> _callback) Create an ACH Relationship (asynchronously) Create a new ACHRelationship for an account If successful, will return 200 code with a newly created ACH Relationship entity.okhttp3.CallcreateACHRelationshipForAccountCall(UUID accountId, CreateACHRelationshipRequest createACHRelationshipRequest, ApiCallback _callback) Build call for createACHRelationshipForAccountcreateACHRelationshipForAccountWithHttpInfo(UUID accountId, CreateACHRelationshipRequest createACHRelationshipRequest) Create an ACH Relationship Create a new ACHRelationship for an account If successful, will return 200 code with a newly created ACH Relationship entity.createRecipientBank(UUID accountId, CreateBankRequest createBankRequest) Create a Bank Relationship for an Account If successful, retrieves Bank Relationships for an accountokhttp3.CallcreateRecipientBankAsync(UUID accountId, CreateBankRequest createBankRequest, ApiCallback<Bank> _callback) Create a Bank Relationship for an Account (asynchronously) If successful, retrieves Bank Relationships for an accountokhttp3.CallcreateRecipientBankCall(UUID accountId, CreateBankRequest createBankRequest, ApiCallback _callback) Build call for createRecipientBankcreateRecipientBankWithHttpInfo(UUID accountId, CreateBankRequest createBankRequest) Create a Bank Relationship for an Account If successful, retrieves Bank Relationships for an accountcreateTransferForAccount(UUID accountId, CreateTransferRequest createTransferRequest) Request a New Transfer Create a new transfer to deposit money into or withdraw money from an account.okhttp3.CallcreateTransferForAccountAsync(UUID accountId, CreateTransferRequest createTransferRequest, ApiCallback<Transfer> _callback) Request a New Transfer (asynchronously) Create a new transfer to deposit money into or withdraw money from an account.okhttp3.CallcreateTransferForAccountCall(UUID accountId, CreateTransferRequest createTransferRequest, ApiCallback _callback) Build call for createTransferForAccountcreateTransferForAccountWithHttpInfo(UUID accountId, CreateTransferRequest createTransferRequest) Request a New Transfer Create a new transfer to deposit money into or withdraw money from an account.voiddeleteACHRelationshipFromAccount(UUID accountId, UUID achRelationshipId) Delete an existing ACH relationship Delete an existing ACH relationship for an accountokhttp3.CalldeleteACHRelationshipFromAccountAsync(UUID accountId, UUID achRelationshipId, ApiCallback<Void> _callback) Delete an existing ACH relationship (asynchronously) Delete an existing ACH relationship for an accountokhttp3.CalldeleteACHRelationshipFromAccountCall(UUID accountId, UUID achRelationshipId, ApiCallback _callback) Build call for deleteACHRelationshipFromAccountdeleteACHRelationshipFromAccountWithHttpInfo(UUID accountId, UUID achRelationshipId) Delete an existing ACH relationship Delete an existing ACH relationship for an accountvoiddeleteRecipientBank(UUID accountId, UUID bankId) Delete a Bank Relationship for an Account If successful, deletes Bank Relationship for an accountokhttp3.CalldeleteRecipientBankAsync(UUID accountId, UUID bankId, ApiCallback<Void> _callback) Delete a Bank Relationship for an Account (asynchronously) If successful, deletes Bank Relationship for an accountokhttp3.CalldeleteRecipientBankCall(UUID accountId, UUID bankId, ApiCallback _callback) Build call for deleteRecipientBankdeleteRecipientBankWithHttpInfo(UUID accountId, UUID bankId) Delete a Bank Relationship for an Account If successful, deletes Bank Relationship for an accountvoiddeleteTransfer(UUID accountId, UUID transferId) Request to Close a Transfer Request to close a transferokhttp3.CalldeleteTransferAsync(UUID accountId, UUID transferId, ApiCallback<Void> _callback) Request to Close a Transfer (asynchronously) Request to close a transferokhttp3.CalldeleteTransferCall(UUID accountId, UUID transferId, ApiCallback _callback) Build call for deleteTransferdeleteTransferWithHttpInfo(UUID accountId, UUID transferId) Request to Close a Transfer Request to close a transfergetAccountACHRelationships(UUID accountId, String statuses) Retrieve ACH Relationships for an account Returns a list of ACH Relationships for an accountokhttp3.CallgetAccountACHRelationshipsAsync(UUID accountId, String statuses, ApiCallback<List<ACHRelationship>> _callback) Retrieve ACH Relationships for an account (asynchronously) Returns a list of ACH Relationships for an accountokhttp3.CallgetAccountACHRelationshipsCall(UUID accountId, String statuses, ApiCallback _callback) Build call for getAccountACHRelationshipsgetAccountACHRelationshipsWithHttpInfo(UUID accountId, String statuses) Retrieve ACH Relationships for an account Returns a list of ACH Relationships for an accountintgetRecipientBanks(UUID accountId, String status, String bankName) Retrieve Bank Relationships for an Account Retrieves Bank Relationships for an accountokhttp3.CallgetRecipientBanksAsync(UUID accountId, String status, String bankName, ApiCallback<List<Bank>> _callback) Retrieve Bank Relationships for an Account (asynchronously) Retrieves Bank Relationships for an accountokhttp3.CallgetRecipientBanksCall(UUID accountId, String status, String bankName, ApiCallback _callback) Build call for getRecipientBanksgetRecipientBanksWithHttpInfo(UUID accountId, String status, String bankName) Retrieve Bank Relationships for an Account Retrieves Bank Relationships for an accountgetTransfersForAccount(UUID accountId, String direction, Integer limit, Integer offset) Retrieve List of Transfers for an Account.okhttp3.CallgetTransfersForAccountAsync(UUID accountId, String direction, Integer limit, Integer offset, ApiCallback<List<Transfer>> _callback) Retrieve List of Transfers for an Account.okhttp3.CallgetTransfersForAccountCall(UUID accountId, String direction, Integer limit, Integer offset, ApiCallback _callback) Build call for getTransfersForAccountgetTransfersForAccountWithHttpInfo(UUID accountId, String direction, Integer limit, Integer offset) Retrieve List of Transfers for an Account.getV1JitSettlements(String statuses) List all JIT Settlements Returns all JIT settlements filtered by status if provided.okhttp3.CallgetV1JitSettlementsAsync(String statuses, ApiCallback<SettlementsResponse> _callback) List all JIT Settlements (asynchronously) Returns all JIT settlements filtered by status if provided.okhttp3.CallgetV1JitSettlementsCall(String statuses, ApiCallback _callback) Build call for getV1JitSettlementsgetV1JitSettlementsSingle(UUID settlementId) Get a single JIT settlement Returns the JIT settlement specified by the path parameter.okhttp3.CallgetV1JitSettlementsSingleAsync(UUID settlementId, ApiCallback<SettlementResponse> _callback) Get a single JIT settlement (asynchronously) Returns the JIT settlement specified by the path parameter.okhttp3.CallgetV1JitSettlementsSingleCall(UUID settlementId, ApiCallback _callback) Build call for getV1JitSettlementsSinglegetV1JitSettlementsSingleWithHttpInfo(UUID settlementId) Get a single JIT settlement Returns the JIT settlement specified by the path parameter.getV1JitSettlementsWithHttpInfo(String statuses) List all JIT Settlements Returns all JIT settlements filtered by status if provided.getV1TransfersJitLedgerIdBalances(String ledgerId, LocalDate startDate, LocalDate endDate) Retrieve JIT Ledger Balances Returns an array of objects that correspond to each ledger account.okhttp3.CallgetV1TransfersJitLedgerIdBalancesAsync(String ledgerId, LocalDate startDate, LocalDate endDate, ApiCallback<GetV1TransfersJitLedgerIdBalances200Response> _callback) Retrieve JIT Ledger Balances (asynchronously) Returns an array of objects that correspond to each ledger account.okhttp3.CallgetV1TransfersJitLedgerIdBalancesCall(String ledgerId, LocalDate startDate, LocalDate endDate, ApiCallback _callback) Build call for getV1TransfersJitLedgerIdBalancesgetV1TransfersJitLedgerIdBalancesWithHttpInfo(String ledgerId, LocalDate startDate, LocalDate endDate) Retrieve JIT Ledger Balances Returns an array of objects that correspond to each ledger account.Retrieve JIT Ledgers Returns an array of objects that correspond to each ledger account, each of whichcontain the following attributes.okhttp3.CallgetV1TransfersJitLedgersAsync(ApiCallback<List<JITLedgerAccount>> _callback) Retrieve JIT Ledgers (asynchronously) Returns an array of objects that correspond to each ledger account, each of whichcontain the following attributes.okhttp3.CallgetV1TransfersJitLedgersCall(ApiCallback _callback) Build call for getV1TransfersJitLedgersRetrieve JIT Ledgers Returns an array of objects that correspond to each ledger account, each of whichcontain the following attributes.Retrieve Daily Trading Limits The JIT Securities daily trading limit is set at the correspondent level and is used as the limit for the total amount due to Alpaca on the date of settlement.okhttp3.CallgetV1TransfersJitLimitsAsync(ApiCallback<DailyTradingLimit> _callback) Retrieve Daily Trading Limits (asynchronously) The JIT Securities daily trading limit is set at the correspondent level and is used as the limit for the total amount due to Alpaca on the date of settlement.okhttp3.CallgetV1TransfersJitLimitsCall(ApiCallback _callback) Build call for getV1TransfersJitLimitsRetrieve Daily Trading Limits The JIT Securities daily trading limit is set at the correspondent level and is used as the limit for the total amount due to Alpaca on the date of settlement.getV1TransfersJitReports(String reportType, LocalDate systemDate, String assetClass, String responseType) Retrieve JIT Reports Retrieves a JIT report for the requested report type and system date.okhttp3.CallgetV1TransfersJitReportsAsync(String reportType, LocalDate systemDate, String assetClass, String responseType, ApiCallback<GetV1TransfersJitReports200Response> _callback) Retrieve JIT Reports (asynchronously) Retrieves a JIT report for the requested report type and system date.okhttp3.CallgetV1TransfersJitReportsCall(String reportType, LocalDate systemDate, String assetClass, String responseType, ApiCallback _callback) Build call for getV1TransfersJitReportsgetV1TransfersJitReportsWithHttpInfo(String reportType, LocalDate systemDate, String assetClass, String responseType) Retrieve JIT Reports Retrieves a JIT report for the requested report type and system date.postV1JitSettlements(CreateJITSettlementRequest createJITSettlementRequest) Create a new JIT settlement Creates a new JIT settlement, which will trigger the reconciliation process for all included accounts.okhttp3.CallpostV1JitSettlementsAsync(CreateJITSettlementRequest createJITSettlementRequest, ApiCallback<SettlementResponse> _callback) Create a new JIT settlement (asynchronously) Creates a new JIT settlement, which will trigger the reconciliation process for all included accounts.okhttp3.CallpostV1JitSettlementsCall(CreateJITSettlementRequest createJITSettlementRequest, ApiCallback _callback) Build call for postV1JitSettlementspostV1JitSettlementsWithHttpInfo(CreateJITSettlementRequest createJITSettlementRequest) Create a new JIT settlement Creates a new JIT settlement, which will trigger the reconciliation process for all included accounts.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
FundingApi
public FundingApi() -
FundingApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createACHRelationshipForAccountCall
public okhttp3.Call createACHRelationshipForAccountCall(@Nonnull UUID accountId, @Nonnull CreateACHRelationshipRequest createACHRelationshipRequest, ApiCallback _callback) throws ApiException Build call for createACHRelationshipForAccount- Parameters:
accountId- Account identifier. (required)createACHRelationshipRequest- Create ACH Relationship (required)_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 returns the newly created ACH Relationship entity. - 400 Malformed input. - 401 Client is not authorized for this operation. - 409 The account already has an active relationship. -
-
createACHRelationshipForAccount
public ACHRelationship createACHRelationshipForAccount(@Nonnull UUID accountId, @Nonnull CreateACHRelationshipRequest createACHRelationshipRequest) throws ApiException Create an ACH Relationship Create a new ACHRelationship for an account If successful, will return 200 code with a newly created ACH Relationship entity.- Parameters:
accountId- Account identifier. (required)createACHRelationshipRequest- Create ACH Relationship (required)- Returns:
- ACHRelationship
- 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 returns the newly created ACH Relationship entity. - 400 Malformed input. - 401 Client is not authorized for this operation. - 409 The account already has an active relationship. -
-
createACHRelationshipForAccountWithHttpInfo
public ApiResponse<ACHRelationship> createACHRelationshipForAccountWithHttpInfo(@Nonnull UUID accountId, @Nonnull CreateACHRelationshipRequest createACHRelationshipRequest) throws ApiException Create an ACH Relationship Create a new ACHRelationship for an account If successful, will return 200 code with a newly created ACH Relationship entity.- Parameters:
accountId- Account identifier. (required)createACHRelationshipRequest- Create ACH Relationship (required)- Returns:
- ApiResponse<ACHRelationship>
- 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 returns the newly created ACH Relationship entity. - 400 Malformed input. - 401 Client is not authorized for this operation. - 409 The account already has an active relationship. -
-
createACHRelationshipForAccountAsync
public okhttp3.Call createACHRelationshipForAccountAsync(@Nonnull UUID accountId, @Nonnull CreateACHRelationshipRequest createACHRelationshipRequest, ApiCallback<ACHRelationship> _callback) throws ApiException Create an ACH Relationship (asynchronously) Create a new ACHRelationship for an account If successful, will return 200 code with a newly created ACH Relationship entity.- Parameters:
accountId- Account identifier. (required)createACHRelationshipRequest- Create ACH Relationship (required)_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 returns the newly created ACH Relationship entity. - 400 Malformed input. - 401 Client is not authorized for this operation. - 409 The account already has an active relationship. -
-
createRecipientBankCall
public okhttp3.Call createRecipientBankCall(@Nonnull UUID accountId, @Nonnull CreateBankRequest createBankRequest, ApiCallback _callback) throws ApiException Build call for createRecipientBank- Parameters:
accountId- Account identifier. (required)createBankRequest- (required)_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 The created Bank relationship - 400 Bad Request - 409 A Bank relationship already exists for this account -
-
createRecipientBank
public Bank createRecipientBank(@Nonnull UUID accountId, @Nonnull CreateBankRequest createBankRequest) throws ApiException Create a Bank Relationship for an Account If successful, retrieves Bank Relationships for an account- Parameters:
accountId- Account identifier. (required)createBankRequest- (required)- Returns:
- Bank
- 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 The created Bank relationship - 400 Bad Request - 409 A Bank relationship already exists for this account -
-
createRecipientBankWithHttpInfo
public ApiResponse<Bank> createRecipientBankWithHttpInfo(@Nonnull UUID accountId, @Nonnull CreateBankRequest createBankRequest) throws ApiException Create a Bank Relationship for an Account If successful, retrieves Bank Relationships for an account- Parameters:
accountId- Account identifier. (required)createBankRequest- (required)- Returns:
- ApiResponse<Bank>
- 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 The created Bank relationship - 400 Bad Request - 409 A Bank relationship already exists for this account -
-
createRecipientBankAsync
public okhttp3.Call createRecipientBankAsync(@Nonnull UUID accountId, @Nonnull CreateBankRequest createBankRequest, ApiCallback<Bank> _callback) throws ApiException Create a Bank Relationship for an Account (asynchronously) If successful, retrieves Bank Relationships for an account- Parameters:
accountId- Account identifier. (required)createBankRequest- (required)_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 The created Bank relationship - 400 Bad Request - 409 A Bank relationship already exists for this account -
-
createTransferForAccountCall
public okhttp3.Call createTransferForAccountCall(@Nonnull UUID accountId, @Nonnull CreateTransferRequest createTransferRequest, ApiCallback _callback) throws ApiException Build call for createTransferForAccount- Parameters:
accountId- Account identifier. (required)createTransferRequest- (required)_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 Successfully requested a transfer. - 400 The request body is malformed (e.g. invalid JSON). - 403 The account is not permitted to perform this transfer. Examples include: - `deposits are not permitted for this account` — the account's `depositable_status` is not `allowed` / `limited`. - `withdrawals are not permitted for this account` — the account's `withdrawable_status` is not `allowed` / `limited`. - 422 The request was rejected by validation. Common reasons include: - `cannot submit incoming wire transfer using this API` — sent `transfer_type: wire` with `direction: INCOMING`. Incoming wires cannot be initiated through this endpoint. - `invalid relationship_id` / `bank_id required for wire transfer` — missing the required relationship/bank identifier for the chosen `transfer_type`. - `bank_id should be empty for ach transfer` / `relationship_id should be empty for wire transfer` — provided the wrong identifier for the chosen `transfer_type`. - `only wire transfer type can provide additional information for the transfer` — `additional_information` was supplied on a non-wire request. - `amount must be greater than 0.00` / `deposit amount must be greater than or equal to <min>` / `withdrawal amount must be greater than <min>` — amount fails the minimum-amount checks. - `transfer_type must be either ach or wire` / `direction must be either incoming or outgoing` — invalid enum values. -
-
createTransferForAccount
public Transfer createTransferForAccount(@Nonnull UUID accountId, @Nonnull CreateTransferRequest createTransferRequest) throws ApiException Request a New Transfer Create a new transfer to deposit money into or withdraw money from an account. Two `transfer_type` values are accepted, and both are available in sandbox and production: - **`ach`** — supports both `INCOMING` (deposit) and `OUTGOING` (withdrawal) directions. A `relationship_id` from a previously created [ACH Relationship](https://docs.alpaca.markets/reference/createachrelationshipforaccount) is required. - **`wire`** — supports the `OUTGOING` (withdrawal) direction only. Incoming wires cannot be initiated through this endpoint; they are pushed in by the sending bank and recorded automatically. A `bank_id` from a previously created [Bank Relationship](https://docs.alpaca.markets/reference/createrecipientbank) is required, and the bank must be in `APPROVED` status before the transfer will progress past `QUEUED`. In the sandbox environment, ACH deposits and withdrawals settle instantly against virtual funds. Outgoing wire withdrawals are accepted and simulated end-to-end — no funds are transmitted to a bank, but the transfer progresses to `COMPLETE` and the account is debited against virtual funds. Sandbox wire withdrawals are asynchronous (not instant) and auto-complete on weekdays only; transfers submitted on a weekend will not progress until Monday. For more on funding accounts in sandbox, see [this tutorial](https://alpaca.markets/learn/fund-broker-api/).- Parameters:
accountId- Account identifier. (required)createTransferRequest- (required)- Returns:
- Transfer
- 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 Successfully requested a transfer. - 400 The request body is malformed (e.g. invalid JSON). - 403 The account is not permitted to perform this transfer. Examples include: - `deposits are not permitted for this account` — the account's `depositable_status` is not `allowed` / `limited`. - `withdrawals are not permitted for this account` — the account's `withdrawable_status` is not `allowed` / `limited`. - 422 The request was rejected by validation. Common reasons include: - `cannot submit incoming wire transfer using this API` — sent `transfer_type: wire` with `direction: INCOMING`. Incoming wires cannot be initiated through this endpoint. - `invalid relationship_id` / `bank_id required for wire transfer` — missing the required relationship/bank identifier for the chosen `transfer_type`. - `bank_id should be empty for ach transfer` / `relationship_id should be empty for wire transfer` — provided the wrong identifier for the chosen `transfer_type`. - `only wire transfer type can provide additional information for the transfer` — `additional_information` was supplied on a non-wire request. - `amount must be greater than 0.00` / `deposit amount must be greater than or equal to <min>` / `withdrawal amount must be greater than <min>` — amount fails the minimum-amount checks. - `transfer_type must be either ach or wire` / `direction must be either incoming or outgoing` — invalid enum values. -
-
createTransferForAccountWithHttpInfo
public ApiResponse<Transfer> createTransferForAccountWithHttpInfo(@Nonnull UUID accountId, @Nonnull CreateTransferRequest createTransferRequest) throws ApiException Request a New Transfer Create a new transfer to deposit money into or withdraw money from an account. Two `transfer_type` values are accepted, and both are available in sandbox and production: - **`ach`** — supports both `INCOMING` (deposit) and `OUTGOING` (withdrawal) directions. A `relationship_id` from a previously created [ACH Relationship](https://docs.alpaca.markets/reference/createachrelationshipforaccount) is required. - **`wire`** — supports the `OUTGOING` (withdrawal) direction only. Incoming wires cannot be initiated through this endpoint; they are pushed in by the sending bank and recorded automatically. A `bank_id` from a previously created [Bank Relationship](https://docs.alpaca.markets/reference/createrecipientbank) is required, and the bank must be in `APPROVED` status before the transfer will progress past `QUEUED`. In the sandbox environment, ACH deposits and withdrawals settle instantly against virtual funds. Outgoing wire withdrawals are accepted and simulated end-to-end — no funds are transmitted to a bank, but the transfer progresses to `COMPLETE` and the account is debited against virtual funds. Sandbox wire withdrawals are asynchronous (not instant) and auto-complete on weekdays only; transfers submitted on a weekend will not progress until Monday. For more on funding accounts in sandbox, see [this tutorial](https://alpaca.markets/learn/fund-broker-api/).- Parameters:
accountId- Account identifier. (required)createTransferRequest- (required)- Returns:
- ApiResponse<Transfer>
- 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 Successfully requested a transfer. - 400 The request body is malformed (e.g. invalid JSON). - 403 The account is not permitted to perform this transfer. Examples include: - `deposits are not permitted for this account` — the account's `depositable_status` is not `allowed` / `limited`. - `withdrawals are not permitted for this account` — the account's `withdrawable_status` is not `allowed` / `limited`. - 422 The request was rejected by validation. Common reasons include: - `cannot submit incoming wire transfer using this API` — sent `transfer_type: wire` with `direction: INCOMING`. Incoming wires cannot be initiated through this endpoint. - `invalid relationship_id` / `bank_id required for wire transfer` — missing the required relationship/bank identifier for the chosen `transfer_type`. - `bank_id should be empty for ach transfer` / `relationship_id should be empty for wire transfer` — provided the wrong identifier for the chosen `transfer_type`. - `only wire transfer type can provide additional information for the transfer` — `additional_information` was supplied on a non-wire request. - `amount must be greater than 0.00` / `deposit amount must be greater than or equal to <min>` / `withdrawal amount must be greater than <min>` — amount fails the minimum-amount checks. - `transfer_type must be either ach or wire` / `direction must be either incoming or outgoing` — invalid enum values. -
-
createTransferForAccountAsync
public okhttp3.Call createTransferForAccountAsync(@Nonnull UUID accountId, @Nonnull CreateTransferRequest createTransferRequest, ApiCallback<Transfer> _callback) throws ApiException Request a New Transfer (asynchronously) Create a new transfer to deposit money into or withdraw money from an account. Two `transfer_type` values are accepted, and both are available in sandbox and production: - **`ach`** — supports both `INCOMING` (deposit) and `OUTGOING` (withdrawal) directions. A `relationship_id` from a previously created [ACH Relationship](https://docs.alpaca.markets/reference/createachrelationshipforaccount) is required. - **`wire`** — supports the `OUTGOING` (withdrawal) direction only. Incoming wires cannot be initiated through this endpoint; they are pushed in by the sending bank and recorded automatically. A `bank_id` from a previously created [Bank Relationship](https://docs.alpaca.markets/reference/createrecipientbank) is required, and the bank must be in `APPROVED` status before the transfer will progress past `QUEUED`. In the sandbox environment, ACH deposits and withdrawals settle instantly against virtual funds. Outgoing wire withdrawals are accepted and simulated end-to-end — no funds are transmitted to a bank, but the transfer progresses to `COMPLETE` and the account is debited against virtual funds. Sandbox wire withdrawals are asynchronous (not instant) and auto-complete on weekdays only; transfers submitted on a weekend will not progress until Monday. For more on funding accounts in sandbox, see [this tutorial](https://alpaca.markets/learn/fund-broker-api/).- Parameters:
accountId- Account identifier. (required)createTransferRequest- (required)_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 Successfully requested a transfer. - 400 The request body is malformed (e.g. invalid JSON). - 403 The account is not permitted to perform this transfer. Examples include: - `deposits are not permitted for this account` — the account's `depositable_status` is not `allowed` / `limited`. - `withdrawals are not permitted for this account` — the account's `withdrawable_status` is not `allowed` / `limited`. - 422 The request was rejected by validation. Common reasons include: - `cannot submit incoming wire transfer using this API` — sent `transfer_type: wire` with `direction: INCOMING`. Incoming wires cannot be initiated through this endpoint. - `invalid relationship_id` / `bank_id required for wire transfer` — missing the required relationship/bank identifier for the chosen `transfer_type`. - `bank_id should be empty for ach transfer` / `relationship_id should be empty for wire transfer` — provided the wrong identifier for the chosen `transfer_type`. - `only wire transfer type can provide additional information for the transfer` — `additional_information` was supplied on a non-wire request. - `amount must be greater than 0.00` / `deposit amount must be greater than or equal to <min>` / `withdrawal amount must be greater than <min>` — amount fails the minimum-amount checks. - `transfer_type must be either ach or wire` / `direction must be either incoming or outgoing` — invalid enum values. -
-
deleteACHRelationshipFromAccountCall
public okhttp3.Call deleteACHRelationshipFromAccountCall(@Nonnull UUID accountId, @Nonnull UUID achRelationshipId, ApiCallback _callback) throws ApiException Build call for deleteACHRelationshipFromAccount- Parameters:
accountId- Account identifier. (required)achRelationshipId- ACH relationship identifier (required)_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 204 Success (No Content) - 400 the passed in account_id or relationship_id were invalid - 404 Relationship Not Found -
-
deleteACHRelationshipFromAccount
public void deleteACHRelationshipFromAccount(@Nonnull UUID accountId, @Nonnull UUID achRelationshipId) throws ApiException Delete an existing ACH relationship Delete an existing ACH relationship for an account- Parameters:
accountId- Account identifier. (required)achRelationshipId- ACH relationship identifier (required)- 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 204 Success (No Content) - 400 the passed in account_id or relationship_id were invalid - 404 Relationship Not Found -
-
deleteACHRelationshipFromAccountWithHttpInfo
public ApiResponse<Void> deleteACHRelationshipFromAccountWithHttpInfo(@Nonnull UUID accountId, @Nonnull UUID achRelationshipId) throws ApiException Delete an existing ACH relationship Delete an existing ACH relationship for an account- Parameters:
accountId- Account identifier. (required)achRelationshipId- ACH relationship identifier (required)- Returns:
- ApiResponse<Void>
- 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 204 Success (No Content) - 400 the passed in account_id or relationship_id were invalid - 404 Relationship Not Found -
-
deleteACHRelationshipFromAccountAsync
public okhttp3.Call deleteACHRelationshipFromAccountAsync(@Nonnull UUID accountId, @Nonnull UUID achRelationshipId, ApiCallback<Void> _callback) throws ApiException Delete an existing ACH relationship (asynchronously) Delete an existing ACH relationship for an account- Parameters:
accountId- Account identifier. (required)achRelationshipId- ACH relationship identifier (required)_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 204 Success (No Content) - 400 the passed in account_id or relationship_id were invalid - 404 Relationship Not Found -
-
deleteRecipientBankCall
public okhttp3.Call deleteRecipientBankCall(@Nonnull UUID accountId, @Nonnull UUID bankId, ApiCallback _callback) throws ApiException Build call for deleteRecipientBank- Parameters:
accountId- Account identifier. (required)bankId- (required)_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 204 Success (No Content) - 400 Bad Request - 404 No Bank Relationship with the id specified by bank_id was found for this Account -
-
deleteRecipientBank
Delete a Bank Relationship for an Account If successful, deletes Bank Relationship for an account- Parameters:
accountId- Account identifier. (required)bankId- (required)- 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 204 Success (No Content) - 400 Bad Request - 404 No Bank Relationship with the id specified by bank_id was found for this Account -
-
deleteRecipientBankWithHttpInfo
public ApiResponse<Void> deleteRecipientBankWithHttpInfo(@Nonnull UUID accountId, @Nonnull UUID bankId) throws ApiException Delete a Bank Relationship for an Account If successful, deletes Bank Relationship for an account- Parameters:
accountId- Account identifier. (required)bankId- (required)- Returns:
- ApiResponse<Void>
- 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 204 Success (No Content) - 400 Bad Request - 404 No Bank Relationship with the id specified by bank_id was found for this Account -
-
deleteRecipientBankAsync
public okhttp3.Call deleteRecipientBankAsync(@Nonnull UUID accountId, @Nonnull UUID bankId, ApiCallback<Void> _callback) throws ApiException Delete a Bank Relationship for an Account (asynchronously) If successful, deletes Bank Relationship for an account- Parameters:
accountId- Account identifier. (required)bankId- (required)_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 204 Success (No Content) - 400 Bad Request - 404 No Bank Relationship with the id specified by bank_id was found for this Account -
-
deleteTransferCall
public okhttp3.Call deleteTransferCall(@Nonnull UUID accountId, @Nonnull UUID transferId, ApiCallback _callback) throws ApiException Build call for deleteTransfer- Parameters:
accountId- Account identifier. (required)transferId- Transfer identifier (required)_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 Success - 404 Transfer Not Found -
-
deleteTransfer
Request to Close a Transfer Request to close a transfer- Parameters:
accountId- Account identifier. (required)transferId- Transfer identifier (required)- 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 Success - 404 Transfer Not Found -
-
deleteTransferWithHttpInfo
public ApiResponse<Void> deleteTransferWithHttpInfo(@Nonnull UUID accountId, @Nonnull UUID transferId) throws ApiException Request to Close a Transfer Request to close a transfer- Parameters:
accountId- Account identifier. (required)transferId- Transfer identifier (required)- Returns:
- ApiResponse<Void>
- 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 Success - 404 Transfer Not Found -
-
deleteTransferAsync
public okhttp3.Call deleteTransferAsync(@Nonnull UUID accountId, @Nonnull UUID transferId, ApiCallback<Void> _callback) throws ApiException Request to Close a Transfer (asynchronously) Request to close a transfer- Parameters:
accountId- Account identifier. (required)transferId- Transfer identifier (required)_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 Success - 404 Transfer Not Found -
-
getAccountACHRelationshipsCall
public okhttp3.Call getAccountACHRelationshipsCall(@Nonnull UUID accountId, @Nullable String statuses, ApiCallback _callback) throws ApiException Build call for getAccountACHRelationships- Parameters:
accountId- Account identifier. (required)statuses- Comma-separated status values (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 Success -
-
getAccountACHRelationships
public List<ACHRelationship> getAccountACHRelationships(@Nonnull UUID accountId, @Nullable String statuses) throws ApiException Retrieve ACH Relationships for an account Returns a list of ACH Relationships for an account- Parameters:
accountId- Account identifier. (required)statuses- Comma-separated status values (optional)- Returns:
- List<ACHRelationship>
- 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 Success -
-
getAccountACHRelationshipsWithHttpInfo
public ApiResponse<List<ACHRelationship>> getAccountACHRelationshipsWithHttpInfo(@Nonnull UUID accountId, @Nullable String statuses) throws ApiException Retrieve ACH Relationships for an account Returns a list of ACH Relationships for an account- Parameters:
accountId- Account identifier. (required)statuses- Comma-separated status values (optional)- Returns:
- ApiResponse<List<ACHRelationship>>
- 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 Success -
-
getAccountACHRelationshipsAsync
public okhttp3.Call getAccountACHRelationshipsAsync(@Nonnull UUID accountId, @Nullable String statuses, ApiCallback<List<ACHRelationship>> _callback) throws ApiException Retrieve ACH Relationships for an account (asynchronously) Returns a list of ACH Relationships for an account- Parameters:
accountId- Account identifier. (required)statuses- Comma-separated status values (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 Success -
-
getRecipientBanksCall
public okhttp3.Call getRecipientBanksCall(@Nonnull UUID accountId, @Nullable String status, @Nullable String bankName, ApiCallback _callback) throws ApiException Build call for getRecipientBanks- Parameters:
accountId- Account identifier. (required)status- (optional)bankName- (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 An array of Bank relationships attached to this Account. An empty array will be returned if no Bank relationships have been attached to this account - 400 Bad request. The body in the request is not valid. -
-
getRecipientBanks
public List<Bank> getRecipientBanks(@Nonnull UUID accountId, @Nullable String status, @Nullable String bankName) throws ApiException Retrieve Bank Relationships for an Account Retrieves Bank Relationships for an account- Parameters:
accountId- Account identifier. (required)status- (optional)bankName- (optional)- Returns:
- List<Bank>
- 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 An array of Bank relationships attached to this Account. An empty array will be returned if no Bank relationships have been attached to this account - 400 Bad request. The body in the request is not valid. -
-
getRecipientBanksWithHttpInfo
public ApiResponse<List<Bank>> getRecipientBanksWithHttpInfo(@Nonnull UUID accountId, @Nullable String status, @Nullable String bankName) throws ApiException Retrieve Bank Relationships for an Account Retrieves Bank Relationships for an account- Parameters:
accountId- Account identifier. (required)status- (optional)bankName- (optional)- Returns:
- ApiResponse<List<Bank>>
- 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 An array of Bank relationships attached to this Account. An empty array will be returned if no Bank relationships have been attached to this account - 400 Bad request. The body in the request is not valid. -
-
getRecipientBanksAsync
public okhttp3.Call getRecipientBanksAsync(@Nonnull UUID accountId, @Nullable String status, @Nullable String bankName, ApiCallback<List<Bank>> _callback) throws ApiException Retrieve Bank Relationships for an Account (asynchronously) Retrieves Bank Relationships for an account- Parameters:
accountId- Account identifier. (required)status- (optional)bankName- (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 An array of Bank relationships attached to this Account. An empty array will be returned if no Bank relationships have been attached to this account - 400 Bad request. The body in the request is not valid. -
-
getTransfersForAccountCall
public okhttp3.Call getTransfersForAccountCall(@Nonnull UUID accountId, @Nullable String direction, @Nullable Integer limit, @Nullable Integer offset, ApiCallback _callback) throws ApiException Build call for getTransfersForAccount- Parameters:
accountId- Account identifier. (required)direction- INCOMING or OUTGOING (optional)limit- (optional)offset- (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 Success. -
-
getTransfersForAccount
public List<Transfer> getTransfersForAccount(@Nonnull UUID accountId, @Nullable String direction, @Nullable Integer limit, @Nullable Integer offset) throws ApiException Retrieve List of Transfers for an Account. You can query a list of transfers for an account. You can filter requested transfers by values such as direction and status. Returns a list of transfer entities ordered by created_at- Parameters:
accountId- Account identifier. (required)direction- INCOMING or OUTGOING (optional)limit- (optional)offset- (optional)- Returns:
- List<Transfer>
- 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 Success. -
-
getTransfersForAccountWithHttpInfo
public ApiResponse<List<Transfer>> getTransfersForAccountWithHttpInfo(@Nonnull UUID accountId, @Nullable String direction, @Nullable Integer limit, @Nullable Integer offset) throws ApiException Retrieve List of Transfers for an Account. You can query a list of transfers for an account. You can filter requested transfers by values such as direction and status. Returns a list of transfer entities ordered by created_at- Parameters:
accountId- Account identifier. (required)direction- INCOMING or OUTGOING (optional)limit- (optional)offset- (optional)- Returns:
- ApiResponse<List<Transfer>>
- 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 Success. -
-
getTransfersForAccountAsync
public okhttp3.Call getTransfersForAccountAsync(@Nonnull UUID accountId, @Nullable String direction, @Nullable Integer limit, @Nullable Integer offset, ApiCallback<List<Transfer>> _callback) throws ApiException Retrieve List of Transfers for an Account. (asynchronously) You can query a list of transfers for an account. You can filter requested transfers by values such as direction and status. Returns a list of transfer entities ordered by created_at- Parameters:
accountId- Account identifier. (required)direction- INCOMING or OUTGOING (optional)limit- (optional)offset- (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 Success. -
-
getV1JitSettlementsCall
public okhttp3.Call getV1JitSettlementsCall(@Nullable String statuses, ApiCallback _callback) throws ApiException Build call for getV1JitSettlements- Parameters:
statuses- comma delimited list of statuses to use as a filter (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. - 0 Error response. -
-
getV1JitSettlements
List all JIT Settlements Returns all JIT settlements filtered by status if provided.- Parameters:
statuses- comma delimited list of statuses to use as a filter (optional)- Returns:
- SettlementsResponse
- 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. - 0 Error response. -
-
getV1JitSettlementsWithHttpInfo
public ApiResponse<SettlementsResponse> getV1JitSettlementsWithHttpInfo(@Nullable String statuses) throws ApiException List all JIT Settlements Returns all JIT settlements filtered by status if provided.- Parameters:
statuses- comma delimited list of statuses to use as a filter (optional)- Returns:
- ApiResponse<SettlementsResponse>
- 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. - 0 Error response. -
-
getV1JitSettlementsAsync
public okhttp3.Call getV1JitSettlementsAsync(@Nullable String statuses, ApiCallback<SettlementsResponse> _callback) throws ApiException List all JIT Settlements (asynchronously) Returns all JIT settlements filtered by status if provided.- Parameters:
statuses- comma delimited list of statuses to use as a filter (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. - 0 Error response. -
-
getV1JitSettlementsSingleCall
public okhttp3.Call getV1JitSettlementsSingleCall(@Nonnull UUID settlementId, ApiCallback _callback) throws ApiException Build call for getV1JitSettlementsSingle- Parameters:
settlementId- ID of the JIT settlement (required)_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. - 0 Error response. -
-
getV1JitSettlementsSingle
Get a single JIT settlement Returns the JIT settlement specified by the path parameter.- Parameters:
settlementId- ID of the JIT settlement (required)- Returns:
- SettlementResponse
- 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. - 0 Error response. -
-
getV1JitSettlementsSingleWithHttpInfo
public ApiResponse<SettlementResponse> getV1JitSettlementsSingleWithHttpInfo(@Nonnull UUID settlementId) throws ApiException Get a single JIT settlement Returns the JIT settlement specified by the path parameter.- Parameters:
settlementId- ID of the JIT settlement (required)- Returns:
- ApiResponse<SettlementResponse>
- 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. - 0 Error response. -
-
getV1JitSettlementsSingleAsync
public okhttp3.Call getV1JitSettlementsSingleAsync(@Nonnull UUID settlementId, ApiCallback<SettlementResponse> _callback) throws ApiException Get a single JIT settlement (asynchronously) Returns the JIT settlement specified by the path parameter.- Parameters:
settlementId- ID of the JIT settlement (required)_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. - 0 Error response. -
-
getV1TransfersJitLedgerIdBalancesCall
public okhttp3.Call getV1TransfersJitLedgerIdBalancesCall(@Nonnull String ledgerId, @Nullable LocalDate startDate, @Nullable LocalDate endDate, ApiCallback _callback) throws ApiException Build call for getV1TransfersJitLedgerIdBalances- Parameters:
ledgerId- (required)startDate- The start date (inclusive) of the ledgerbalances and activities. (optional)endDate- The end date (inclusive) of the ledgerbalances and activities. (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 OK -
-
getV1TransfersJitLedgerIdBalances
public GetV1TransfersJitLedgerIdBalances200Response getV1TransfersJitLedgerIdBalances(@Nonnull String ledgerId, @Nullable LocalDate startDate, @Nullable LocalDate endDate) throws ApiException Retrieve JIT Ledger Balances Returns an array of objects that correspond to each ledger account.- Parameters:
ledgerId- (required)startDate- The start date (inclusive) of the ledgerbalances and activities. (optional)endDate- The end date (inclusive) of the ledgerbalances and activities. (optional)- Returns:
- GetV1TransfersJitLedgerIdBalances200Response
- 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 -
-
getV1TransfersJitLedgerIdBalancesWithHttpInfo
public ApiResponse<GetV1TransfersJitLedgerIdBalances200Response> getV1TransfersJitLedgerIdBalancesWithHttpInfo(@Nonnull String ledgerId, @Nullable LocalDate startDate, @Nullable LocalDate endDate) throws ApiException Retrieve JIT Ledger Balances Returns an array of objects that correspond to each ledger account.- Parameters:
ledgerId- (required)startDate- The start date (inclusive) of the ledgerbalances and activities. (optional)endDate- The end date (inclusive) of the ledgerbalances and activities. (optional)- Returns:
- ApiResponse<GetV1TransfersJitLedgerIdBalances200Response>
- 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 -
-
getV1TransfersJitLedgerIdBalancesAsync
public okhttp3.Call getV1TransfersJitLedgerIdBalancesAsync(@Nonnull String ledgerId, @Nullable LocalDate startDate, @Nullable LocalDate endDate, ApiCallback<GetV1TransfersJitLedgerIdBalances200Response> _callback) throws ApiException Retrieve JIT Ledger Balances (asynchronously) Returns an array of objects that correspond to each ledger account.- Parameters:
ledgerId- (required)startDate- The start date (inclusive) of the ledgerbalances and activities. (optional)endDate- The end date (inclusive) of the ledgerbalances and activities. (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 OK -
-
getV1TransfersJitLedgersCall
Build call for getV1TransfersJitLedgers- 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 -
-
getV1TransfersJitLedgers
Retrieve JIT Ledgers Returns an array of objects that correspond to each ledger account, each of whichcontain the following attributes.- Returns:
- List<JITLedgerAccount>
- 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 -
-
getV1TransfersJitLedgersWithHttpInfo
public ApiResponse<List<JITLedgerAccount>> getV1TransfersJitLedgersWithHttpInfo() throws ApiExceptionRetrieve JIT Ledgers Returns an array of objects that correspond to each ledger account, each of whichcontain the following attributes.- Returns:
- ApiResponse<List<JITLedgerAccount>>
- 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 -
-
getV1TransfersJitLedgersAsync
public okhttp3.Call getV1TransfersJitLedgersAsync(ApiCallback<List<JITLedgerAccount>> _callback) throws ApiException Retrieve JIT Ledgers (asynchronously) Returns an array of objects that correspond to each ledger account, each of whichcontain the following attributes.- 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 -
-
getV1TransfersJitLimitsCall
Build call for getV1TransfersJitLimits- 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 Returns the JIT Securities Daily Trading Limit Object based off of real time calculations. -
-
getV1TransfersJitLimits
Retrieve Daily Trading Limits The JIT Securities daily trading limit is set at the correspondent level and is used as the limit for the total amount due to Alpaca on the date of settlement. The limit in use returns the real time usage of this limit and is calculated by taking the net of trade and non-trade activity inflows and outflows. If the limit in use reaches the daily net limit, further purchasing activity will be halted, however, the limit can be adjusted by reaching out to Alpaca with the proposed new limit and the reason for the change.- Returns:
- DailyTradingLimit
- 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 Returns the JIT Securities Daily Trading Limit Object based off of real time calculations. -
-
getV1TransfersJitLimitsWithHttpInfo
Retrieve Daily Trading Limits The JIT Securities daily trading limit is set at the correspondent level and is used as the limit for the total amount due to Alpaca on the date of settlement. The limit in use returns the real time usage of this limit and is calculated by taking the net of trade and non-trade activity inflows and outflows. If the limit in use reaches the daily net limit, further purchasing activity will be halted, however, the limit can be adjusted by reaching out to Alpaca with the proposed new limit and the reason for the change.- Returns:
- ApiResponse<DailyTradingLimit>
- 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 Returns the JIT Securities Daily Trading Limit Object based off of real time calculations. -
-
getV1TransfersJitLimitsAsync
public okhttp3.Call getV1TransfersJitLimitsAsync(ApiCallback<DailyTradingLimit> _callback) throws ApiException Retrieve Daily Trading Limits (asynchronously) The JIT Securities daily trading limit is set at the correspondent level and is used as the limit for the total amount due to Alpaca on the date of settlement. The limit in use returns the real time usage of this limit and is calculated by taking the net of trade and non-trade activity inflows and outflows. If the limit in use reaches the daily net limit, further purchasing activity will be halted, however, the limit can be adjusted by reaching out to Alpaca with the proposed new limit and the reason for the change.- 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 Returns the JIT Securities Daily Trading Limit Object based off of real time calculations. -
-
getV1TransfersJitReportsCall
public okhttp3.Call getV1TransfersJitReportsCall(@Nonnull String reportType, @Nonnull LocalDate systemDate, @Nullable String assetClass, @Nullable String responseType, ApiCallback _callback) throws ApiException Build call for getV1TransfersJitReports- Parameters:
reportType- The type of report you want to get. (required)systemDate- Date of file generation. (required)assetClass- The asset class to retrieve for. (optional)responseType- Controls how the report is returned. Use inline to return the report content directly in the response. Use download_url to return a temporary signed URL that can be used to download the generated report. If omitted, the default value is inline. (optional, default to inline)_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 -
-
getV1TransfersJitReports
public GetV1TransfersJitReports200Response getV1TransfersJitReports(@Nonnull String reportType, @Nonnull LocalDate systemDate, @Nullable String assetClass, @Nullable String responseType) throws ApiException Retrieve JIT Reports Retrieves a JIT report for the requested report type and system date. By default, the report is returned inline. For large reports, use response_type=download_url to receive a temporary signed download URL.- Parameters:
reportType- The type of report you want to get. (required)systemDate- Date of file generation. (required)assetClass- The asset class to retrieve for. (optional)responseType- Controls how the report is returned. Use inline to return the report content directly in the response. Use download_url to return a temporary signed URL that can be used to download the generated report. If omitted, the default value is inline. (optional, default to inline)- Returns:
- GetV1TransfersJitReports200Response
- 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 -
-
getV1TransfersJitReportsWithHttpInfo
public ApiResponse<GetV1TransfersJitReports200Response> getV1TransfersJitReportsWithHttpInfo(@Nonnull String reportType, @Nonnull LocalDate systemDate, @Nullable String assetClass, @Nullable String responseType) throws ApiException Retrieve JIT Reports Retrieves a JIT report for the requested report type and system date. By default, the report is returned inline. For large reports, use response_type=download_url to receive a temporary signed download URL.- Parameters:
reportType- The type of report you want to get. (required)systemDate- Date of file generation. (required)assetClass- The asset class to retrieve for. (optional)responseType- Controls how the report is returned. Use inline to return the report content directly in the response. Use download_url to return a temporary signed URL that can be used to download the generated report. If omitted, the default value is inline. (optional, default to inline)- Returns:
- ApiResponse<GetV1TransfersJitReports200Response>
- 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 -
-
getV1TransfersJitReportsAsync
public okhttp3.Call getV1TransfersJitReportsAsync(@Nonnull String reportType, @Nonnull LocalDate systemDate, @Nullable String assetClass, @Nullable String responseType, ApiCallback<GetV1TransfersJitReports200Response> _callback) throws ApiException Retrieve JIT Reports (asynchronously) Retrieves a JIT report for the requested report type and system date. By default, the report is returned inline. For large reports, use response_type=download_url to receive a temporary signed download URL.- Parameters:
reportType- The type of report you want to get. (required)systemDate- Date of file generation. (required)assetClass- The asset class to retrieve for. (optional)responseType- Controls how the report is returned. Use inline to return the report content directly in the response. Use download_url to return a temporary signed URL that can be used to download the generated report. If omitted, the default value is inline. (optional, default to inline)_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 -
-
postV1JitSettlementsCall
public okhttp3.Call postV1JitSettlementsCall(@Nonnull CreateJITSettlementRequest createJITSettlementRequest, ApiCallback _callback) throws ApiException Build call for postV1JitSettlements- Parameters:
createJITSettlementRequest- details of the JIT settlement request (required)_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 Settlement created. - 0 Error response. -
-
postV1JitSettlements
public SettlementResponse postV1JitSettlements(@Nonnull CreateJITSettlementRequest createJITSettlementRequest) throws ApiException Create a new JIT settlement Creates a new JIT settlement, which will trigger the reconciliation process for all included accounts.- Parameters:
createJITSettlementRequest- details of the JIT settlement request (required)- Returns:
- SettlementResponse
- 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 Settlement created. - 0 Error response. -
-
postV1JitSettlementsWithHttpInfo
public ApiResponse<SettlementResponse> postV1JitSettlementsWithHttpInfo(@Nonnull CreateJITSettlementRequest createJITSettlementRequest) throws ApiException Create a new JIT settlement Creates a new JIT settlement, which will trigger the reconciliation process for all included accounts.- Parameters:
createJITSettlementRequest- details of the JIT settlement request (required)- Returns:
- ApiResponse<SettlementResponse>
- 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 Settlement created. - 0 Error response. -
-
postV1JitSettlementsAsync
public okhttp3.Call postV1JitSettlementsAsync(@Nonnull CreateJITSettlementRequest createJITSettlementRequest, ApiCallback<SettlementResponse> _callback) throws ApiException Create a new JIT settlement (asynchronously) Creates a new JIT settlement, which will trigger the reconciliation process for all included accounts.- Parameters:
createJITSettlementRequest- details of the JIT settlement request (required)_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 Settlement created. - 0 Error response. -
-