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

Problem with single quotes in order dictionary. #20

Open ckvk48a opened 3 years ago

ckvk48a commented 3 years ago

It appears through testing that there is some sort of problem when submitting the orders created with the create trade module that have single quotes (') in the dictionary. I kept having a problem getting the orders to submit to my production TD account. Then when I changed the single quotes(') to double quotes(") (as is depicted in the example they provide in the API guide) the order went through just fine. Are you aware of this?

Seems somewhat peculiar that the API would be written this way, but that is what my testing has borne out. Would appreciate any comments from anyone else who is using this to chime in.

If I am correct, it would be worthy of making the changes in the trades Class to remedy this. Please advise.