Buy a future
This example shows how place a future order.When you sell a stock position, you can add a PositionId and after execution, both will be netted out. Futures cannot be closed this way. You can "close" it by doing an opposite trade.
The position will be rolled over automatically.
Order tickets must warn before trading a complex product, provide a KID download and the cost breakdown. See the sample.
Looking for support on CME futures? CME is not enabled for thirdparty apps by default. For this, an agreement with Saxo must be signed.
More info on handling error responses: https://www.developer.saxo/openapi/learn/order-placement-return-codes
POST body containing order parameters:
Response:
Click button to launch function.
JS code:
Click button to show code.