Python Forum
API Problems!!! - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: API Problems!!! (/thread-42391.html)



API Problems!!! - Dronemaster278 - Jun-28-2024

Hi! I am relatively nw to python, but i know a decent bit of C++ and HTML. However, this is my first time using API protocols. I am attempting to run a simple bot that buys a currency (DOGE) with another courrency (USDT) when the price culminatively drops more than 0.5%. I have code Here that shows how it should work. Here is the code that gives me this 'Error fetching total DOGE balance: 401 Client Error: Unauthorized for url: https://api.nonkyc.io/api/v2/balances?timestamp=1719590915510&signature=f4783e3f375151e07cc8c12c80ab2df501cdf6323578a9fe64aa3c9b6a' whenever i attempt to buy DOGE. I also imported a library provided by the exchange (NonKYC.io). I have included it below. The code above works fine except for buying or selling. Thanks for all help!