Examples of VosCurrency


Examples of com.xeiam.xchange.vaultofsatoshi.dto.marketdata.VosCurrency

    return response.getData();
  }

  public int sellVaultOfSatoshiOrder(CurrencyPair currPair, BigDecimal tradableAmount, BigDecimal price) throws IOException {

    VosCurrency vosUnits = new VosCurrency(tradableAmount);
    VosCurrency vosPrice = new VosCurrency(price);

    VosResponse<VosOrderId> response =
        vosTrade.placeOrder(exchangeSpecification.getApiKey(), signatureCreator, VaultOfSatoshiUtils.getNonce(), "ask", currPair.baseSymbol, vosUnits.getPrecision(), vosUnits.getValue(), vosUnits
            .getValueInt(), currPair.counterSymbol, vosPrice.getPrecision(), vosPrice.getValue(), vosPrice.getValueInt());

    checkResult(response);
    return response.getData().getOrder_id();
  }
View Full Code Here

Examples of com.xeiam.xchange.vaultofsatoshi.dto.marketdata.VosCurrency

    return response.getData().getOrder_id();
  }

  public int buyVaultOfSatoshiOrder(CurrencyPair currPair, BigDecimal tradableAmount, BigDecimal price) throws IOException {

    VosCurrency vosUnits = new VosCurrency(tradableAmount);
    VosCurrency vosPrice = new VosCurrency(price);

    VosResponse<VosOrderId> response =
        vosTrade.placeOrder(exchangeSpecification.getApiKey(), signatureCreator, VaultOfSatoshiUtils.getNonce(), "bid", currPair.baseSymbol, vosUnits.getPrecision(), vosUnits.getValue(), vosUnits
            .getValueInt(), currPair.counterSymbol, vosPrice.getPrecision(), vosPrice.getValue(), vosPrice.getValueInt());

    checkResult(response);
    return response.getData().getOrder_id();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.