       type: 'GET',
                dataType: 'json',
                success: function(response) {
                    console.log('All positions response:', response); // 調試用
                    if (response && response.status === 'success' && response.history) {
                        // 更新全部歷史記錄
                        updateAllHistory(response.history, '#allHistoryBody', '#totalCount');
                        
                        // 從全部記錄中過濾出各資產的歷