Package com.xeiam.xchange.cryptotrade.dto.account

Examples of com.xeiam.xchange.cryptotrade.dto.account.CryptoTradeAccountInfo$CryptoTradeAccountData


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

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

    AccountInfo adaptedAccountInfo = CryptoTradeAdapters.adaptAccountInfo("test", accountInfo);

    assertThat(adaptedAccountInfo.getUsername()).isEqualTo("test");
View Full Code Here


    super(CryptoTradeAuthenticated.class, exchangeSpecification);
  }

  public CryptoTradeAccountInfo getCryptoTradeAccountInfo() throws CryptoTradeException, IOException {

    CryptoTradeAccountInfo info = cryptoTradeProxy.getInfo(exchangeSpecification.getApiKey(), signatureCreator, nextNonce());
    return handleResponse(info);
  }
View Full Code Here

    System.out.println(accountInfo);
  }

  private static void raw(CryptoTradeAccountServiceRaw accountService) throws IOException {

    CryptoTradeAccountInfo accountInfo = accountService.getCryptoTradeAccountInfo();
    System.out.println(accountInfo);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.cryptotrade.dto.account.CryptoTradeAccountInfo$CryptoTradeAccountData

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.