public NewLimitOrderSingle(BigDecimal size, BigDecimal price, Boolean post_only, String clientOid, String type, String side, String product_id, String stp, String funds) { this.size = size; this.price = price; this.post_only = post_only; setClient_oid(clientOid); setType(type); setSide(side); setProduct_id(product_id); setStp(stp); setFunds(funds); }
private NewLimitOrderSingle getNewLimitOrderSingle(String productId, BigDecimal price, BigDecimal size) { NewLimitOrderSingle limitOrder = new NewLimitOrderSingle(); limitOrder.setProduct_id(productId); if (productId.contains("-BTC")) { limitOrder.setSide("sell"); } else { limitOrder.setSide("buy"); } limitOrder.setType("limit"); limitOrder.setPrice(price); limitOrder.setSize(size); return limitOrder; }
public NewLimitOrderSingle(BigDecimal size, BigDecimal price, Boolean post_only, String product_id) { this.size = size; this.price = price; this.post_only = post_only; setProduct_id(product_id); }