Unrealised profit data for open credit positions #1101
Labels
enhancement
New feature or request
priority: P1
An important issue that must be fixed before the next release, but does nto require immediate focus.
size: S
A small task that can be completed in less than a day
Goal
As a prospective investor analysing strategies, I want credit positions' unrealised profit to be properly reflected in charts, position statistics and strategy summary metrics, so that I can properly assess the strategy's performance.
Background
See Discord threads:
Originally, unrealised profit was not reflected for any positions. Various updates were implemented to properly reflect the unrealised profitability of open spot positions. However, this is still not captured or reflected for open credit positions.
In a bear market, and with no current support for short positions in vault-based strategies, credit positions can remain open for long time periods. It is crucial that our data and UI properly reflects the profit associated with these positions to prospective investors and other stakeholders.
Acceptance criteria
stats.positions[position_id][index]
) should reflect the open position's unrealised profitability in the entry'sprofitability
,profit_usd
andvalue
fields.chart
endpoint for typecompounding_unrealised_trading_profitability_sampled
should reflect credit positions' unrealised profitability.metadata
endpoint atsummary_statistics.compounding_unrealised_trading_profitability
should reflect credit positions' unrealised profitability.cagr
value included in themetadata
endpoint atsummary_statistics.key_metrics.cagr
should reflect credit positions' unrealised profitability.state
endpoint atstats.long_short_metrics_latest.live_stats
should reflect credit positions' unrealised profitability (unrealised_profit_and_loss
,portfolio_unrealised_value
… and possiblyreturn_percent
andannualised_return_percent
if these metrics also include unrealised profits).The text was updated successfully, but these errors were encountered: