com.xeiam.xchange.examples.bleutrade.account.BleutradeAccountDemo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-examples Show documentation
Show all versions of xchange-examples Show documentation
Provides a set of examples that demonstrate how to use XChange in client applications
The newest version!
package com.xeiam.xchange.examples.bleutrade.account;
import java.io.IOException;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.bleutrade.service.polling.BleutradeAccountServiceRaw;
import com.xeiam.xchange.examples.bleutrade.BleutradeDemoUtils;
import com.xeiam.xchange.service.polling.account.PollingAccountService;
public class BleutradeAccountDemo {
public static void main(String[] args) throws IOException, InterruptedException {
Exchange bleutrade = BleutradeDemoUtils.getExchange();
PollingAccountService accountService = bleutrade.getPollingAccountService();
// generic(accountService);
raw((BleutradeAccountServiceRaw) accountService);
}
private static void generic(PollingAccountService accountService) throws IOException, InterruptedException {
System.out.println(accountService.requestDepositAddress("BTC"));
Thread.sleep(1000);
System.out.println(accountService.getAccountInfo());
Thread.sleep(1000);
}
private static void raw(BleutradeAccountServiceRaw accountService) throws IOException {
System.out.println(accountService.getBleutradeBalance("BTC"));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy