com.xeiam.xchange.bitmarket.service.polling.BitMarketDataServiceRaw 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.dto.marketdata.BitMarketOrderBook;
import com.xeiam.xchange.bitmarket.dto.marketdata.BitMarketTicker;
import com.xeiam.xchange.bitmarket.dto.marketdata.BitMarketTrade;
import com.xeiam.xchange.currency.CurrencyPair;
/**
* @author kpysniak
*/
public class BitMarketDataServiceRaw extends BitMarketBasePollingService {
/**
* Constructor
*
* @param exchange
*/
protected BitMarketDataServiceRaw(Exchange exchange) {
super(exchange);
}
public BitMarketTicker getBitMarketTicker(CurrencyPair currencyPair) throws IOException {
return bitMarket.getTicker(currencyPair.baseSymbol.toUpperCase() + currencyPair.counterSymbol.toString());
}
public BitMarketOrderBook getBitMarketOrderBook(CurrencyPair currencyPair) throws IOException {
return bitMarket.getOrderBook(currencyPair.baseSymbol.toUpperCase() + currencyPair.counterSymbol.toString());
}
public BitMarketTrade[] getBitMarketTrades(CurrencyPair currencyPair) throws IOException {
return bitMarket.getTrades(currencyPair.baseSymbol.toUpperCase() + currencyPair.counterSymbol.toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy