com.xeiam.xchange.bitmarket.service.polling.BitMarketDataService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-bitmarket Show documentation
Show all versions of xchange-bitmarket Show documentation
XChange implementation for Bitcoin Bitmarket exchange
The newest version!
package com.xeiam.xchange.bitmarket.service.polling;
import java.io.IOException;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.bitmarket.BitMarketAdapters;
import com.xeiam.xchange.currency.CurrencyPair;
import com.xeiam.xchange.dto.marketdata.OrderBook;
import com.xeiam.xchange.dto.marketdata.Ticker;
import com.xeiam.xchange.dto.marketdata.Trades;
import com.xeiam.xchange.service.polling.marketdata.PollingMarketDataService;
/**
* @author kpysniak
*/
public class BitMarketDataService extends BitMarketDataServiceRaw implements PollingMarketDataService {
/**
* Constructor
*
* @param exchange
*/
public BitMarketDataService(Exchange exchange) {
super(exchange);
}
@Override
public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {
return BitMarketAdapters.adaptTicker(getBitMarketTicker(currencyPair), currencyPair);
}
@Override
public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException {
return BitMarketAdapters.adaptOrderBook(getBitMarketOrderBook(currencyPair), currencyPair);
}
@Override
public Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException {
return BitMarketAdapters.adaptTrades(getBitMarketTrades(currencyPair), currencyPair);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy