I am trying to place GTT order in Python without KiteConnect as I wanted to try once before purchasing but constantly getting 'Invalid order params' error. Please tell what I am doing wrong as GET request is working perfectly but not POST.
@rakeshr these are the headers I am using but still getting error self.headers = {"Authorization": f"enctoken {enctoken}", "X-Kite-Version": "3", "Content-Type": "application/x-www-form-urlencoded"}
Make sure, to add
"Content-Type": "application/x-www-form-urlencoded"
in the headers.self.headers = {"Authorization": f"enctoken {enctoken}",
"X-Kite-Version": "3",
"Content-Type": "application/x-www-form-urlencoded"}