diff --git a/src/main/java/com/binance/api/client/security/AuthenticationInterceptor.java b/src/main/java/com/binance/api/client/security/AuthenticationInterceptor.java index 197aaabcb..ed1fa6ad5 100755 --- a/src/main/java/com/binance/api/client/security/AuthenticationInterceptor.java +++ b/src/main/java/com/binance/api/client/security/AuthenticationInterceptor.java @@ -43,7 +43,7 @@ public Response intercept(Chain chain) throws IOException { // Endpoint requires signing the payload if (isSignatureRequired) { - String payload = original.url().query(); + String payload = original.url().encodedQuery(); if (!StringUtils.isEmpty(payload)) { String signature = HmacSHA256Signer.sign(payload, secret); HttpUrl signedUrl = original.url().newBuilder().addQueryParameter("signature", signature).build();