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

Examples of com.xeiam.xchange.kraken.dto.marketdata.results.KrakenAssetsResult


    // Read in the JSON from the example resources
    InputStream is = KrakenAssetsJSONTest.class.getResourceAsStream("/marketdata/example-assets-data.json");

    // Use Jackson to parse it
    ObjectMapper mapper = new ObjectMapper();
    KrakenAssetsResult krakenResult = mapper.readValue(is, KrakenAssetsResult.class);
    Map<String, KrakenAsset> assets = krakenResult.getResult();

    assertThat(assets).hasSize(9);
    KrakenAsset asset = assets.get("XXBT");
    assertThat(asset.getAltName()).isEqualTo("XBT");
    assertThat(asset.getAssetClass()).isEqualTo("currency");
View Full Code Here


    return checkResult(timeResult);
  }

  public KrakenAssets getKrakenAssets(String... assets) throws IOException {

    KrakenAssetsResult assetPairsResult = kraken.getAssets(null, delimitAssets(assets));

    return new KrakenAssets(checkResult(assetPairsResult));
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.kraken.dto.marketdata.results.KrakenAssetsResult

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.