Package org.knowm.xchange.gateio
Interface GateioAuthenticated
- All Superinterfaces:
Gateio
@Path("api2/1") @Consumes("application/x-www-form-urlencoded") @Produces("application/json") public interface GateioAuthenticated extends Gateio
-
Method Summary
Modifier and Type Method Description GateioPlaceOrderReturn
buy(String currencyPair, BigDecimal rate, BigDecimal amount, String apiKey, si.mazi.rescu.ParamsDigest signer)
GateioBaseResponse
cancelAllOrders(String type, String currencyPair, String apiKey, si.mazi.rescu.ParamsDigest signer)
GateioBaseResponse
cancelOrder(String orderNumber, String currencyPair, String apiKey, si.mazi.rescu.ParamsDigest signer)
GateioDepositAddress
getDepositAddress(String apiKey, si.mazi.rescu.ParamsDigest signer, String currency)
GateioDepositsWithdrawals
getDepositsWithdrawals(String apiKey, si.mazi.rescu.ParamsDigest signer, Long startUnixTime, Long endUnixTime)
Map<String,GateioFeeInfo>
getFeeList(String apiKey, si.mazi.rescu.ParamsDigest signer)
GateioFunds
getFunds(String apiKey, si.mazi.rescu.ParamsDigest signer)
GateioOpenOrders
getOpenOrders(String apiKey, si.mazi.rescu.ParamsDigest signer)
GateioOrderStatus
getOrderStatus(String orderNumber, String currencyPair, String apiKey, si.mazi.rescu.ParamsDigest signer)
GateioTradeHistoryReturn
getUserTradeHistory(String apiKey, si.mazi.rescu.ParamsDigest signer, String currencyPair)
GateioPlaceOrderReturn
sell(String currencyPair, BigDecimal rate, BigDecimal amount, String apiKey, si.mazi.rescu.ParamsDigest signer)
GateioBaseResponse
withdraw(String apiKey, si.mazi.rescu.ParamsDigest signer, String currency, BigDecimal amount, String address)
Methods inherited from interface org.knowm.xchange.gateio.Gateio
getCoinInfo, getDepths, getFullDepth, getKlinesGate, getMarketInfo, getPairs, getTicker, getTickers, getTradeHistory, getTradeHistorySince
-
Method Details
-
getFunds
@POST @Path("private/balances") GateioFunds getFunds(@HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer) throws IOException- Throws:
IOException
-
getDepositAddress
@POST @Path("private/depositAddress") GateioDepositAddress getDepositAddress(@HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer, @FormParam("currency") String currency) throws IOException- Throws:
IOException
-
withdraw
@POST @Path("private/withdraw") GateioBaseResponse withdraw(@HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer, @FormParam("currency") String currency, @FormParam("amount") BigDecimal amount, @FormParam("address") String address) throws IOException- Throws:
IOException
-
cancelOrder
@POST @Path("private/cancelorder") GateioBaseResponse cancelOrder(@FormParam("orderNumber") String orderNumber, @FormParam("currencyPair") String currencyPair, @HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer) throws IOException- Throws:
IOException
-
cancelAllOrders
@POST @Path("private/cancelAllOrders") GateioBaseResponse cancelAllOrders(@FormParam("type") String type, @FormParam("currencyPair") String currencyPair, @HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer) throws IOException- Throws:
IOException
-
buy
@POST @Path("private/buy") GateioPlaceOrderReturn buy(@FormParam("currencyPair") String currencyPair, @FormParam("rate") BigDecimal rate, @FormParam("amount") BigDecimal amount, @HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer) throws IOException- Throws:
IOException
-
sell
@POST @Path("private/sell") GateioPlaceOrderReturn sell(@FormParam("currencyPair") String currencyPair, @FormParam("rate") BigDecimal rate, @FormParam("amount") BigDecimal amount, @HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer) throws IOException- Throws:
IOException
-
getOpenOrders
@POST @Path("private/openOrders") GateioOpenOrders getOpenOrders(@HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer) throws IOException- Throws:
IOException
-
getUserTradeHistory
@POST @Path("private/tradeHistory") GateioTradeHistoryReturn getUserTradeHistory(@HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer, @FormParam("currencyPair") String currencyPair) throws IOException- Throws:
IOException
-
getDepositsWithdrawals
@POST @Path("private/depositsWithdrawals") GateioDepositsWithdrawals getDepositsWithdrawals(@HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer, @FormParam("start") Long startUnixTime, @FormParam("end") Long endUnixTime) throws IOException- Throws:
IOException
-
getOrderStatus
@POST @Path("private/getorder") GateioOrderStatus getOrderStatus(@FormParam("orderNumber") String orderNumber, @FormParam("currencyPair") String currencyPair, @HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer) throws IOException- Throws:
IOException
-
getFeeList
@POST @Path("private/feelist") Map<String,GateioFeeInfo> getFeeList(@HeaderParam("KEY") String apiKey, @HeaderParam("SIGN") si.mazi.rescu.ParamsDigest signer) throws IOException- Throws:
IOException
-