Package com.xeiam.xchange.atlasats.dtos

Examples of com.xeiam.xchange.atlasats.dtos.AtlasCurrencyPair


  @Override
  public AtlasCurrencyPair translate(Map<String, Object> map) {

    String baseSymbol = (String) map.get("item");
    String counterSymbol = (String) map.get("currency");
    AtlasCurrencyPair currencyPair = new AtlasCurrencyPair(baseSymbol, counterSymbol);
    return currencyPair;
  }
View Full Code Here


      expirationDate = new SimpleDateFormat("yyyy-mm-dd").parse((String) sourceObject.get("exp"));
    } catch (ParseException e) {
      e.printStackTrace();
      return null;
    }
    AtlasCurrencyPair currencyPair = new AtlasCurrencyPair(baseSymbol, counterSymbol);

    AtlasOptionContract optionContract = new AtlasOptionContract();
    optionContract.setId(BigInteger.valueOf(id));
    optionContract.setDescription(description);
    optionContract.setCurrencyPair(currencyPair);
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.atlasats.dtos.AtlasCurrencyPair

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.