areed1192 / python-trading-robot

A trading robot, that can submit basic orders in an automated fashion using the TD API.
MIT License
535 stars 312 forks source link

Place_order issues #23

Open gsilva4u opened 3 years ago

gsilva4u commented 3 years ago

It looks like everything is okay except that I get this particular error and I have tried several time to fix it. Could you please me identify and solve this issue?

in execute_orders order_dict = self.session.place_order( "C:\site-packages\td\client.py", line 1925, in place_order return self._make_request(method='post', endpoint=endpoint, mode='json', json=order, order_details=True) "C:\lib\site-packages\td\client.py", line 617, in _make_request raise NotNulError(message=response.text) td.exceptions.NotNulError: {"error" : "A validation error occurred while processing the request."}

Thank you!