 await fetchMarketData(slug2);

            market1 = await getMarketBySlug(slug1);
            market2 = await getMarketBySlug(slug2);

            const mergedData = mergeMarketData(data1, data2);

            const timestamps = mergedData.map(item => item.timestamp);
            const probabilities1 = mergedData.map(item => item.probability1);
            const probabilities2 = mergedData.map(item => item.probability2);
            const spreads = mergedData.map(item => item.spread);

            const c