We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm trying to use the TDClient.placeOrder function.
TDClient.placeOrder
I had to add {"Content-Type": "application/json"} to the headers, so that it would accept my json.
{"Content-Type": "application/json"}
When I got placeOrder working, I recieved this error:
placeOrder
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
It seems that the Place Order API doesn't return anything. When I printed the response.content, I got b''
response.content
b''
The order went through fine but the code failed because of the .json() call at the end of placeOrder.
.json()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I'm trying to use the
TDClient.placeOrder
function.I had to add
{"Content-Type": "application/json"}
to the headers, so that it would accept my json.When I got
placeOrder
working, I recieved this error:json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
It seems that the Place Order API doesn't return anything. When I printed the
response.content
, I gotb''
The order went through fine but the code failed because of the
.json()
call at the end of placeOrder.The text was updated successfully, but these errors were encountered: