binance / binance-api-postman

Postman collection for Binance Public API, including spot, margin, futures, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Signature for this request is not valid."

noobaldrin opened this issue · comments

Hello, I'm developing an application for my own use. I'm new to using API's, I'm using Postman to check outputs/responses without adding them to my application yet.

When I query for Deposit and Withdrawal history I'm getting this as response.

{
    "code": -1022,
    "msg": "Signature for this request is not valid."
}

Other queries work using my API and Secret keys.

Things I've tried:
Restricted my API to work only on my IP address
Enabled all possible API restrictions
Cleared the signature on my Postman environment

Please HALP. Thanks in advance

Hi.
There are some possible reasons, please check them accordingly:

  1. uncheck all the parameters that does not have input.
  2. check if the correct secret key is provided
  3. check if the signature has something in the environment setting file (If it is empty, the pre-request script may goes wrong.)
    Hope these steps resolve the issue.

Hmm I see now. the coin parameter is not mandatory. I left timestamp and signature checked and the rest are disabled.

Thanks a lot!

I'm getting the same issue when trying to do "Margin Order New Order (Trade)" I clear the signature, but every time I send a request again, the signature field gets filled.

I can send other requests, and can even make margin requests through third party python libraries

Here's a screenshot of my postman settings

double quotes are not required. @samgermain

@2pd Thanks, it looks like I can make a trade now, but I can't use any leverage, I have 27.37831693 in my cross margin account, but if I try to make an order for anything higher than that ( here's a screenshot for an order that try's to order 30 XRP, priced at ~0.90 right now) then I get an insufficient funds error

And if I change quoteOrderQty to 10 or something, I literally just get 10, no leverage applied

I just realized that borrowing is a seperate request

Hello,
I have a similar issue with the "Binance spot API / Wallet / All Coins' Information (USER_DATA)" request. I did not change any of the parameters just filled in my key and secret in the environment variables. I get the response "Signature for this request is not valid." I don't understand what I'm doing wrong.
Any help will be much apreciated
My params and headers in the pictures below.
image
image

  • did you provide the correct api key and secrect?
  • did you set them in the postman environment file as required.

Hey 2pd, thanks for the reply! Yes I did both those things, that's why I'm confused, I tried also a new API key and secret but it did not change a thing, I still got the same response.