Error fetching position data through API

I am using python. Occasionally I get the position details but some times I get the following error message.
Failed to fetch positions. HTTP Status Code: 401
Response: {“error”:{“code”:“expired_signature”,“context”:{“request_time”:1742373095,“server_time”:1742373101}},“success”:false}

Hi @noushad , the error says that your local machine clock time is not synced with delta server time.

to rectify this you can update your local machine clock settings , and press sync to come to latest time. you can also turn it on to auto sync to avoid future errors.

Delta exchange api is giving very trouble…i also faced many problems with api…so i gave up by writing python script

Hi @harsh12092002 , pls share your script and specific errors you are facing. we can review it and suggest possible tweaks and help you in resolving any errors.