powered by
instrument
Add an identifier to an instrument unless the instrument already has that identifier.
add.identifier(primary_id, ...)
called for side-effect
primary_id of an instrument
identifiers passed as regular named arguments.
Garrett See
instrument_attr
if (FALSE) { stock("XXX", currency("USD")) add.identifier("XXX", yahoo="^XXX") getInstrument("^XXX") add.identifier("^XXX", "x3") all.equal(getInstrument("x3"), getInstrument("XXX")) #TRUE }
Run the code above in your browser using DataLab