The “actual” accumulated values can be taken as an example from coinglass.com by simply analyzing the 15-minute time interval. When the values are accumulated, they must continuously increase. However, in the bot.log
file, I observed that the accumulated values are not correctly stored (so to speak).
Example: First 5 minutes (connection stable):
3 trades are recorded: Trade 1: Purchase of 50,000 USDT Trade 2: Purchase of 30,000 USDT Trade 3: Sale of 40,000 USDT Accumulation after 5 minutes: Purchase volume = 80,000 USDT, Sale volume = 40,000 USDT
Connection loss (for 2 minutes):
During this time, we miss all trades that could have been recorded. Important: The previously collected data (Purchase = 80,000 USDT, Sale = 40,000 USDT) remains in memory. Connection restoration:
After the restoration, new trades are immediately recorded. Let’s say the following new trades are recorded:
Trade 4: Sale of 60,000 USDT Trade 5: Purchase of 50,000 USDT Accumulation after another 8 minutes: Purchase volume = 130,000 USDT (80,000 + 50,000), Sale volume = 100,000 USDT (40,000 + 60,000).
Result after 15 minutes:
At the end of the 15 minutes, we have correctly accumulated: Purchase = 130,000 USDT, Sale = 100,000 USDT.
This is the ideal case. The reality looks different: either duplicate values, or after the connection loss, the data is lost and recalculated from scratch within the 15 minutes, showing lower values than the “actual” ones.