Using the LimitOrder.getForSale() method
This commit is contained in:
parent
5f08eafa4c
commit
55bc4fb256
2 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ public class OrderBook {
|
||||||
// If the base asset is the same as our quote asset, we have a match
|
// 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())){
|
if(order.getSellPrice().base.getAsset().getObjectId().equals(quoteAmount.getAsset().getObjectId())){
|
||||||
// My quote amount, is the order's base amount
|
// 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
|
// The amount of the quote asset we still need
|
||||||
long stillNeed = quoteAmount.getAmount().longValue() - totalBought;
|
long stillNeed = quoteAmount.getAmount().longValue() - totalBought;
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class GetLimitOrdersTest {
|
||||||
private String BLOCK_PAY_DE = System.getenv("BLOCKPAY_DE");
|
private String BLOCK_PAY_DE = System.getenv("BLOCKPAY_DE");
|
||||||
private UserAccount seller = new UserAccount("1.2.143563");
|
private UserAccount seller = new UserAccount("1.2.143563");
|
||||||
private final Asset base = new Asset("1.3.0", "BTS", 5);
|
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 SSLContext context;
|
||||||
private WebSocket mWebSocket;
|
private WebSocket mWebSocket;
|
||||||
|
|
Loading…
Reference in a new issue