Package org.knowm.xchange.kuna
Interface Kuna
- All Known Subinterfaces:
KunaAuthenticated
@Path("/v2")
@Produces("application/json")
public interface Kuna
- Author:
- Dat Bui
-
Method Summary
Modifier and TypeMethodDescriptionReturns ticker for given currency pair.Returns available tickers.Returns current server timestamp.getTradesHistory
(String pair) Returns trading history
-
Method Details
-
getTimestamp
Returns current server timestamp.- Returns:
- timestamp
- Throws:
IOException
-
getTickers
Returns available tickers.- Returns:
- tickers
- Throws:
IOException
KunaException
-
getTicker
@GET @Path("tickers/{pair}") KunaTimeTicker getTicker(@PathParam("pair") String pair) throws IOException, KunaException Returns ticker for given currency pair.- Parameters:
pair
- currency pair- Returns:
- ticker with timestamp
- Throws:
IOException
KunaException
-
getOrders
@GET @Path("order_book") KunaAskBid getOrders(@QueryParam("market") String pair) throws IOException, KunaException - Parameters:
pair
-- Returns:
- Throws:
IOException
KunaException
-
getTradesHistory
@GET @Path("trades") KunaTrade[] getTradesHistory(@QueryParam("market") String pair) throws IOException, KunaException Returns trading history- Parameters:
pair
- instrument- Returns:
- trade list
- Throws:
IOException
KunaException
-