Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API Problems!!!
#1
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!
Larz60+ write Jun-28-2024, 06:39 PM:
Rather than attaching code, Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.

Attached Files

.py   nonkyc.py (Size: 32.99 KB / Downloads: 6)
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020