                            // 處理平倉價格
                            let displayExitPrice = 'N/A';
                            if (position.exitPrice !== null && position.exitPrice !== undefined && position.action === 'CLOSE') {
                                if (typeof position.exitPrice === 'object' && position.exitPrice !== null) {
                                    displayExitPrice = position.exitPrice.toString ? position.exitPrice.toString() : JSON.stringify(position.exitPrice);
            