{% extends "cartera/base.html" %} {% block title %}Cartera - Bolsa{% endblock %} {% block content %}

📊 Mi cartera

{% csrf_token %}
Valoración cartera

{{ totales.valoracion }} €

{% if totales.latente >= 0 %}+{% endif %}{{ totales.latente }} € latente
Plusvalías realizadas

{{ totales.plusvalias }} €

Dividendos netos

{{ totales.dividendos }} €

Posiciones abiertas

{% if abiertas %}
{% for p in abiertas %} {% endfor %}
Ticker Nombre Acciones Precio medio Precio actual Invertido Valoración Latente Dividendos netos
{{ p.valor.ticker }} {{ p.valor.nombre }} {{ p.acciones|floatformat:0 }} {{ p.precio_medio|floatformat:4 }} € {% if p.valor.precio_actual %}{{ p.valor.precio_actual|floatformat:4 }} €{% else %}—{% endif %} {{ p.invertido }} € {% if p.valoracion %}{{ p.valoracion }} €{% else %}—{% endif %} {% if p.valoracion %}{% if p.latente >= 0 %}+{% endif %}{{ p.latente }} €{% else %}—{% endif %} {{ p.dividendos }} €
Total {{ totales.invertido }} €
{% else %}

No hay posiciones abiertas.

{% endif %}

Posiciones cerradas

{% if cerradas %}
{% for p in cerradas %} {% endfor %}
Ticker Nombre Plusvalías realizadas Dividendos cobrados
{{ p.valor.ticker }} {{ p.valor.nombre }} {{ p.plusvalias }} € {{ p.dividendos }} €
{% else %}

Todavía no hay posiciones cerradas.

{% endif %} {% endblock %}