Skip to content
Prev 6073 / 15274 Next

What are the requirements for instrument names in a blotter portfolio?

As should be clear from the documentation and examples, we have followed 
the 'quantmod' convention of storing the market data as the symbol name.

My presumtion is that as you could not possibly have stored your market 
data as '-24702R9GE' (as this is an illegal R variable name), you have 
likely also not stored it as 'INST24702R9GE'

The call that is failing, however, suggests a different problem.

This error:

Error in get(x, pos = .instrument) : object 'INST24702R9GE' not found

suggests that you haven't declared the instrument, with currency, 
multiplier, etc.

it's not clear if the next error is directly related, or if it is simply 
the code falling back to try to find the instrument data in the global 
environment.

Diagnosing this would be much easier if you provided a complete, 
reproducible example, per the posting guide.  Then I wouldn't have to 
guess, I could simply run the code.

Regards,

      - Brian
On 04/26/2010 08:32 AM, Robert Nicholson wrote: