[Blotter-commits] r190 - pkg/blotter/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Jan 19 22:30:59 CET 2010
Author: braverock
Date: 2010-01-19 22:30:55 +0100 (Tue, 19 Jan 2010)
New Revision: 190
Modified:
pkg/blotter/R/synthetic.R
Log:
- add check for spread instrument type
Modified: pkg/blotter/R/synthetic.R
===================================================================
--- pkg/blotter/R/synthetic.R 2010-01-19 21:30:22 UTC (rev 189)
+++ pkg/blotter/R/synthetic.R 2010-01-19 21:30:55 UTC (rev 190)
@@ -1,5 +1,5 @@
buildSpread<- function(primary_id, ...) {
- tmp_instr<-try(getInstrument(primary_id)
+ tmp_instr<-try(getInstrument(primary_id))
if(inherits(tmp_instr,"try-error") | !is.instrument(tmp_instr)){
stop(paste("Instrument",Symbol," not found, please create it first."))
}
More information about the Blotter-commits
mailing list