Package org.knowm.xchange.binance
Interface Binance
- All Known Subinterfaces:
BinanceAuthenticated
@Path("")
@Produces("application/json")
public interface Binance
-
Method Summary
Modifier and Type Method Description List<BinanceAggTrades>aggTrades(String symbol, Long fromId, Long startTime, Long endTime, Integer limit)BinanceOrderbookdepth(String symbol, Integer limit)BinanceExchangeInfoexchangeInfo()List<Object[]>klines(String symbol, String interval, Integer limit, Long startTime, Long endTime)Objectping()BinanceSystemStatussystemStatus()List<BinanceTicker24h>ticker24h()BinanceTicker24hticker24h(String symbol)List<BinancePriceQuantity>tickerAllBookTickers()List<BinancePrice>tickerAllPrices()BinancePricetickerPrice(String symbol)BinanceTimetime()
-
Method Details
-
systemStatus
- Throws:
IOException
-
ping
- Throws:
IOException
-
time
- Throws:
IOException
-
exchangeInfo
- Throws:
IOException
-
depth
@GET @Path("api/v3/depth") BinanceOrderbook depth(@QueryParam("symbol") String symbol, @QueryParam("limit") Integer limit) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
aggTrades
@GET @Path("api/v3/aggTrades") List<BinanceAggTrades> aggTrades(@QueryParam("symbol") String symbol, @QueryParam("fromId") Long fromId, @QueryParam("startTime") Long startTime, @QueryParam("endTime") Long endTime, @QueryParam("limit") Integer limit) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
klines
@GET @Path("api/v3/klines") List<Object[]> klines(@QueryParam("symbol") String symbol, @QueryParam("interval") String interval, @QueryParam("limit") Integer limit, @QueryParam("startTime") Long startTime, @QueryParam("endTime") Long endTime) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
ticker24h
@GET @Path("api/v3/ticker/24hr") List<BinanceTicker24h> ticker24h() throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
ticker24h
@GET @Path("api/v3/ticker/24hr") BinanceTicker24h ticker24h(@QueryParam("symbol") String symbol) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
tickerPrice
@GET @Path("api/v3/ticker/price") BinancePrice tickerPrice(@QueryParam("symbol") String symbol) throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
tickerAllPrices
@GET @Path("api/v3/ticker/price") List<BinancePrice> tickerAllPrices() throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-
tickerAllBookTickers
@GET @Path("api/v3/ticker/bookTicker") List<BinancePriceQuantity> tickerAllBookTickers() throws IOException, BinanceException- Throws:
IOExceptionBinanceException
-