Skip to content

Commit 3d47c86

Browse files
committed
Add stopLimitPrice
1 parent ef91aab commit 3d47c86

File tree

2 files changed

+51
-32
lines changed

2 files changed

+51
-32
lines changed

src/main/java/com/binance/api/client/domain/account/NewOrder.java

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,15 @@ public NewOrder stopPrice(String stopPrice) {
186186
return this;
187187
}
188188

189+
public String getStopLimitPrice() {
190+
return stopLimitPrice;
191+
}
192+
193+
public NewOrder stopLimitPrice(String stopLimitPrice) {
194+
this.stopLimitPrice = stopLimitPrice;
195+
return this;
196+
}
197+
189198
public String getIcebergQty() {
190199
return icebergQty;
191200
}
@@ -261,19 +270,20 @@ public static NewOrder limitSell(String symbol, TimeInForce timeInForce, String
261270
@Override
262271
public String toString() {
263272
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE)
264-
.append("symbol", symbol)
265-
.append("side", side)
266-
.append("type", type)
267-
.append("timeInForce", timeInForce)
268-
.append("quantity", quantity)
269-
.append("quoteOrderQty", quoteOrderQty)
270-
.append("price", price)
271-
.append("newClientOrderId", newClientOrderId)
272-
.append("stopPrice", stopPrice)
273-
.append("icebergQty", icebergQty)
274-
.append("newOrderRespType", newOrderRespType)
275-
.append("recvWindow", recvWindow)
276-
.append("timestamp", timestamp)
277-
.toString();
273+
.append("symbol", symbol)
274+
.append("side", side)
275+
.append("type", type)
276+
.append("timeInForce", timeInForce)
277+
.append("quantity", quantity)
278+
.append("quoteOrderQty", quoteOrderQty)
279+
.append("price", price)
280+
.append("newClientOrderId", newClientOrderId)
281+
.append("stopPrice", stopPrice)
282+
.append("stopLimitPrice", stopLimitPrice)
283+
.append("icebergQty", icebergQty)
284+
.append("newOrderRespType", newOrderRespType)
285+
.append("recvWindow", recvWindow)
286+
.append("timestamp", timestamp)
287+
.toString();
278288
}
279289
}

src/main/java/com/binance/api/client/domain/account/Order.java

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,14 @@ public void setStopPrice(String stopPrice) {
194194
this.stopPrice = stopPrice;
195195
}
196196

197+
public String getStopLimitPrice() {
198+
return stopLimitPrice;
199+
}
200+
201+
public void setStopLimitPrice(String stopLimitPrice) {
202+
this.stopLimitPrice = stopLimitPrice;
203+
}
204+
197205
public String getIcebergQty() {
198206
return icebergQty;
199207
}
@@ -245,23 +253,24 @@ public void setOrigQuoteOrderQty(String origQuoteOrderQty) {
245253
@Override
246254
public String toString() {
247255
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE)
248-
.append("symbol", symbol)
249-
.append("orderId", orderId)
250-
.append("clientOrderId", clientOrderId)
251-
.append("price", price)
252-
.append("origQty", origQty)
253-
.append("executedQty", executedQty)
254-
.append("status", status)
255-
.append("timeInForce", timeInForce)
256-
.append("type", type)
257-
.append("side", side)
258-
.append("stopPrice", stopPrice)
259-
.append("icebergQty", icebergQty)
260-
.append("time", time)
261-
.append("cummulativeQuoteQty", cummulativeQuoteQty)
262-
.append("updateTime", updateTime)
263-
.append("isWorking", working)
264-
.append("origQuoteOrderQty", origQuoteOrderQty)
265-
.toString();
256+
.append("symbol", symbol)
257+
.append("orderId", orderId)
258+
.append("clientOrderId", clientOrderId)
259+
.append("price", price)
260+
.append("origQty", origQty)
261+
.append("executedQty", executedQty)
262+
.append("status", status)
263+
.append("timeInForce", timeInForce)
264+
.append("type", type)
265+
.append("side", side)
266+
.append("stopPrice", stopPrice)
267+
.append("stopLimitPrice", stopLimitPrice)
268+
.append("icebergQty", icebergQty)
269+
.append("time", time)
270+
.append("cummulativeQuoteQty", cummulativeQuoteQty)
271+
.append("updateTime", updateTime)
272+
.append("isWorking", working)
273+
.append("origQuoteOrderQty", origQuoteOrderQty)
274+
.toString();
266275
}
267276
}

0 commit comments

Comments
 (0)