-
Notifications
You must be signed in to change notification settings - Fork 36
Unrealised profit data for open credit positions #1101
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestpriority: P1An important issue that must be fixed before the next release, but does nto require immediate focus.An important issue that must be fixed before the next release, but does nto require immediate focus.size: SA small task that can be completed in less than a dayA small task that can be completed in less than a day
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpriority: P1An important issue that must be fixed before the next release, but does nto require immediate focus.An important issue that must be fixed before the next release, but does nto require immediate focus.size: SA small task that can be completed in less than a dayA 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_usdandvaluefields.chartendpoint for typecompounding_unrealised_trading_profitability_sampledshould reflect credit positions' unrealised profitability.metadataendpoint atsummary_statistics.compounding_unrealised_trading_profitabilityshould reflect credit positions' unrealised profitability.cagrvalue included in themetadataendpoint atsummary_statistics.key_metrics.cagrshould reflect credit positions' unrealised profitability.stateendpoint atstats.long_short_metrics_latest.live_statsshould reflect credit positions' unrealised profitability (unrealised_profit_and_loss,portfolio_unrealised_value… and possiblyreturn_percentandannualised_return_percentif these metrics also include unrealised profits).