placeOrder | R Documentation |
Call this function to place an order. The order status will be returned by the orderStatus event.
placeOrder(orderId, contract, order, ib_con)
orderId |
The order id. You must specify a unique value. When the order START_API returns, it will be identified by this tag. This tag is also used when canceling the order. |
contract |
A valid contract. You can create a valid contract with the
|
order |
A valid Order. You can create a valid order with the
|
ib_con |
A valid ib connection. |
Returns an order status message
Example to follow.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.