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

Examples of com.xeiam.xchange.kraken.dto.account.KrakenTradeVolume


    System.out.println(balanceInfo);

    Map<String, KrakenLedger> ledgerInfo = rawKrakenAcctService.getKrakenLedgerInfo();
    System.out.println(ledgerInfo);

    KrakenTradeVolume tradeVolume = rawKrakenAcctService.getTradeVolume();
    System.out.println(tradeVolume);

    tradeVolume = rawKrakenAcctService.getTradeVolume(CurrencyPair.BTC_USD);
    System.out.println(tradeVolume);
  }
View Full Code Here


    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");
    assertThat(fee.getFee()).isEqualTo("0.3000");
    assertThat(fee.getMinFee()).isEqualTo("0.0500");
    assertThat(fee.getMaxFee()).isEqualTo("0.3000");
    assertThat(fee.getNextFee()).isEqualTo("0.2900");
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.kraken.dto.account.KrakenTradeVolume

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.