All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xeiam.xchange.examples.lakebtc.account.LakeBTCAccountDemo Maven / Gradle / Ivy

Go to download

Provides a set of examples that demonstrate how to use XChange in client applications

The newest version!
package com.xeiam.xchange.examples.lakebtc.account;

import java.io.IOException;

import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.dto.account.AccountInfo;
import com.xeiam.xchange.examples.lakebtc.LakeBTCExamplesUtils;
import com.xeiam.xchange.lakebtc.service.polling.LakeBTCAccountServiceRaw;

/**
 * 

* Example showing the following: *

*
    *
  • Connect to LakeBTC exchange with authentication
  • *
  • View account balance
  • *
*/ public class LakeBTCAccountDemo { public static void main(String[] args) throws IOException { Exchange lakebtcExchange = LakeBTCExamplesUtils.createTestExchange(); generic(lakebtcExchange); raw(lakebtcExchange); } private static void generic(Exchange lakebtcExchange) throws IOException { AccountInfo accountInfo = lakebtcExchange.getPollingAccountService().getAccountInfo(); System.out.println("Account Info: " + accountInfo.toString()); } private static void raw(Exchange lakeBtcExchange) throws IOException { LakeBTCAccountServiceRaw rawLakeBTCAcctService = (LakeBTCAccountServiceRaw) lakeBtcExchange.getPollingAccountService(); System.out.println("Balance Info: " + rawLakeBTCAcctService.getLakeBTCAccountInfo()); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy