This function will search the
.instrument environment for objects of
type, using first the
primary_id and then any
identifiers to locate the instrument. Finally, it will try adding 1
and then 2 dots to the beginning of the
primary_id to see if an
instrument was stored there to avoid naming conflicts.
String identifier of instrument to retrieve
date range to retrieve 'as of', may not currently be implemented
if TRUE, will not warn on failure, default FALSE
class of object to look for. See Details
option objects may have a primary_id
that begins with 1 or 2 dots (in order to avoid naming conflics). For
example, the root specs for options (or futures) on the stock with ticker
"SPY" may be stored with a primary_id of "SPY", ".SPY", or "..SPY".
getInstrument will try using each possible
until it finds an instrument of the appropriate
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.