public List<BTCTurkOpenOrders> getBTCTurkOpenOrders(CurrencyPair pair) throws IOException { return btcTurk.getOpenOrders( pair.toString().replace("/", ""), exchange.getExchangeSpecification().getApiKey(), exchange.getNonceFactory(), signatureCreator); }
public BTCTurkAccountBalance getBTCTurkBalance() throws IOException { final BTCTurkAccountBalance balance = btcTurk.getBalance( exchange.getExchangeSpecification().getApiKey(), exchange.getNonceFactory(), signatureCreator); return balance; }
@Override protected void initServices() { ExchangeSpecification spec = getExchangeSpecification(); AcxApi api = RestProxyFactory.createProxy(AcxApi.class, spec.getSslUri()); AcxMapper mapper = new AcxMapper(); this.marketDataService = new AcxMarketDataService(api, mapper); if (spec.getApiKey() != null && spec.getSecretKey() != null) { AcxSignatureCreator signatureCreator = new AcxSignatureCreator(spec.getSecretKey()); this.accountService = new AcxAccountService(api, mapper, signatureCreator, spec.getApiKey()); this.tradeService = new AcxTradeService(api, mapper, signatureCreator, spec.getApiKey()); } }
public List<BTCTurkUserTransactions> getBTCTurkUserTransactions( int offset, int limit, BTCTurkSort sort) throws IOException { return btcTurk.getUserTransactions( offset, limit, sort.toString(), exchange.getExchangeSpecification().getApiKey(), exchange.getNonceFactory(), signatureCreator); } }
public List<DepostitStatus> getDepositStatus(String assetPairs, String assets, String method) throws IOException { DepositStatusResult result = kraken.getDepositStatus( assetPairs, assets, method, exchange.getExchangeSpecification().getApiKey(), signatureCreator, exchange.getNonceFactory()); return checkResult(result); }
public KrakenQueryOrderResult queryKrakenOrdersResult( boolean includeTrades, String userRef, String... transactionIds) throws IOException { KrakenQueryOrderResult krakenQueryOrderResult = kraken.queryOrders( includeTrades, userRef, createDelimitedString(transactionIds), exchange.getExchangeSpecification().getApiKey(), signatureCreator, exchange.getNonceFactory()); return krakenQueryOrderResult; }
public KrakenCancelOrderResponse cancelKrakenOrder(String orderId) throws IOException { KrakenCancelOrderResult result = kraken.cancelOrder( exchange.getExchangeSpecification().getApiKey(), signatureCreator, exchange.getNonceFactory(), orderId); return checkResult(result); }
public boolean cancelOrder(String id) throws IOException { return btcTurk .setCancelOrder( id, exchange.getExchangeSpecification().getApiKey(), exchange.getNonceFactory(), signatureCreator) .getResult(); }
public Map<Long, LiquiOrderInfo> getActiveOrders() { return checkResult( liquiAuthenticated.activeOrders( exchange.getExchangeSpecification().getApiKey(), signatureCreator, exchange.getNonceFactory(), "activeOrders", null)); }
@Override protected void initServices() { this.marketDataService = new BTCMarketsMarketDataService(this); if (exchangeSpecification.getApiKey() != null && exchangeSpecification.getSecretKey() != null) { this.tradeService = new BTCMarketsTradeService(this); this.accountService = new BTCMarketsAccountService(this); } }
public BTCMarketsOrders getBTCMarketsOpenOrders( CurrencyPair currencyPair, Integer limit, Long since) throws IOException { BTCMarketsOpenOrdersAndTradeHistoryRequest request = new BTCMarketsOpenOrdersAndTradeHistoryRequest( currencyPair.counter.getCurrencyCode(), currencyPair.base.getCurrencyCode(), limit, since); return btcm.getOpenOrders( exchange.getExchangeSpecification().getApiKey(), nonceFactory, signer, request); }
public QuadrigaCxDepositAddress getQuadrigaCxBitcoinDepositAddress() throws IOException { final QuadrigaCxDepositAddress response = quadrigacxAuthenticated.getBitcoinDepositAddress( exchange.getExchangeSpecification().getApiKey(), signatureCreator, exchange.getNonceFactory()); if (response.getError() != null) { throw new ExchangeException( "Requesting Bitcoin deposit address failed: " + response.getError()); } return response; }
public QuadrigaCxDepositAddress getQuadrigaCxEtherDepositAddress() throws IOException { final QuadrigaCxDepositAddress response = quadrigacxAuthenticated.getEtherDepositAddress( exchange.getExchangeSpecification().getApiKey(), signatureCreator, exchange.getNonceFactory()); if (response.getError() != null) { throw new ExchangeException( "Requesting Ether deposit address failed: " + response.getError()); } return response; }
public QuadrigaCxDepositAddress getQuadrigaCxBitcoinCachDepositAddress() throws IOException { final QuadrigaCxDepositAddress response = quadrigacxAuthenticated.getBitcoinCachDepositAddress( exchange.getExchangeSpecification().getApiKey(), signatureCreator, exchange.getNonceFactory()); if (response.getError() != null) { throw new ExchangeException( "Requesting Bitcoin deposit address failed: " + response.getError()); } return response; }
public CoinmateBalance getCoinmateBalance() throws IOException { CoinmateBalance coinmateBalance = coinmateAuthenticated.getBalances( exchange.getExchangeSpecification().getApiKey(), exchange.getExchangeSpecification().getUserName(), signatureCreator, exchange.getNonceFactory()); throwExceptionIfError(coinmateBalance); return coinmateBalance; }
public CoinmateDepositAddresses coinmateBitcoinDepositAddresses() throws IOException { CoinmateDepositAddresses addresses = coinmateAuthenticated.bitcoinDepositAddresses( exchange.getExchangeSpecification().getApiKey(), exchange.getExchangeSpecification().getUserName(), signatureCreator, exchange.getNonceFactory()); throwExceptionIfError(addresses); return addresses; }
protected YoBitBaseService(Class<T> type, Exchange exchange) { super(exchange); this.signatureCreator = YoBitDigest.createInstance( exchange.getExchangeSpecification().getSecretKey(), exchange.getExchangeSpecification().getApiKey()); this.service = RestProxyFactory.createProxy( type, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); } }
public LivecoinBaseService(Class<T> type, Exchange exchange) { super(exchange); this.service = RestProxyFactory.createProxy( type, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); this.apiKey = exchange.getExchangeSpecification().getApiKey(); this.signatureCreator = LivecoinDigest.createInstance(exchange.getExchangeSpecification().getSecretKey(), apiKey); } }
public IndependentReserveOrderDetailsResponse getOrderDetails(String orderGuid) throws IOException { Long nonce = exchange.getNonceFactory().createValue(); String apiKey = exchange.getExchangeSpecification().getApiKey(); IndependentReserveOrderDetailsRequest request = new IndependentReserveOrderDetailsRequest(apiKey, nonce, orderGuid); request.setSignature( signatureCreator.digestParamsToString( ExchangeEndpoint.GET_ORDER_DETAILS, nonce, request.getParameters())); return independentReserveAuthenticated.orderDetails(request); } }
protected HitbtcBaseService(Exchange exchange) { super(exchange); String apiKey = exchange.getExchangeSpecification().getApiKey(); String secretKey = exchange.getExchangeSpecification().getSecretKey(); ClientConfig config = getClientConfig(); ClientConfigUtil.addBasicAuthCredentials(config, apiKey, secretKey); hitbtc = RestProxyFactory.createProxy( HitbtcAuthenticated.class, exchange.getExchangeSpecification().getSslUri(), config); } }