Package org.knowm.xchange.ftx
Interface Ftx
- All Known Subinterfaces:
FtxAuthenticated
@Path("/api")
@Produces("application/json")
public interface Ftx
-
Method Summary
Modifier and Type Method Description FtxResponse<List<FtxCandleDto>>
getCandles(String market, String resolution, String startTime, String endTime, Integer limit)
FtxResponse<FtxMarketDto>
getMarket(String market)
FtxResponse<FtxMarketsDto>
getMarkets()
FtxResponse<FtxOrderbookDto>
getOrderbook(String market, int depth)
FtxResponse<List<FtxTradeDto>>
getTrades(String market, int limit)
-
Method Details
-
getMarkets
@GET @Path("/markets") @Consumes("application/json") FtxResponse<FtxMarketsDto> getMarkets() throws IOException, FtxException- Throws:
IOException
FtxException
-
getMarket
@GET @Path("/markets/{market_name}") @Consumes("application/json") FtxResponse<FtxMarketDto> getMarket(@PathParam("market_name") String market) throws IOException, FtxException- Throws:
IOException
FtxException
-
getTrades
@GET @Path("/markets/{market_name}/trades") @Consumes("application/json") FtxResponse<List<FtxTradeDto>> getTrades(@PathParam("market_name") String market, @QueryParam("limit") int limit) throws IOException, FtxException- Throws:
IOException
FtxException
-
getCandles
@GET @Path("/markets/{market_name}/candles") @Consumes("application/json") FtxResponse<List<FtxCandleDto>> getCandles(@PathParam("market_name") String market, @QueryParam("resolution") String resolution, @QueryParam("start_time") String startTime, @QueryParam("end_time") String endTime, @QueryParam("limit") Integer limit) throws IOException, FtxException- Throws:
IOException
FtxException
-
getOrderbook
@GET @Path("/markets/{market_name}/orderbook") FtxResponse<FtxOrderbookDto> getOrderbook(@PathParam("market_name") String market, @QueryParam("depth") int depth) throws IOException, FtxException- Throws:
IOException
FtxException
-