        
            $.ajax({
                url: '/api/position/clear',
                type: 'POST',
                dataType: 'json',
                success: function(response) {
                    if (response && response.status === 'success') {
                        showToast('success', '歷史倉位記錄已清空！');
                        
                        // 清空所有表格內容
                        updateAllHistory([], '#allHistoryBody', '#totalCount');
                      