webcerebrium / java-binance-api

Java Binance API Client
MIT License
74 stars 40 forks source link

ERROR: -1106, Parameter 'timeInForce' sent when not required. #8

Closed spapapan closed 6 years ago

spapapan commented 6 years ago

When I try to place an order using the BinanceOrderType.MARKET I get the following error:

com.webcerebrium.binance.api.BinanceApiException: ERROR: -1106, Parameter 'timeInForce' sent when not required. at com.webcerebrium.binance.api.BinanceRequest.read(BinanceRequest.java:260) at com.webcerebrium.binance.api.BinanceApi.createOrder(BinanceApi.java:498)

If I place an order through BinanceOrderType.LIMIT there is no problem.

elsehow commented 6 years ago

Looks like the API requires the timeInForce parameter not be sent for MARKET orders.

chongjae commented 6 years ago

I have same issue. How can i fix it?

wcrbrm commented 6 years ago

@chongjae you can take the library from the sources. Fix would be included in an upcoming release this week and appear on maven central

chongjae commented 6 years ago

@wcrbrm Then, on this time, i can not fix it. Correct? Dose this patch would be applied on 1.0.7? Thanks.

wcrbrm commented 6 years ago

@chongjae This patch will go to 1.0.8 which we are currently testing.

As alternative to maven central, you can always include library compiled from latest git source https://github.com/webcerebrium/java-binance-api#with-latest-source-code

pimp22 commented 6 years ago

Damn, I shouldve looked here earlier... Missing if in api. Any idea when this will be fixed? I dk how to compile with gradle. tried to click the file

wcrbrm commented 6 years ago

1.0.8 was published.