powered by
instrument
Add an identifier to an instrument unless the instrument already has that identifier.
add.identifier(primary_id, ...)
primary_id of an instrument
identifiers passed as regular named arguments.
called for side-effect
instrument_attr
# NOT RUN { 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