binance-exchange / binance-java-api

binance-java-api is a lightweight Java library for the Binance API, supporting synchronous and asynchronous requests, as well as event streaming using WebSockets.
MIT License
830 stars 622 forks source link

API Does not work with Futures #251

Open Alex06310 opened 4 years ago

Alex06310 commented 4 years ago

Hi, I tried to adapt this API to make it work for futures like BTCUSDT but I can't get it working to send an order, I got an unauthorized response from the server. I just changed the url in class BinanceApiService.java from @POST("/api/v3/order") to @POST("/fapi/v1/order").

I can retrieve quotes though. I use the REST client class. I was thinking this is something related to my account so I then tried using python binance api with same api and secret key and it worked. Is that possible to make this API work with futures ? Thanks Alex

Karasiq commented 4 years ago

++

zksdn commented 3 years ago

SDK for Binance Futures : https://github.com/Binance-docs/Binance_Futures_Java