
com.xeiam.xchange.hitbtc.service.polling.HitbtcAccountServiceRaw Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-hitbtc Show documentation
Show all versions of xchange-hitbtc Show documentation
XChange implementation for Hitbtc exchange
The newest version!
package com.xeiam.xchange.hitbtc.service.polling;
import java.io.IOException;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.hitbtc.dto.HitbtcException;
import com.xeiam.xchange.hitbtc.dto.account.HitbtcBalance;
import com.xeiam.xchange.hitbtc.dto.account.HitbtcBalanceResponse;
public class HitbtcAccountServiceRaw extends HitbtcBasePollingService {
/**
* Constructor
*
* @param exchange
*/
public HitbtcAccountServiceRaw(Exchange exchange) {
super(exchange);
}
public HitbtcBalance[] getAccountInfoRaw() throws IOException {
try {
HitbtcBalanceResponse hitbtcBalance = hitbtc.getHitbtcBalance(signatureCreator, exchange.getNonceFactory(), apiKey);
return hitbtcBalance.getBalances();
} catch (HitbtcException e) {
throw handleException(e);
}
}
public HitbtcBalanceResponse getAccountBaseInfoRaw() throws IOException {
try {
HitbtcBalanceResponse hitbtcBalanceResponse = hitbtc.getHitbtcBalance(signatureCreator, exchange.getNonceFactory(), apiKey);
return hitbtcBalanceResponse;
} catch (HitbtcException e) {
throw handleException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy