Get fees return me error: KeyError: 'success' in python

Hey everyone I m new in this so I hope someone can help me. I want to get the fees so I used:
fees = client.get_trade_fee()
print(fees)
But return me this error :

if not res[‘success’]:
KeyError: ‘success’

If anyone can help me I will appreciate it

Most likely wrong api key/secret when you instantiate “client”.

No I don’t think so because when I try others functions works good. Any other solucion ?

  1. Does this work? - client.get_account()
  2. Are you in testnet or prod?
  1. No works
  2. No
    Could be cause I dont enable Withdrawals and Margin ?

If #1 doesn’t, it means wrong key/secret; (you can ignore #2)

Ok now I reset the api and enable Withdrawals and try:
a = client.get_account()
print(a)
and return me timestamp for this request was 1000ms ahead of the server time

Different case. Open a new topic. I’m going to mark this as ‘resolved’.