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

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


    // Use Jackson to parse it
    ObjectMapper mapper = new ObjectMapper();
    KrakenLedgerResult krakenResult = mapper.readValue(is, KrakenLedgerResult.class);
    Map<String, KrakenLedger> ledgerInfo = krakenResult.getResult().getLedgerMap();
    KrakenLedger ledger = ledgerInfo.get("LQY6IE-WNT47-JRBOJV");

    assertThat(ledger.getAsset()).isEqualTo("XXBT");
    assertThat(ledger.getAssetClass()).isEqualTo("currency");
    assertThat(ledger.getBalance()).isEqualTo("0.1000000000");
    assertThat(ledger.getFee()).isEqualTo("0.0000000000");
    assertThat(ledger.getTransactionAmount()).isEqualTo("0.1000000000");
    assertThat(ledger.getLedgerType()).isEqualTo(LedgerType.DEPOSIT);
    assertThat(ledger.getRefId()).isEqualTo("QGBJIZV-4F6SPK-ZCBT5O");
    assertThat(ledger.getUnixTime()).isEqualTo(1391400160.0679);
  }
View Full Code Here

TOP

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

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.