Package com.xeiam.xchange.vaultofsatoshi.dto.marketdata

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


    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

Related Classes of com.xeiam.xchange.vaultofsatoshi.dto.marketdata.VosCurrency

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.