Skip to content

Commit

Permalink
Update base API url and withdrawal API version.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopsilva committed Nov 19, 2017
1 parent 6bbcfaf commit 2ca1908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class BinanceApiConstants {
/**
* REST API base URL.
*/
public static final String API_BASE_URL = "https://www.binance.com";
public static final String API_BASE_URL = "https://api.binance.com";

/**
* Streaming API base URL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ Call<List<Trade>> getMyTrades(@Query("symbol") String symbol, @Query("limit") In
@Query("recvWindow") Long recvWindow, @Query("timestamp") Long timestamp);

@Headers(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_SIGNED_HEADER)
@POST("/wapi/v1/withdraw.html")
@POST("/wapi/v3/withdraw.html")
Call<Void> withdraw(@Query("asset") String asset, @Query("address") String address, @Query("amount") String amount, @Query("name") String name,
@Query("recvWindow") Long recvWindow, @Query("timestamp") Long timestamp);


@Headers(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_SIGNED_HEADER)
@POST("/wapi/v1/getDepositHistory.html")
@GET("/wapi/v3/depositHistory.html")
Call<DepositHistory> getDepositHistory(@Query("asset") String asset, @Query("recvWindow") Long recvWindow, @Query("timestamp") Long timestamp);

@Headers(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_SIGNED_HEADER)
@POST("/wapi/v1/getWithdrawHistory.html")
@GET("/wapi/v3/withdrawHistory.html")
Call<WithdrawHistory> getWithdrawHistory(@Query("asset") String asset, @Query("recvWindow") Long recvWindow, @Query("timestamp") Long timestamp);

// User stream endpoints
Expand Down

0 comments on commit 2ca1908

Please sign in to comment.