Interface Luno

All Known Subinterfaces:
LunoAuthenticated

@Path("api/1")
@Produces("application/json")
public interface Luno
  • Method Summary

    Modifier and Type Method Description
    LunoOrderBook orderbook​(String pair)
    Returns a list of bids and asks in the order book.
    LunoTicker ticker​(String pair)
    Market data API calls can be accessed by anyone without authentication.
    LunoTickers tickers()
    Returns the latest ticker indicators from all active Luno exchanges.
    LunoTrades trades​(String pair, Long since)
    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

      @GET @Path("tickers") LunoTickers tickers() throws IOException, LunoException
      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. XBTZAR
      since - optional - Fetch trades executed after this time, specified as a Unix timestamp in milliseconds.
      Returns:
      Throws:
      IOException
      LunoException