Double currentPos = getCurrentPos(tid); Double avgPx = getAvgPx(tid); conversionRate = 1.0; } else { conversionRate = getConversionRate(base, quotee, execPrice);
IBFXFeeCalculator feeCalculator = new IBFXFeeCalculator(); oel.setFeeCalculator(feeCalculator); OrderFillEvent ofe = (OrderFillEvent) se; ofe.setOptionalInstId("PI_"+ofe.getOptionalInstId()); feeCalculator.updateRefRate(ofe.getOptionalInstId().substring(3), ofe.getFillPrice()); List<String> enrichedTransactions = feeCalculator.getRows(); FileUtils.writeLines(enrichedTransactions, new FileOutputStream(targetFolder + File.separator + "enriched_transactions.csv"));