Python Forum

Full Version: API Problems!!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?ti...64aa3c9b6a' 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!