Package com.xeiam.xchange.kraken.dto.account.results

Examples of com.xeiam.xchange.kraken.dto.account.results.KrakenTradeVolumeResult


    return checkResult(ledgerResult);
  }

  public KrakenTradeVolume getTradeVolume(CurrencyPair... currencyPairs) throws IOException {

    KrakenTradeVolumeResult result = kraken.tradeVolume(delimitAssetPairs(currencyPairs), exchangeSpecification.getApiKey(), signatureCreator, nextNonce());

    return checkResult(result);
  }
View Full Code Here


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

    // Use Jackson to parse it
    ObjectMapper mapper = new ObjectMapper();
    KrakenTradeVolumeResult krakenResult = mapper.readValue(is, KrakenTradeVolumeResult.class);
    KrakenTradeVolume tradeVolume = krakenResult.getResult();

    assertThat(tradeVolume.getCurrency()).isEqualTo("ZUSD");
    assertThat(tradeVolume.getVolume()).isEqualTo("451.3040");
    Map<String, KrakenVolumeFee> fees = tradeVolume.getFees();
    KrakenVolumeFee fee = fees.get("XXBTZUSD");
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.kraken.dto.account.results.KrakenTradeVolumeResult

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.