From 9642776c0a1ea44d3a54cdf7d20de7fa78d97aa7 Mon Sep 17 00:00:00 2001 From: dimxy Date: Fri, 19 Apr 2019 02:47:51 +0500 Subject: [PATCH] profits log --- src/cc/prices.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cc/prices.cpp b/src/cc/prices.cpp index 96042b076..e1c64782c 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -649,7 +649,10 @@ int64_t prices_syntheticprofits(bool calcCostbasis, int64_t &costbasis, int32_t } profits = costbasis > 0 ? ((price * SATOSHIDEN) / costbasis) - SATOSHIDEN : 0; + std::cerr << "prices_syntheticprofits() profits1=" << profits << std::endl; profits *= leverage * positionsize; + std::cerr << "prices_syntheticprofits() profits2=" << profits << std::endl; + return(positionsize + addedbets + profits); }