Package com.xeiam.xchange.bitkonan.service.polling

Examples of com.xeiam.xchange.bitkonan.service.polling.BitKonanMarketDataService


  @Ignore
  @Test
  public void testOrderBookRetrieval() throws IOException {

    bitKonanExchange.applySpecification(bitKonanExchange.getDefaultExchangeSpecification());
    BitKonanMarketDataService bitKonanMarketDataService = (BitKonanMarketDataService) bitKonanExchange.getPollingMarketDataService();

    OrderBook orderBook = bitKonanMarketDataService.getOrderBook(CurrencyPair.BTC_USD);

    System.out.println(orderBook.toString());

  }
View Full Code Here


  @Ignore
  @Test
  public void testTickerRetrieval() throws IOException {

    bitKonanExchange.applySpecification(bitKonanExchange.getDefaultExchangeSpecification());
    BitKonanMarketDataService bitKonanMarketDataService = (BitKonanMarketDataService) bitKonanExchange.getPollingMarketDataService();

    Ticker ticker = bitKonanMarketDataService.getTicker(CurrencyPair.BTC_USD);

    System.out.println(ticker.toString());

  }
View Full Code Here

  @Override
  public void applySpecification(ExchangeSpecification exchangeSpecification) {

    super.applySpecification(exchangeSpecification);
    this.pollingMarketDataService = new BitKonanMarketDataService(exchangeSpecification, nonceFactory);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.bitkonan.service.polling.BitKonanMarketDataService

Copyright © 2018 www.massapicom. 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.