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();
}