[Blotter-commits] r514 - pkg/blotter/demo

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Dec 31 17:11:38 CET 2010


Author: braverock
Date: 2010-12-31 17:11:38 +0100 (Fri, 31 Dec 2010)
New Revision: 514

Modified:
   pkg/blotter/demo/amzn_test.R
Log:
- call addTxns explicitly, since it isn't exported anymore...

Modified: pkg/blotter/demo/amzn_test.R
===================================================================
--- pkg/blotter/demo/amzn_test.R	2010-12-31 15:45:37 UTC (rev 513)
+++ pkg/blotter/demo/amzn_test.R	2010-12-31 16:11:38 UTC (rev 514)
@@ -13,8 +13,7 @@
 # look at the transactions data
 amzn.trades
 # Add the transactions to the portfolio
-# if you wanted to avoid the contract multiplier warning, you would add an instrument first
-addTxns("amzn_port","amzn",TxnData=amzn.trades,verbose=TRUE)
+blotter:::addTxns("amzn_port","amzn",TxnData=amzn.trades,verbose=TRUE)
 
 # update the portfolio stats
 updatePortf("amzn_port",Dates="2010-01-14")



More information about the Blotter-commits mailing list