Package org.knowm.xchange.therock
Interface TheRockAuthenticated
@Path("v1")
@Produces("application/json")
public interface TheRockAuthenticated
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbalance
(String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, String currency) balances
(String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory) cancelOrder
(TheRock.Pair currencyPair, Long orderId, String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory) orders
(TheRock.Pair currencyPair, String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory) orders
(TheRock.Pair currencyPair, String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, Date after, Date before, String status, TheRockOrder.Side side, Long positionId, int page) placeOrder
(TheRock.Pair currencyPair, String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, TheRockOrder order) showOrder
(TheRock.Pair currencyPair, Long orderId, String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory) trades
(TheRock.Pair currencyPair, String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, Long sinceTradeId, Date after, Date before, int perPage, int page) transactions
(String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, String type, Date after, Date before, String currency, Integer page) withdraw
(String publicKey, TheRockDigest signer, si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, TheRockWithdrawal withdrawal)
-
Field Details
-
X_TRT_SIGN
- See Also:
-
X_TRT_KEY
- See Also:
-
X_TRT_NONCE
- See Also:
-
-
Method Details
-
balance
@GET @Path("balances/{currency}") TheRockBalance balance(@HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, @PathParam("currency") String currency) throws TheRockException, IOException - Throws:
TheRockException
IOException
-
balances
@GET @Path("balances") TheRockBalances balances(@HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory) throws TheRockException, IOException - Throws:
TheRockException
IOException
-
withdraw
@POST @Consumes("application/json") @Path("atms/withdraw") TheRockWithdrawalResponse withdraw(@HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, TheRockWithdrawal withdrawal) throws TheRockException, IOException - Throws:
TheRockException
IOException
-
placeOrder
@POST @Consumes("application/json") @Path("funds/{fund_id}/orders") TheRockOrder placeOrder(@PathParam("fund_id") TheRock.Pair currencyPair, @HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, TheRockOrder order) throws TheRockException, IOException - Throws:
TheRockException
IOException
-
cancelOrder
@DELETE @Path("funds/{fund_id}/orders/{id}") TheRockOrder cancelOrder(@PathParam("fund_id") TheRock.Pair currencyPair, @PathParam("id") Long orderId, @HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory) throws TheRockException, IOException - Throws:
TheRockException
IOException
-
orders
@GET @Path("funds/{fund_id}/orders") TheRockOrders orders(@PathParam("fund_id") TheRock.Pair currencyPair, @HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory) throws TheRockException, IOException - Throws:
TheRockException
IOException
-
orders
@GET @Path("funds/{fund_id}/orders") TheRockOrders orders(@PathParam("fund_id") TheRock.Pair currencyPair, @HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, @QueryParam("after") Date after, @QueryParam("before") Date before, @QueryParam("status") String status, @QueryParam("side") TheRockOrder.Side side, @QueryParam("position_id") Long positionId, @QueryParam("page") int page) throws TheRockException, IOException - Throws:
TheRockException
IOException
-
showOrder
@GET @Path("funds/{fund_id}/orders/{id}") TheRockOrder showOrder(@PathParam("fund_id") TheRock.Pair currencyPair, @PathParam("id") Long orderId, @HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory) throws TheRockException, IOException - Throws:
TheRockException
IOException
-
trades
@GET @Path("funds/{fund_id}/trades") TheRockUserTrades trades(@PathParam("fund_id") TheRock.Pair currencyPair, @HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, @QueryParam("trade_id") Long sinceTradeId, @QueryParam("after") Date after, @QueryParam("before") Date before, @QueryParam("per_page") int perPage, @QueryParam("page") int page) throws TheRockException, IOException - Throws:
TheRockException
IOException
-
transactions
@GET @Path("transactions") TheRockTransactions transactions(@HeaderParam("X-TRT-KEY") String publicKey, @HeaderParam("X-TRT-SIGN") TheRockDigest signer, @HeaderParam("X-TRT-NONCE") si.mazi.rescu.SynchronizedValueFactory<Long> nonceFactory, @QueryParam("type") String type, @QueryParam("after") Date after, @QueryParam("before") Date before, @QueryParam("currency") String currency, @QueryParam("page") Integer page) throws TheRockException, IOException - Throws:
TheRockException
IOException
-