Package com.xeiam.xchange.bter.dto.account

Examples of com.xeiam.xchange.bter.dto.account.BTERFunds


    super(BTERAuthenticated.class, exchangeSpecification);
  }

  public BTERFunds getBTERAccountInfo() throws IOException {

    BTERFunds bterFunds = bter.getFunds(exchangeSpecification.getApiKey(), signatureCreator, nextNonce());
    return handleResponse(bterFunds);
  }
View Full Code Here


    // Read in the JSON from the example resources
    InputStream is = BTERAdapterTest.class.getResourceAsStream("/account/example-funds-data.json");

    // Use Jackson to parse it
    ObjectMapper mapper = new ObjectMapper();
    BTERFunds funds = mapper.readValue(is, BTERFunds.class);

    AccountInfo accountInfo = BTERAdapters.adaptAccountInfo(funds);

    assertThat(accountInfo.getWallets()).hasSize(4);
    assertThat(accountInfo.getBalance(Currencies.BTC)).isEqualTo("0.00010165");
View Full Code Here

    System.out.println(accountInfo);
  }

  private static void raw(BTERPollingAccountServiceRaw accountService) throws IOException {

    BTERFunds accountFunds = accountService.getBTERAccountInfo();
    System.out.println(accountFunds);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.bter.dto.account.BTERFunds

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.