Interface V2ServiceAsync
-
- All Implemented Interfaces:
public interface V2ServiceAsyncOrdersrepresent 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceV2ServiceAsync.WithRawResponseA view of V2ServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract V2ServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract V2ServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. abstract MarketDataServiceAsyncmarketData()Dinari provides basic market data for Stocksthat are available to transact on.abstract EntityServiceAsyncentities()Entitiesrepresent a business or organization that uses the API, and their customers.abstract AccountServiceAsyncaccounts()Accountsrepresent the financial accounts of anEntity.CompletableFuture<List<V2ListOrdersResponse>>listOrders()Get a list of all Ordersunder theEntity.<br>OptionallyOrderscan be transaction hash or fulfillment transaction hash.abstract CompletableFuture<List<V2ListOrdersResponse>>listOrders(V2ListOrdersParams params, RequestOptions requestOptions)CompletableFuture<List<V2ListOrdersResponse>>listOrders(V2ListOrdersParams params)CompletableFuture<List<V2ListOrdersResponse>>listOrders(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract V2ServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract V2ServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
marketData
abstract MarketDataServiceAsync marketData()
Dinari provides basic market data for
Stocksthat are available to transact on.This data is provided on a best-effort basis and we recommend using a dedicated provider for more intensive market data needs.
-
entities
abstract EntityServiceAsync entities()
Entitiesrepresent a business or organization that uses the API, and their customers.Dinari Partners are represented as an organization
Entityin the API, with their own accounts. Individual customers of PartnerEntitiesare also represented asEntitiesin the API, which are managed by the PartnerEntity.
-
accounts
abstract AccountServiceAsync accounts()
Accountsrepresent the financial accounts of anEntity.Orders, dividends, and other transactions are associated with anAccount.
-
listOrders
CompletableFuture<List<V2ListOrdersResponse>> listOrders()
Get a list of all
Ordersunder theEntity.<br>OptionallyOrderscan be transaction hash or fulfillment transaction hash.
-
listOrders
abstract CompletableFuture<List<V2ListOrdersResponse>> listOrders(V2ListOrdersParams params, RequestOptions requestOptions)
-
listOrders
CompletableFuture<List<V2ListOrdersResponse>> listOrders(V2ListOrdersParams params)
-
listOrders
CompletableFuture<List<V2ListOrdersResponse>> listOrders(RequestOptions requestOptions)
-
-
-
-