Mandatory parameter 'timestamp' was not sent, was empty/null, or malformed

I am trying to fetch my futures balance , url formed is →

https://fapi.binance.com/fapi/v2/balance?timestamp=1667816992221&signature=my-signature

But I’m getting response →

{

  • “code”: -1102,
  • “msg”: “Mandatory parameter ‘timestamp’ was not sent, was empty/null, or malformed.”
    }

I am sending the timestamp value in the url but.

please feel free to test the endpoint by this example code.

using this example code , it gives me →

{'code': -2015, 'msg': 'Invalid API-key, IP, or permissions for action, request ip: 3.70.54.175'}

I am using the same api key I have been using before for margin trading and it has been working.

This is a FAQ and it’s usually solved by checking the possible reasons on:

My bad , I’ve been preparing the url correctly but during

requests.get(url,headers = headers)

I was giving base_url with no params (timstamp and signature), silly mistake.
Thanks for your inputs…