obability: bet.probAfter
            })).reverse();
        }

        function mergeMarketData(data1, data2) {
            const startTime = Math.max(data1[0].timestamp, data2[0].timestamp);
            const endTime = Math.min(data1[data1.length - 1].timestamp, data2[data2.length - 1].timestamp);

            const filteredData1 = data1.filter(item => item.timestamp >= startTime && item.timestamp <= endTime);
            const filteredData2 = data2.filter(item => item.timestamp >= startTime && item.timest