Interface AccountServiceAsync
-
- All Implemented Interfaces:
public interface AccountServiceAsyncAccountsrepresent the financial accounts of anEntity.Orders, dividends, and other transactions are associated with anAccount.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceAccountServiceAsync.WithRawResponseA view of AccountServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract AccountServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract AccountServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
wallet
abstract WalletServiceAsync wallet()
Walletsrepresent the blockchain wallet that holds the assets of anAccount.An
Accountmay be connected to a singleWallet.Individual
Entitiescan connect their self-custodiedWalletsby proving ownership of theWalletaddress. For Dinari Partners, a Dinari-managedWalletcan be created for the PartnerEntityin the Dinari Partners Portal. This may be used in omnibus accounting for self-managing customers' assets.
-
orders
abstract OrderServiceAsync orders()
Ordersrepresent the buying and selling of assets under anAccount.For
Accountsusing self-custodiedWallets,Ordersare created and fulfilled by making calls to Dinari's smart contracts, or using the Proxied Orders methods.For
Accountsusing managedWallets,Ordersare created and fulfilled by using theManaged Ordersmethods, which then create the corresponding transactions on the blockchain.
-
orderFulfillments
abstract OrderFulfillmentServiceAsync orderFulfillments()
Ordersrepresent the buying and selling of assets under anAccount.For
Accountsusing self-custodiedWallets,Ordersare created and fulfilled by making calls to Dinari's smart contracts, or using the Proxied Orders methods.For
Accountsusing managedWallets,Ordersare created and fulfilled by using theManaged Ordersmethods, which then create the corresponding transactions on the blockchain.
-
orderRequests
abstract OrderRequestServiceAsync orderRequests()
-
withdrawalRequests
abstract WithdrawalRequestServiceAsync withdrawalRequests()
Withdrawalsrepresent the transfer of stablecoins from anAccountconnected to a managedWalletto anotherAccountthat is owned by theEntity.Since the
Accountis backed by a managedWallet, theWithdrawalmust be processed by Dinari and the corresponding transaction is submitted on chain.Upon requesting a withdrawal, a
WithdrawalRequestis created, which is then submitted on chain by Dinari. Once the transfer is submitted on chain, the correspondingWithdrawalis created.Currently, withdrawals are made in USDC on the Arbitrum network (Chain ID
eip155:42161).
-
withdrawals
abstract WithdrawalServiceAsync withdrawals()
Withdrawalsrepresent the transfer of stablecoins from anAccountconnected to a managedWalletto anotherAccountthat is owned by theEntity.Since the
Accountis backed by a managedWallet, theWithdrawalmust be processed by Dinari and the corresponding transaction is submitted on chain.Upon requesting a withdrawal, a
WithdrawalRequestis created, which is then submitted on chain by Dinari. Once the transfer is submitted on chain, the correspondingWithdrawalis created.Currently, withdrawals are made in USDC on the Arbitrum network (Chain ID
eip155:42161).
-
tokenTransfers
abstract TokenTransferServiceAsync tokenTransfers()
Accountsrepresent the financial accounts of anEntity.Orders, dividends, and other transactions are associated with anAccount.
-
activities
abstract ActivityServiceAsync activities()
Accountsrepresent the financial accounts of anEntity.Orders, dividends, and other transactions are associated with anAccount.
-
retrieve
CompletableFuture<Account> retrieve(String accountId)
Get a specific
Accountby its ID.
-
retrieve
CompletableFuture<Account> retrieve(String accountId, AccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Account> retrieve(String accountId, AccountRetrieveParams params)
-
retrieve
abstract CompletableFuture<Account> retrieve(AccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Account> retrieve(AccountRetrieveParams params)
-
retrieve
CompletableFuture<Account> retrieve(String accountId, RequestOptions requestOptions)
-
deactivate
CompletableFuture<Account> deactivate(String accountId)
Set the
Accountto be inactive. Inactive accounts cannot be used for trading.
-
deactivate
CompletableFuture<Account> deactivate(String accountId, AccountDeactivateParams params, RequestOptions requestOptions)
-
deactivate
CompletableFuture<Account> deactivate(String accountId, AccountDeactivateParams params)
-
deactivate
abstract CompletableFuture<Account> deactivate(AccountDeactivateParams params, RequestOptions requestOptions)
-
deactivate
CompletableFuture<Account> deactivate(AccountDeactivateParams params)
-
deactivate
CompletableFuture<Account> deactivate(String accountId, RequestOptions requestOptions)
-
getCashBalances
CompletableFuture<List<AccountGetCashBalancesResponse>> getCashBalances(String accountId)
Get the cash balances of the
Account, including stablecoins and other cash equivalents.
-
getCashBalances
CompletableFuture<List<AccountGetCashBalancesResponse>> getCashBalances(String accountId, AccountGetCashBalancesParams params, RequestOptions requestOptions)
-
getCashBalances
CompletableFuture<List<AccountGetCashBalancesResponse>> getCashBalances(String accountId, AccountGetCashBalancesParams params)
-
getCashBalances
abstract CompletableFuture<List<AccountGetCashBalancesResponse>> getCashBalances(AccountGetCashBalancesParams params, RequestOptions requestOptions)
-
getCashBalances
CompletableFuture<List<AccountGetCashBalancesResponse>> getCashBalances(AccountGetCashBalancesParams params)
-
getCashBalances
CompletableFuture<List<AccountGetCashBalancesResponse>> getCashBalances(String accountId, RequestOptions requestOptions)
-
getDividendPayments
CompletableFuture<List<AccountGetDividendPaymentsResponse>> getDividendPayments(String accountId, AccountGetDividendPaymentsParams params)
Get dividend payments made to the
Accountfrom dividend-bearing stock holdings.
-
getDividendPayments
CompletableFuture<List<AccountGetDividendPaymentsResponse>> getDividendPayments(String accountId, AccountGetDividendPaymentsParams params, RequestOptions requestOptions)
-
getDividendPayments
CompletableFuture<List<AccountGetDividendPaymentsResponse>> getDividendPayments(AccountGetDividendPaymentsParams params)
-
getDividendPayments
abstract CompletableFuture<List<AccountGetDividendPaymentsResponse>> getDividendPayments(AccountGetDividendPaymentsParams params, RequestOptions requestOptions)
-
getInterestPayments
CompletableFuture<List<AccountGetInterestPaymentsResponse>> getInterestPayments(String accountId, AccountGetInterestPaymentsParams params)
Get interest payments made to the
Accountfrom yield-bearing cash holdings.Currently, the only yield-bearing stablecoin accepted by Dinari is USD+.
-
getInterestPayments
CompletableFuture<List<AccountGetInterestPaymentsResponse>> getInterestPayments(String accountId, AccountGetInterestPaymentsParams params, RequestOptions requestOptions)
-
getInterestPayments
CompletableFuture<List<AccountGetInterestPaymentsResponse>> getInterestPayments(AccountGetInterestPaymentsParams params)
-
getInterestPayments
abstract CompletableFuture<List<AccountGetInterestPaymentsResponse>> getInterestPayments(AccountGetInterestPaymentsParams params, RequestOptions requestOptions)
-
getPortfolio
CompletableFuture<AccountGetPortfolioResponse> getPortfolio(String accountId)
Get the portfolio of the
Account, excluding cash equivalents such as stablecoins.
-
getPortfolio
CompletableFuture<AccountGetPortfolioResponse> getPortfolio(String accountId, AccountGetPortfolioParams params, RequestOptions requestOptions)
-
getPortfolio
CompletableFuture<AccountGetPortfolioResponse> getPortfolio(String accountId, AccountGetPortfolioParams params)
-
getPortfolio
abstract CompletableFuture<AccountGetPortfolioResponse> getPortfolio(AccountGetPortfolioParams params, RequestOptions requestOptions)
-
getPortfolio
CompletableFuture<AccountGetPortfolioResponse> getPortfolio(AccountGetPortfolioParams params)
-
getPortfolio
CompletableFuture<AccountGetPortfolioResponse> getPortfolio(String accountId, RequestOptions requestOptions)
-
mintSandboxTokens
CompletableFuture<Void> mintSandboxTokens(String accountId)
Mints 1,000 mockUSD sandbox payment tokens to the
Walletconnected to theAccount.This feature is only supported in sandbox mode.
-
mintSandboxTokens
CompletableFuture<Void> mintSandboxTokens(String accountId, AccountMintSandboxTokensParams params, RequestOptions requestOptions)
-
mintSandboxTokens
CompletableFuture<Void> mintSandboxTokens(String accountId, AccountMintSandboxTokensParams params)
-
mintSandboxTokens
abstract CompletableFuture<Void> mintSandboxTokens(AccountMintSandboxTokensParams params, RequestOptions requestOptions)
-
mintSandboxTokens
CompletableFuture<Void> mintSandboxTokens(AccountMintSandboxTokensParams params)
-
mintSandboxTokens
CompletableFuture<Void> mintSandboxTokens(String accountId, RequestOptions requestOptions)
-
-
-
-