![]() |
POST Syntax error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: POST Syntax error (/thread-42555.html) |
POST Syntax error - amplay - Aug-07-2024 This code is giving me a Syntax error at POST: curl --request POST \ --url https://api.schwabapi.com/trader/v1/accounts/{account_hash}/orders \ --header 'Authorization: {Access_Token}' \ --data {"session": "NORMAL", "duration": "DAY", "orderType": "MARKET", "orderStrategyType": "SINGLE", "orderLegCollection": [ { "instruction": "BUY", "quantity": 1, "instrument": { "symbol": "USA", "assetType": "EQUITY" } } ] }message": "Statements must be separated by newlines or semicolons", |