Package org.knowm.xchange.ripple
Interface RipplePublic
@Path("v1")
@Produces("application/json")
public interface RipplePublic
Returns public information that is stored in the ledger - secret not needed. See
https://github.com/ripple/ripple-rest for up-to-date documentation.
-
Method Summary
Modifier and TypeMethodDescriptiongetAccountBalances
(String address) Returns the account balances for this address.getAccountSettings
(String address) Returns the account settings for this address.getOrderBook
(String address, String base, String counter, String limit) Returns the order book for this address and base/counter pair.Fetch the network transaction fee.notifications
(String address, Boolean excludeFailed, Boolean earliestFirst, Integer resultsPerPage, Integer page, Long startLedger, Long endLedger) Returns notifications for this address.openAccountOrders
(String address) Returns the account information for this address.orderTransaction
(String address, String hash) Returns detailed information about this order transaction.paymentTransaction
(String address, String hash) Returns detailed information about this payment transaction.
-
Method Details
-
getOrderBook
@GET @Path("accounts/{address}/order_book/{base}/{counter}") RippleOrderBook getOrderBook(@PathParam("address") String address, @PathParam("base") String base, @PathParam("counter") String counter, @QueryParam("limit") String limit) throws IOException, RippleException Returns the order book for this address and base/counter pair.- Throws:
IOException
RippleException
-
getAccountBalances
@GET @Path("accounts/{address}/balances") RippleAccountBalances getAccountBalances(@PathParam("address") String address) throws IOException, RippleException Returns the account balances for this address. This is public information in the ledger (secret not needed).- Throws:
IOException
RippleException
-
getAccountSettings
@GET @Path("accounts/{address}/settings") RippleAccountSettings getAccountSettings(@PathParam("address") String address) throws IOException, RippleException Returns the account settings for this address. This is public information in the ledger (secret not needed).- Throws:
IOException
RippleException
-
openAccountOrders
@GET @Path("accounts/{address}/orders") RippleAccountOrders openAccountOrders(@PathParam("address") String address) throws IOException, RippleException Returns the account information for this address.- Throws:
IOException
RippleException
-
orderTransaction
@GET @Path("accounts/{address}/orders/{hash}") RippleOrderTransaction orderTransaction(@PathParam("address") String address, @PathParam("hash") String hash) throws IOException, RippleException Returns detailed information about this order transaction.- Throws:
IOException
RippleException
-
paymentTransaction
@GET @Path("accounts/{address}/payments/{hash}") RipplePaymentTransaction paymentTransaction(@PathParam("address") String address, @PathParam("hash") String hash) throws IOException, RippleException Returns detailed information about this payment transaction.- Throws:
IOException
RippleException
-
notifications
@GET @Path("accounts/{address}/notifications") RippleNotifications notifications(@PathParam("address") String address, @QueryParam("exclude_failed") Boolean excludeFailed, @QueryParam("earliest_first") Boolean earliestFirst, @QueryParam("results_per_page") Integer resultsPerPage, @QueryParam("page") Integer page, @QueryParam("start_ledger") Long startLedger, @QueryParam("end_ledger") Long endLedger) throws IOException, RippleException Returns notifications for this address.- Throws:
IOException
RippleException
-
getTransactionFee
Fetch the network transaction fee.
-