C++ Api Quick Reference: 1. Download and Install The API Software
C++ Api Quick Reference: 1. Download and Install The API Software
Quick Reference
This Quick Reference assumes that you are comfortable
downloading and installing software.
You can open the C++ sample application from within Microsoft Visual Studio 2008 or your favorite
C++ development environment. For detailed instructions, see the API Reference Guide, available
from the Application Programming Interfaces page on our web site.
If you have any problems running the sample application, contact our API Support Team at
[email protected].
To do this:
Call EClientSocket
function(s):
Connect to TWS
eConnect()
None
disconnect()
connectionClosed()
reqMktData()
tickPrice()
tickSize()
tickOptionComputation()
tickGeneric()
tickString()
tickEFP()
reqMktDepth()
updateMktDepth()
updateMktDepthL2()
reqHistoricalData()
historicalData()
reqRealTimeBars()
realtimeBar()
reqCurrentTime()
currentTime()
reqScannerSubscription()
reqScannerParameters()
scannerData()
scannerParameters()
scannerDataEnd()
orderStatus()
Place an order
placeOrder()
orderStatus()
Exercise options
exerciseOptions()
None
reqContractDetails()
contractDetails()
contractDetailsEnd()
reqOpenOrders()
openOrder()
orderStatus()
reqAllOpenOrders()
openOrder()
orderStatus()
reqAutoOpenOrders()
openOrder()
orderStatus()
reqAcctUpdates()
updateAccountTime()
updateAccountValue()
updatePortfolio()
reqExecutions()
execDetails()
execDetailsEnd()
reqNewsBulletins()
updateNewsBulletin()
setLogLevel()
None
reqManagedAccts()
managedAccounts()
requestFA()
receiveFA()
Modify FA configuration
information
replaceFA()
receiveFA()
reqFundamentalData()
fundamentalData()