use of org.knowm.xchange.service.account.AccountService in project XChange by knowm.
the class CoinfloorBalanceIntegration method fetchBalanceTest.
@Test
public void fetchBalanceTest() throws IOException {
final ExchangeSpecification specification = new ExchangeSpecification(CoinfloorExchange.class);
String username = System.getProperty("xchange.coinfloor.username");
String password = System.getProperty("xchange.coinfloor.password");
if (username == null || password == null) {
return;
}
specification.setUserName(username);
specification.setPassword(password);
Exchange exchange = ExchangeFactory.INSTANCE.createExchange(specification);
AccountService service = exchange.getAccountService();
AccountInfo info = service.getAccountInfo();
logger.info("{}", info);
}
use of org.knowm.xchange.service.account.AccountService in project XChange by knowm.
the class KucoinAccountDemo method main.
public static void main(String[] args) throws IOException {
Exchange exchange = KucoinExamplesUtils.getExchange();
AccountService accountService = exchange.getAccountService();
generic(accountService);
raw((KucoinAccountServiceRaw) accountService);
}
use of org.knowm.xchange.service.account.AccountService in project XChange by knowm.
the class MercadoBitcoinAccountDemo method main.
public static void main(String[] args) throws IOException {
Exchange mercadoBitcoin = InteractiveAuthenticatedExchange.createInstanceFromDefaultInput();
AccountService accountService = mercadoBitcoin.getAccountService();
generic(accountService);
raw((MercadoBitcoinAccountServiceRaw) accountService);
}
use of org.knowm.xchange.service.account.AccountService in project XChange by knowm.
the class LgoExchange method initServices.
@Override
protected void initServices() {
signatureService = LgoSignatureService.createInstance(getExchangeSpecification());
this.marketDataService = new LgoMarketDataService(this);
this.tradeService = new LgoTradeService(this, new LgoKeyService(getExchangeSpecification()));
this.accountService = new AccountService() {
};
}
use of org.knowm.xchange.service.account.AccountService in project XChange by knowm.
the class AccountServiceTest method withdraw.
private String withdraw(String responseFileName, int statusCode) throws IOException {
BinanceExchange exchange = createExchange();
AccountService service = exchange.getAccountService();
stubWithdraw(responseFileName, statusCode);
return service.withdrawFunds(Currency.BTC, BigDecimal.TEN, "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa");
}
Aggregations