I have been trying to get a futures testnet API to work but I can’t seem to. No already open topic here explain well enough how to fix it. A good example is this guy ( How to make a futures testnet order via Python?) he had the exact same problem but the solution was explained very badly.
My code:
################################
import os
From your code example, I can’t tell what’s the library you’re using and what’s the code written behind it, this should be looked up locally to understand how a request is build.
Sorry, but this is not an official library, please use the suggestions from my previous comment to troubleshoot, if you can’t discover, you’ll have to debug your local code and maybe reach out to the library’s community for further explanation on its usage.