Package org.knowm.xchange.bitz
Interface BitZ
@Path("api_v1")
@Produces("application/json")
public interface BitZ
-
Method Summary
Modifier and TypeMethodDescriptionaddEntrustSheet
(String apiKey, String symbol, String timeStamp, String nonce, si.mazi.rescu.ParamsDigest sign, String type, BigDecimal price, BigDecimal number, String tradePwd) cancelAllEntrustSheet
(String apiKey, String timeStamp, String nonce, si.mazi.rescu.ParamsDigest sign, String ids) cancelEntrustSheet
(String apiKey, String timeStamp, String nonce, si.mazi.rescu.ParamsDigest sign, String entrustSheetId) getCoinRate
(String coins) getCurrencyCoinRate
(String coins) getCurrencyRate
(String symbols) getEntrustSheetInfo
(String apiKey, String timeStamp, String nonce, si.mazi.rescu.ParamsDigest sign, String entrustSheetId) getKlineResult
(String symbol, String type) getOrdersResult
(String symbol) getSymbolList
(String symbols) getTickerAll
(String symbols) getTickerResult
(String symbol) getTradesResult
(String symbol) getUserAssets
(String apiKey, String timeStamp, String nonce, si.mazi.rescu.ParamsDigest sign) getUserHistoryEntrustSheet
(String apiKey, String timeStamp, String nonce, si.mazi.rescu.ParamsDigest sign, String coinFrom, String coinTo, Integer type, Integer page, Integer pageSize, String startTime, String endTime) getUserHistoryEntrustSheet
(String apiKey, String timeStamp, String nonce, si.mazi.rescu.ParamsDigest sign, String coinFrom, String coinTo, Integer page, Integer pageSize, String startTime, String endTime)
-
Method Details
-
getTickerAllResult
- Throws:
IOException
-
getTickerResult
@GET @Path("ticker?coin={symbol}") BitZTickerResult getTickerResult(@PathParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getOrdersResult
@GET @Path("depth?coin={symbol}") BitZOrdersResult getOrdersResult(@PathParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getTradesResult
@GET @Path("orders?coin={symbol}") BitZTradesResult getTradesResult(@PathParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getTicker
@GET @Path("Market/ticker") BitZTickerResult getTicker(@QueryParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getTickerAll
@GET @Path("Market/tickerall") BitZTickerAllResult getTickerAll(@QueryParam("symbol") String symbols) throws IOException - Throws:
IOException
-
getDepth
@GET @Path("Market/depth") BitZOrdersResult getDepth(@QueryParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getOrder
@GET @Path("Market/order") BitZTradesResult getOrder(@QueryParam("symbol") String symbol) throws IOException - Throws:
IOException
-
getKline
@GET @Path("Market/kline") BitZKlineResult getKline(@QueryParam("symbol") String symbol, @QueryParam("resolution") String resolution, @QueryParam("size") Integer size, @QueryParam("to") String microsecond) throws IOException - Throws:
IOException
-
getSymbolList
@GET @Path("Market/symbolList") BitZSymbolListResult getSymbolList(@QueryParam("symbol") String symbols) throws IOException - Throws:
IOException
-
getCurrencyRate
@GET @Path("Market/currencyRate") BitZCurrencyRateResult getCurrencyRate(@QueryParam("symbol") String symbols) throws IOException - Throws:
IOException
-
getCurrencyCoinRate
@GET @Path("Market/currencyCoinRate") BitZCurrencyCoinRateResult getCurrencyCoinRate(@QueryParam("coins") String coins) throws IOException - Throws:
IOException
-
getCoinRate
@GET @Path("Market/coinRate") BitZCurrencyCoinRateResult getCoinRate(@QueryParam("coins") String coins) throws IOException - Throws:
IOException
-
addEntrustSheet
@POST @Path("Trade/addEntrustSheet") BitZTradeAddResult addEntrustSheet(@FormParam("apiKey") String apiKey, @FormParam("symbol") String symbol, @FormParam("timeStamp") String timeStamp, @FormParam("nonce") String nonce, @FormParam("sign") si.mazi.rescu.ParamsDigest sign, @FormParam("type") String type, @FormParam("price") BigDecimal price, @FormParam("number") BigDecimal number, @FormParam("tradePwd") String tradePwd) throws IOException - Throws:
IOException
-
cancelEntrustSheet
@POST @Path("Trade/cancelEntrustSheet") BitZTradeCancelResult cancelEntrustSheet(@FormParam("apiKey") String apiKey, @FormParam("timeStamp") String timeStamp, @FormParam("nonce") String nonce, @FormParam("sign") si.mazi.rescu.ParamsDigest sign, @FormParam("entrustSheetId") String entrustSheetId) throws IOException - Throws:
IOException
-
cancelAllEntrustSheet
@POST @Path("Trade/cancelEntrustSheet") BitZTradeCancelListResult cancelAllEntrustSheet(@FormParam("apiKey") String apiKey, @FormParam("timeStamp") String timeStamp, @FormParam("nonce") String nonce, @FormParam("sign") si.mazi.rescu.ParamsDigest sign, @FormParam("ids") String ids) throws IOException - Throws:
IOException
-
getUserHistoryEntrustSheet
@POST @Path("Trade/getUserHistoryEntrustSheet") BitZUserHistoryResult getUserHistoryEntrustSheet(@FormParam("apiKey") String apiKey, @FormParam("timeStamp") String timeStamp, @FormParam("nonce") String nonce, @FormParam("sign") si.mazi.rescu.ParamsDigest sign, @FormParam("coinFrom") String coinFrom, @FormParam("coinTo") String coinTo, @FormParam("type") Integer type, @FormParam("page") Integer page, @FormParam("pageSize") Integer pageSize, @FormParam("startTime") String startTime, @FormParam("endTime") String endTime) throws IOException - Throws:
IOException
-
getUserHistoryEntrustSheet
@POST @Path("Trade/getUserHistoryEntrustSheet") BitZUserHistoryResult getUserHistoryEntrustSheet(@FormParam("apiKey") String apiKey, @FormParam("timeStamp") String timeStamp, @FormParam("nonce") String nonce, @FormParam("sign") si.mazi.rescu.ParamsDigest sign, @FormParam("coinFrom") String coinFrom, @FormParam("coinTo") String coinTo, @FormParam("page") Integer page, @FormParam("pageSize") Integer pageSize, @FormParam("startTime") String startTime, @FormParam("endTime") String endTime) throws IOException - Throws:
IOException
-
getEntrustSheetInfo
@POST @Path("Trade/getEntrustSheetInfo") BitZEntrustSheetInfoResult getEntrustSheetInfo(@FormParam("apiKey") String apiKey, @FormParam("timeStamp") String timeStamp, @FormParam("nonce") String nonce, @FormParam("sign") si.mazi.rescu.ParamsDigest sign, @FormParam("entrustSheetId") String entrustSheetId) throws IOException - Throws:
IOException
-
getUserAssets
@POST @Path("Assets/getUserAssets") BitZUserAssetsResult getUserAssets(@FormParam("apiKey") String apiKey, @FormParam("timeStamp") String timeStamp, @FormParam("nonce") String nonce, @FormParam("sign") si.mazi.rescu.ParamsDigest sign) throws IOException - Throws:
IOException
-
getKlineResult
@GET @Path("kline?coin={symbol}&type={type}") BitZKlineResult getKlineResult(@PathParam("symbol") String symbol, @PathParam("type") String type) throws IOException - Throws:
IOException
-