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",
Larz60+ write Aug-07-2024, 05:34 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Tags added for you thjis time, please use BBCode tags on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Tags added for you thjis time, please use BBCode tags on future posts.