Buy stocks

This example shows how place an order for Stocks. Find one using the search example.
Since buying Bonds, or SRD is quite similar, you can use this sample to test those instrument types as well.
When you sell a position, you can add a PositionId and after execution, both will be netted out.

Order tickets must warn before trading a complex product, provide a KID download and the cost breakdown. See the sample.
More info on handling error responses:

POST body containing order parameters:

Click button to launch function.

JS code:
Click button to show code.