示例#1
0
 public void writeSTOFiles(string marketName, bool doMetricFiles)
 {
     if (arguments.parameters.isSTO())
     {
         var path = arguments.curveDir(marketName);
         LogC.info("write sto curve file on " + path);
         CurveFiles.writeOne(path, dates_, pnl_, positions_);
         if (doMetricFiles)
         {
             MetricFiles.writeOne(arguments.systemId(), marketName, arguments.parameters.runNumber(), metrics());
         }
     }
     else if (arguments.parameters.isCloudSTO())
     {
         CurveFiles.writeToS3(arguments.systemId(), marketName, arguments.parameters.runNumber(), dates_, pnl_, positions_);
     }
 }
示例#2
0
        public void writeSTOFiles(bool doMetricFiles)
        {
            each(collectors, (portfolio, collector) => collector.writeSTOFiles(portfolio.name, doMetricFiles));
            if (!doMetricFiles || !arguments.parameters.isCloudSTO())
            {
                return;
            }

            var systemId = arguments.systemId();
            var run      = arguments.parameters.runNumber();

            MetricFiles.writeToS3(systemId, run, metrics());
            FetchSTOParameters.key(systemId, run).write(serialize(arguments.parameters));
        }