View source: R/reqMatchingSymbols.R
reqMatchingSymbols | R Documentation |
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.
reqMatchingSymbols(twsconn, pattern)
twsconn |
a valid tws connection object |
pattern |
either start of ticker symbol or (for larger strings) company name |
dataframe: conId, symbol, secType, primaryExchange, currency, derivateSecTypes
J.W. de Roode
Interactive Brokers https://www.interactivebrokers.com
## Not run: tws <- twsConnect() reqMatchingSymbols(tws, pattern="IB") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.