add.identifier: Add an identifier to an 'instrument'

Description Usage Arguments Value Author(s) See Also Examples

Description

Add an identifier to an instrument unless the instrument already has that identifier.

Usage

1
  add.identifier(primary_id, ...)

Arguments

primary_id

primary_id of an instrument

...

identifiers passed as regular named arguments.

Value

called for side-effect

Author(s)

Garrett See

See Also

instrument_attr

Examples

1
2
3
4
5
6
7
8
## Not run: 
stock("XXX", currency("USD"))
add.identifier("XXX", yahoo="^XXX")
getInstrument("^XXX")
add.identifier("^XXX", "x3")
all.equal(getInstrument("x3"), getInstrument("XXX")) #TRUE

## End(Not run)

redmode/FinancialInstrument documentation built on May 27, 2019, 4:03 a.m.