Using the LimitOrder.getForSale() method

develop
Nelson R. Perez 2017-04-05 14:32:59 -05:00
parent 5f08eafa4c
commit 55bc4fb256
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public class OrderBook {
// If the base asset is the same as our quote asset, we have a match
if(order.getSellPrice().base.getAsset().getObjectId().equals(quoteAmount.getAsset().getObjectId())){
// My quote amount, is the order's base amount
long orderAmount = order.getSellPrice().base.getAmount().longValue();
long orderAmount = order.getForSale();
// The amount of the quote asset we still need
long stillNeed = quoteAmount.getAmount().longValue() - totalBought;

View File

@ -35,7 +35,7 @@ public class GetLimitOrdersTest {
private String BLOCK_PAY_DE = System.getenv("BLOCKPAY_DE");
private UserAccount seller = new UserAccount("1.2.143563");
private final Asset base = new Asset("1.3.0", "BTS", 5);
private final Asset quote = new Asset("1.3.121", "USD", 4);
private final Asset quote = new Asset("1.3.120", "EUR", 4);
private SSLContext context;
private WebSocket mWebSocket;