Closed OliverMaas closed 2 years ago
How to solve: Open java class NewOCO and change constructor from:
public NewOCO(String symbol, OrderSide side, String quantity, String price, String stopPrice) {
this.symbol = symbol;
this.side = side;
this.quantity = quantity;
this.price = price;
this.stopPrice = stopPrice;
this.timestamp = System.currentTimeMillis();
this.recvWindow = BinanceApiConstants.DEFAULT_RECEIVING_WINDOW;
}
to
public NewOCO(String symbol, OrderSide side, String quantity, String price, String stopPrice, String stopLimitPrice, TimeInForce stopLimitTimeInForce) {
this.symbol = symbol;
this.side = side;
this.quantity = quantity;
this.price = price;
this.stopPrice = stopPrice;
this.stopLimitPrice = stopLimitPrice;
this.stopLimitTimeInForce = stopLimitTimeInForce;
this.timestamp = System.currentTimeMillis();
this.recvWindow = BinanceApiConstants.DEFAULT_RECEIVING_WINDOW;
}
Now it works :-) <Party smiley.>
Could you please submit a PR with the change @OliverMaas ? Thanks.
Hi, tried to execute java code with BinanceApiRestClient:
Error message:
I don't understand why I can execute a OCO SELL for XRPUSDT in the android-binance-app, but not with that java code.