public ItBitAccountInfoReturn[] getItBitAccountInfo() throws IOException { ItBitAccountInfoReturn[] info = itBitAuthenticated.getInfo( signatureCreator, new Date().getTime(), exchange.getNonceFactory(), userId); return info; }
public ItBitAccountInfoReturn getItBitAccountInfo(String walletId) throws IOException { ItBitAccountInfoReturn itBitAccountInfoReturn = itBitAuthenticated.getWallet( signatureCreator, new Date().getTime(), exchange.getNonceFactory(), walletId); return itBitAccountInfoReturn; } }
public List<PaymiumOrder> getPaymiumOrders(Long offset, Integer limit) throws IOException { return paymiumAuthenticated.getOrders( apiKey, signatureCreator, exchange.getNonceFactory(), offset, limit, Arrays.asList("LimitOrder"), null); } }
public HashMap<String, PoloniexBalance> getWallets() throws IOException { // using account="all" for margin + lending balances return poloniexAuthenticated.returnCompleteBalances( apiKey, signatureCreator, exchange.getNonceFactory(), "all"); }
public List<PaymiumOrder> getPaymiumFundingOrders(Long offset, Integer limit) throws IOException { return paymiumAuthenticated.getOrders( apiKey, signatureCreator, exchange.getNonceFactory(), offset, limit, Arrays.asList("WireDeposit", "BitcoinDeposit", "Transfer"), null); } }
public List<Balance> balances() { Map map = exmo.userInfo(signatureCreator, apiKey, exchange.getNonceFactory()); Map<String, String> balances = (Map<String, String>) map.get("balances"); Map<String, String> reserved = (Map<String, String>) map.get("reserved"); List<Balance> results = new ArrayList<>(); for (String ccy : balances.keySet()) { results.add(ExmoAdapters.adaptBalance(balances, reserved, ccy)); } return results; }
@Override public boolean cancelOrder(CancelOrderParams orderParams) throws IOException { if (orderParams instanceof CancelOrderByIdParams) { CancelOrderByIdParams params = (CancelOrderByIdParams) orderParams; String orderId = params.getOrderId(); Map map = exmo.orderCancel(signatureCreator, apiKey, exchange.getNonceFactory(), orderId); return (boolean) map.get("result"); } return false; }
public BitbayCancelResponse cancelBitbayOrder(long id) throws IOException { BitbayCancelResponse response = bitbayAuthenticated.cancel(apiKey, sign, exchange.getNonceFactory(), id); checkError(response); return response; } }
public BTCTradeOrder getBTCTradeOrder(String id) throws IOException { synchronized (session) { return btcTrade.getOrder(id, exchange.getNonceFactory(), publicKey, getSignatureCreator()); } }
public BitbayAccountInfoResponse getBitbayAccountInfo() throws IOException { BitbayAccountInfoResponse response = bitbayAuthenticated.info(apiKey, sign, exchange.getNonceFactory()); checkError(response); return response; }
public List<Map> getBitbayTransactions(CurrencyPair currencyPair) throws IOException, ExchangeException { return bitbayAuthenticated.transactions( apiKey, sign, exchange.getNonceFactory(), currencyPair == null ? null : currencyPair.base.toString() + "-" + currencyPair.counter.toString()); }
public DSXCancelAllOrdersResult cancelAllDSXOrders() throws IOException { DSXCancelAllOrdersReturn ret = dsx.cancelAllOrders(apiKey, signatureCreator, exchange.getNonceFactory()); if (MSG_BAD_STATUS.equals(ret.getError())) { return null; } checkResult(ret); return ret.getReturnValue(); }
public PoloniexDepositsWithdrawalsResponse returnDepositsWithdrawals(Date start, Date end) throws IOException { return poloniexAuthenticated.returnDepositsWithdrawals( apiKey, signatureCreator, exchange.getNonceFactory(), DateUtils.toUnixTimeNullSafe(start), DateUtils.toUnixTimeNullSafe(end)); }
public String getDepositAddress(String currency) throws IOException { HuobiDepositAddressResult depositAddressResult = huobi.getDepositAddress( currency.toLowerCase(), exchange.getExchangeSpecification().getApiKey(), HuobiDigest.HMAC_SHA_256, 2, HuobiUtils.createUTCDate(exchange.getNonceFactory()), signatureCreator); return checkResult(depositAddressResult); }
public CoinsuperAccountServiceRaw(Exchange exchange) { super(exchange); this.coinsuper = RestProxyFactory.createProxy( CoinsuperAuthenticated.class, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); this.apiKey = super.apiKey; this.secretKey = super.secretKey; this.nonceFactory = exchange.getNonceFactory(); }
public List<WithdrawStatus> getWithdrawStatus(String assetPairs, String assets, String method) throws IOException { WithdrawStatusResult result = kraken.getWithdrawStatus( assetPairs, assets, method, exchange.getExchangeSpecification().getApiKey(), signatureCreator, exchange.getNonceFactory()); return checkResult(result); }
public boolean cancelCCEXLimitOrder(String uuid) throws IOException { CCEXCancelResponse response = cCEXAuthenticated.cancel(apiKey, signatureCreator, exchange.getNonceFactory(), uuid); if (response.isSuccess()) { return true; } else { throw new ExchangeException(response.getMessage()); } }
public KucoinResponse<KucoinCoinBalances> getKucoinBalances(Integer limit, Integer page) throws IOException { try { return checkSuccess( kucoin.accountBalances( apiKey, exchange.getNonceFactory(), signatureCreator, limit, page)); } catch (KucoinException e) { throw new ExchangeException(e.getMessage()); } }
public CoinsuperTradeServiceRaw(Exchange exchange) { super(exchange); this.coinsuper = RestProxyFactory.createProxy( CoinsuperAuthenticated.class, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); this.apiKey = super.apiKey; this.secretKey = super.secretKey; this.nonceFactory = exchange.getNonceFactory(); }
public Map<String, KrakenOrder> queryKrakenOrders( boolean includeTrades, String userRef, String... transactionIds) throws IOException { KrakenQueryOrderResult result = kraken.queryOrders( includeTrades, userRef, createDelimitedString(transactionIds), exchange.getExchangeSpecification().getApiKey(), signatureCreator, exchange.getNonceFactory()); return checkResult(result); }