Interface V2Service
-
- All Implemented Interfaces:
public interface V2ServiceOrdersrepresent 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 interfaceV2Service.WithRawResponseA view of V2Service that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract V2Service.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract V2ServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. abstract MarketDataServicemarketData()Dinari provides basic market data for StocksandAlloysthat are available to transact on.abstract EntityServiceentities()Entitiesrepresent a business or organization that uses the API, and their customers.abstract AccountServiceaccounts()Accountsrepresent the financial accounts of anEntity.List<V2ListOrdersResponse>listOrders()Get a list of all Ordersunder theEntity.<br>OptionallyOrderscan be transaction hash or fulfillment transaction hash.abstract List<V2ListOrdersResponse>listOrders(V2ListOrdersParams params, RequestOptions requestOptions)List<V2ListOrdersResponse>listOrders(V2ListOrdersParams params)List<V2ListOrdersResponse>listOrders(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract V2Service.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract V2Service 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 MarketDataService marketData()
Dinari provides basic market data for
StocksandAlloysthat 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 EntityService 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 AccountService accounts()
Accountsrepresent the financial accounts of anEntity.Orders, dividends, and other transactions are associated with anAccount.
-
listOrders
List<V2ListOrdersResponse> listOrders()
Get a list of all
Ordersunder theEntity.<br>OptionallyOrderscan be transaction hash or fulfillment transaction hash.
-
listOrders
abstract List<V2ListOrdersResponse> listOrders(V2ListOrdersParams params, RequestOptions requestOptions)
-
listOrders
List<V2ListOrdersResponse> listOrders(V2ListOrdersParams params)
-
listOrders
List<V2ListOrdersResponse> listOrders(RequestOptions requestOptions)
-
-
-
-