This is machine translation

Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

Translate This Page

MathWorks Machine Translation

The automated translation of this page is provided by a general purpose third party translator tool.

MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.

Create and Manage an Interactive
Brokers Order

This example shows how to connect to the IB Trader
WorkstationSM,
request open order data, create IB Trader
Workstation IContract and IOrder objects,
and execute the order. For details about the IContract and IOrder objects,
see Interactive
Brokers API
Reference Guide.

XYZ is a sample symbol name and EX is
a sample primary exchange name. To create orders for your security,
substitute the symbol name in ibContract.symbol and
primary exchange name in ibContract.primaryExchange.