Interface AccountService
-
- All Implemented Interfaces:
public interface AccountServiceAccountsrepresent 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 interfaceAccountService.WithRawResponseA view of AccountService that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract AccountService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract AccountService 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 WalletService 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 OrderService 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 OrderFulfillmentService 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 OrderRequestService orderRequests()
-
withdrawalRequests
abstract WithdrawalRequestService 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 WithdrawalService 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 TokenTransferService tokenTransfers()
Accountsrepresent the financial accounts of anEntity.Orders, dividends, and other transactions are associated with anAccount.
-
activities
abstract ActivityService activities()
Accountsrepresent the financial accounts of anEntity.Orders, dividends, and other transactions are associated with anAccount.
-
retrieve
Account retrieve(String accountId, AccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
Account retrieve(String accountId, AccountRetrieveParams params)
-
retrieve
abstract Account retrieve(AccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
Account retrieve(AccountRetrieveParams params)
-
retrieve
Account retrieve(String accountId, RequestOptions requestOptions)
-
deactivate
Account deactivate(String accountId)
Set the
Accountto be inactive. Inactive accounts cannot be used for trading.
-
deactivate
Account deactivate(String accountId, AccountDeactivateParams params, RequestOptions requestOptions)
-
deactivate
Account deactivate(String accountId, AccountDeactivateParams params)
-
deactivate
abstract Account deactivate(AccountDeactivateParams params, RequestOptions requestOptions)
-
deactivate
Account deactivate(AccountDeactivateParams params)
-
deactivate
Account deactivate(String accountId, RequestOptions requestOptions)
-
getCashBalances
List<AccountGetCashBalancesResponse> getCashBalances(String accountId)
Get the cash balances of the
Account, including stablecoins and other cash equivalents.
-
getCashBalances
List<AccountGetCashBalancesResponse> getCashBalances(String accountId, AccountGetCashBalancesParams params, RequestOptions requestOptions)
-
getCashBalances
List<AccountGetCashBalancesResponse> getCashBalances(String accountId, AccountGetCashBalancesParams params)
-
getCashBalances
abstract List<AccountGetCashBalancesResponse> getCashBalances(AccountGetCashBalancesParams params, RequestOptions requestOptions)
-
getCashBalances
List<AccountGetCashBalancesResponse> getCashBalances(AccountGetCashBalancesParams params)
-
getCashBalances
List<AccountGetCashBalancesResponse> getCashBalances(String accountId, RequestOptions requestOptions)
-
getDividendPayments
List<AccountGetDividendPaymentsResponse> getDividendPayments(String accountId, AccountGetDividendPaymentsParams params)
Get dividend payments made to the
Accountfrom dividend-bearing stock holdings.
-
getDividendPayments
List<AccountGetDividendPaymentsResponse> getDividendPayments(String accountId, AccountGetDividendPaymentsParams params, RequestOptions requestOptions)
-
getDividendPayments
List<AccountGetDividendPaymentsResponse> getDividendPayments(AccountGetDividendPaymentsParams params)
-
getDividendPayments
abstract List<AccountGetDividendPaymentsResponse> getDividendPayments(AccountGetDividendPaymentsParams params, RequestOptions requestOptions)
-
getInterestPayments
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
List<AccountGetInterestPaymentsResponse> getInterestPayments(String accountId, AccountGetInterestPaymentsParams params, RequestOptions requestOptions)
-
getInterestPayments
List<AccountGetInterestPaymentsResponse> getInterestPayments(AccountGetInterestPaymentsParams params)
-
getInterestPayments
abstract List<AccountGetInterestPaymentsResponse> getInterestPayments(AccountGetInterestPaymentsParams params, RequestOptions requestOptions)
-
getPortfolio
AccountGetPortfolioResponse getPortfolio(String accountId)
Get the portfolio of the
Account, excluding cash equivalents such as stablecoins.
-
getPortfolio
AccountGetPortfolioResponse getPortfolio(String accountId, AccountGetPortfolioParams params, RequestOptions requestOptions)
-
getPortfolio
AccountGetPortfolioResponse getPortfolio(String accountId, AccountGetPortfolioParams params)
-
getPortfolio
abstract AccountGetPortfolioResponse getPortfolio(AccountGetPortfolioParams params, RequestOptions requestOptions)
-
getPortfolio
AccountGetPortfolioResponse getPortfolio(AccountGetPortfolioParams params)
-
getPortfolio
AccountGetPortfolioResponse getPortfolio(String accountId, RequestOptions requestOptions)
-
mintSandboxTokens
Unit mintSandboxTokens(String accountId)
Mints 1,000 mockUSD sandbox payment tokens to the
Walletconnected to theAccount.This feature is only supported in sandbox mode.
-
mintSandboxTokens
Unit mintSandboxTokens(String accountId, AccountMintSandboxTokensParams params, RequestOptions requestOptions)
-
mintSandboxTokens
Unit mintSandboxTokens(String accountId, AccountMintSandboxTokensParams params)
-
mintSandboxTokens
abstract Unit mintSandboxTokens(AccountMintSandboxTokensParams params, RequestOptions requestOptions)
-
mintSandboxTokens
Unit mintSandboxTokens(AccountMintSandboxTokensParams params)
-
mintSandboxTokens
Unit mintSandboxTokens(String accountId, RequestOptions requestOptions)
-
-
-
-