[Blotter-commits] r1682 - pkg/blotter/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Apr 2 03:06:32 CEST 2015


Author: bodanker
Date: 2015-04-02 03:06:31 +0200 (Thu, 02 Apr 2015)
New Revision: 1682

Modified:
   pkg/blotter/R/updateAcct.R
Log:
Initialize invert to FALSE

Reported on stackoverflow:
http://stackoverflow.com/q/29367523/271616


Modified: pkg/blotter/R/updateAcct.R
===================================================================
--- pkg/blotter/R/updateAcct.R	2015-02-12 12:34:19 UTC (rev 1681)
+++ pkg/blotter/R/updateAcct.R	2015-04-02 01:06:31 UTC (rev 1682)
@@ -51,6 +51,7 @@
                 FXrate.str<-paste(p.ccy.str,a.ccy.str,sep='') # currency quote convention is EURUSD which reads as "USD per EUR"
                 FXrate<-try(get(FXrate.str), silent=TRUE)
                 #TODO FIXME: this uses convention to sort out the rate, we should check $currency and $counter_currency and make sure directionality is correct 
+                invert=FALSE
                 if(inherits(FXrate,"try-error")){
                     FXrate.str<-paste(a.ccy.str,p.ccy.str,sep='')
                     FXrate<-try(get(FXrate.str), silent=TRUE)



More information about the Blotter-commits mailing list