cURL and Qt JSON formatting submit order issue

Developing order entry and I’m always getting code 400 , msg: “request body format is invalid”.

Here’s my full curl command and JSON order string (windows):

curl --request POST -H “Content-Type: application/json” -H “APCA-API-KEY-ID: BLAH” -H “APCA-API-SECRET-KEY: BLAH/BLAH” -d “{“symb”:“AAPL”,“qty”:“1”,“side”:“buy”,“type”:“market”,“time_in_force”:“gtc”}”

I’ve gotten several other GET requests working fine. Also tried diligently with Qt. Was successful with the python SDK, but couldn’t dump the actual POST command that goes out.

Does anything obviously stand out as wrong?

Thanks for any help in advanced,


Try single quotes to quote json body in your curl example?

I’ve tried single quotes, double quotes, triple quotes, delimited quotes , unlimited quotes and every other kind of quote there is… I tried the python sdk source which got me further into construction the POST message, but the debugger doesn’t step into Requests. I even switched to a mac computer and tried everything again.

On to wireshark… unless someone could test out curl on their computer?