Package org.knowm.xchange.luno
Interface Luno
- All Known Subinterfaces:
LunoAuthenticated
@Path("api/1")
@Produces("application/json")
public interface Luno
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of bids and asks in the order book.Market data API calls can be accessed by anyone without authentication.tickers()
Returns the latest ticker indicators from all active Luno exchanges.Returns a list of the most recent trades.
-
Method Details
-
ticker
@GET @Path("ticker") LunoTicker ticker(@QueryParam("pair") String pair) throws IOException, LunoException Market data API calls can be accessed by anyone without authentication.- Parameters:
pair
- required - Currency pair e.g. XBTZAR- Returns:
- Throws:
IOException
LunoException
-
tickers
Returns the latest ticker indicators from all active Luno exchanges.- Returns:
- Throws:
IOException
LunoException
-
orderbook
@GET @Path("orderbook") LunoOrderBook orderbook(@QueryParam("pair") String pair) throws IOException, LunoException Returns a list of bids and asks in the order book. Ask orders are sorted by price ascending. Bid orders are sorted by price descending. Note that multiple orders at the same price are not necessarily conflated.- Parameters:
pair
- required - Currency pair e.g. XBTZAR- Returns:
- Throws:
IOException
LunoException
-
trades
@GET @Path("trades") LunoTrades trades(@QueryParam("pair") String pair, @QueryParam("since") Long since) throws IOException, LunoException Returns a list of the most recent trades. At most 100 results are returned per call.- Parameters:
pair
- required - Currency pair e.g. XBTZARsince
- optional - Fetch trades executed after this time, specified as a Unix timestamp in milliseconds.- Returns:
- Throws:
IOException
LunoException
-