Examples of CryptsyPublicMarketDataService


Examples of com.xeiam.xchange.cryptsy.service.polling.CryptsyPublicMarketDataService

    Thread.sleep(500);
  }

  private static void publicAPI(CryptsyExchange cryptsyExchange) throws ExchangeException, IOException, InterruptedException {

    CryptsyPublicMarketDataService publicMarketDataService = cryptsyExchange.getPublicPollingMarketDataService();
    final int DOGE_LTC_MARKET_ID = 135;
    Map<Integer, CryptsyPublicMarketData> singleMarketData = publicMarketDataService.getCryptsyMarketData(DOGE_LTC_MARKET_ID);
    System.out.println(singleMarketData);

    Map<Integer, CryptsyPublicOrderbook> singleOrderBook = publicMarketDataService.getCryptsyOrderBook(DOGE_LTC_MARKET_ID);
    System.out.println(singleOrderBook);

    System.out.println("\ngetOrderBook:\n" + publicMarketDataService.getOrderBook(new CurrencyPair("NET", "BTC")));
    Thread.sleep(500);

    System.out.println("\ngetTicker:\n" + publicMarketDataService.getTicker(new CurrencyPair("NET", "BTC")));
    Thread.sleep(500);

    System.out.println("\ngetTrades:\n" + publicMarketDataService.getTrades(new CurrencyPair("NET", "BTC")));
    Thread.sleep(500);

  }
View Full Code Here

Examples of com.xeiam.xchange.cryptsy.service.polling.CryptsyPublicMarketDataService

    this.pollingMarketDataService = new CryptsyMarketDataService(exchangeSpecification);
    this.pollingAccountService = new CryptsyAccountService(exchangeSpecification);
    this.pollingTradeService = new CryptsyTradeService(exchangeSpecification);

    this.pollingPublicMarketDataService = new CryptsyPublicMarketDataService();
  }
View Full Code Here

Examples of com.xeiam.xchange.cryptsy.service.polling.CryptsyPublicMarketDataService

    return exchangeSpecification;
  }

  public void applyPublicSpecification(ExchangeSpecification exchangeSpecification) {

    this.pollingPublicMarketDataService = new CryptsyPublicMarketDataService(exchangeSpecification);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.