Learn R Programming

IBrokers (version 0.10-2)

reqMatchingSymbols: Stock Contract Search

Description

Starting in API v973.02 and TWS v964, a function reqMatchingSymbols is available to search for stock contracts. The input can be either the first few letters of the ticker symbol, or for longer strings, a character sequence matching a word in the security name. For instance to search for the stock symbol 'IBKR', the input 'I' or 'IB' can be used, as well as the word 'Interactive'. Up to 16 matching results are returned.

Usage

reqMatchingSymbols(twsconn, pattern)

Value

dataframe: conId, symbol, secType, primaryExchange, currency, derivateSecTypes

Arguments

twsconn

a valid tws connection object

pattern

either start of ticker symbol or (for larger strings) company name

Author

J.W. de Roode

References

Interactive Brokers https://www.interactivebrokers.com

Examples

Run this code
if (FALSE) {
tws <- twsConnect()
reqMatchingSymbols(tws, pattern="IB")
}

Run the code above in your browser using DataLab