-
Notifications
You must be signed in to change notification settings - Fork 36
Description
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
- The state stats entries for an open credit position (
stats.positions[position_id][index]) should reflect the open position's unrealised profitability in the entry'sprofitability,profit_usdandvaluefields. - The chart data returned from the
chartendpoint for typecompounding_unrealised_trading_profitability_sampledshould reflect credit positions' unrealised profitability. - The chart data included in the
metadataendpoint atsummary_statistics.compounding_unrealised_trading_profitabilityshould reflect credit positions' unrealised profitability. - The strategy summary
cagrvalue included in themetadataendpoint atsummary_statistics.key_metrics.cagrshould reflect credit positions' unrealised profitability. - The unrealised metrics on the long/short metrics table of the
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).