private static void raw(Exchange lakeBtcExchange) throws IOException { LakeBTCAccountServiceRaw rawLakeBTCAcctService = (LakeBTCAccountServiceRaw) lakeBtcExchange.getAccountService(); System.out.println("Balance Info: " + rawLakeBTCAcctService.getLakeBTCAccountInfo()); } }
private static void raw(Exchange loyalbitExchange) throws IOException { TheRockAccountServiceRaw rawTheRockAcctService = (TheRockAccountServiceRaw) loyalbitExchange.getAccountService(); System.out.println("Balance Info: " + rawTheRockAcctService.balances()); } }
private static void generic(Exchange exchange) throws IOException { AccountService accountService = exchange.getAccountService(); AccountInfo accountInfo = accountService.getAccountInfo(); System.out.println("Account info: " + accountInfo); String depositAddress = accountService.requestDepositAddress(Currency.BTC); System.out.println("Deposit address: " + depositAddress); }
private static void generic(Exchange exchange) throws IOException { // Interested in the private account functionality (authentication) AccountService accountService = exchange.getAccountService(); // Get the account information AccountInfo accountInfo = accountService.getAccountInfo(); System.out.println("Wex AccountInfo as String: " + accountInfo.toString()); }
private static void raw(Exchange exchange) throws IOException { DSXAccountServiceRaw accountService = (DSXAccountServiceRaw) exchange.getAccountService(); DSXAccountInfo accountInfo = accountService.getDSXAccountInfo(); System.out.println("DSX Wallet as String: " + accountInfo.toString()); }
public static void main(String[] args) throws IOException { Exchange ANX = ANXExamplesUtils.createExchange(); // Interested in the private account functionality (authentication) AccountService accountService = ANX.getAccountService(); // Request a Bitcoin deposit address String address = accountService.requestDepositAddress(Currency.BTC); System.out.println("Address to deposit Bitcoins to: " + address); } }
public static void main(String[] args) throws IOException { Exchange anx = ANXExamplesUtils.createExchange(); // Interested in the private account functionality (authentication) AccountService accountService = anx.getAccountService(); System.out.println("Wallet= " + accountService.getAccountInfo()); // ANX does not return a transaction id on fund withdrawal at this moment String success = accountService.withdrawFunds(Currency.BTC, new BigDecimal("0.001"), "XXX"); System.out.println("result= " + success); } }
public static void main(String[] args) throws IOException { Exchange exchange = CoinbaseDemoUtils.createExchange(); AccountService accountService = exchange.getAccountService(); // [TODO] generic(accountService); raw((CoinbaseAccountService) accountService); }
public static void main(String[] args) throws IOException { Exchange independentReserve = IndependentReserveDemoUtils.createExchange(); AccountService accountService = independentReserve.getAccountService(); generic(accountService); raw((IndependentReserveAccountService) accountService); }
public static void main(String[] args) throws IOException { Exchange exchange = QuoineExamplesUtils.createExchange(); // Interested in the private account functionality (authentication) AccountService accountService = exchange.getAccountService(); generic(accountService); raw((QuoineAccountServiceRaw) accountService); }
public static void main(String[] args) throws IOException { Exchange bitso = BitsoDemoUtils.createExchange(); AccountService accountService = bitso.getAccountService(); generic(accountService); raw((BitsoAccountServiceRaw) accountService); }
public static void main(String[] args) throws IOException { Exchange exchange = BittrexExamplesUtils.getExchange(); AccountService accountService = exchange.getAccountService(); generic(accountService); raw((BittrexAccountServiceRaw) accountService); }
public static void main(String[] args) throws IOException { Exchange exchange = CobinhoodDemoUtils.createExchange(); AccountService accountService = exchange.getAccountService(); generic(accountService); raw((CobinhoodAccountServiceRaw) accountService); }
public static void main(String[] args) throws IOException { Exchange exchange = BiboxExamplesUtils.getExchange(); AccountService accountService = exchange.getAccountService(); generic(accountService); raw((BiboxAccountServiceRaw) accountService); }
public static void main(String[] args) throws IOException { Exchange coinbase = CoinbaseDemoUtils.createExchange(); AccountService accountService = coinbase.getAccountService(); generic(accountService); raw((CoinbaseAccountService) accountService); }
public static void main(String[] args) throws IOException { Exchange coinone = CoinoneDemoUtils.createExchange(); AccountService accountService = coinone.getAccountService(); generic(accountService); raw((CoinoneAccountServiceRaw) accountService); }
public static void main(String[] args) throws IOException { Exchange exchange = KucoinExamplesUtils.getExchange(); AccountService accountService = exchange.getAccountService(); generic(accountService); raw((KucoinAccountServiceRaw) accountService); }
public static void main(String[] args) throws IOException { Exchange upbit = UpbitDemoUtils.createExchange(); AccountService accountService = upbit.getAccountService(); generic(accountService); raw((UpbitAccountServiceRaw) accountService); }
public static void main(String[] args) throws IOException { Exchange gatecoin = GatecoinDemoUtils.createExchange(); AccountService accountService = gatecoin.getAccountService(); generic(accountService); raw((GatecoinAccountServiceRaw) accountService); }
public static void main(String[] args) throws Exception { CertHelper.trustAllCerts(); Exchange poloniex = PoloniexExamplesUtils.getExchange(); AccountService accountService = poloniex.getAccountService(); generic(accountService); raw((PoloniexAccountServiceRaw) accountService); }