private static void writeReport()

in src/main/java/deltix/ember/sample/PositionRequestSample.java [91:105]


    private static void writeReport(PositionReport report, CSVWriter writer) {
        try {
            writer.writeLine(report.getSymbol(),
                    AlphanumericCodec.decode(report.getExchangeId()),
                    format(report.getSize()),
                    format(report.getOpenBuySize()),
                    format(report.getOpenSellSize()),
                    format(report.getAverageCost()),
                    format(report.getRealizedPnL()),
                    format(report.getUnrealizedPnL()),
                    format(report.getMarketValue()));
        } catch (IOException ex) {
            LOGGER.error("Failed to write to CSV file: %s").with(ex.getMessage());
        }
    }