gnosis / prediction-market-agent

GNU Lesser General Public License v3.0
35 stars 6 forks source link

[Strategy backtests] Add financial metrics #544

Closed gabrielfior closed 4 weeks ago

gabrielfior commented 4 weeks ago

Currently we are mostly focusing on returns of a given strategy during a time period. If the returns were lower than the returns of a different strategy, we swap it out.

In TradFi there are other metrics that are also taken into consideration when doing investment decisions - Sharpe Ratio and volatility being two relevant ones, apart from ROI (already available). Additionally, exposure_time could be relevant, i.e. how long the capital stays locked in a given market on average.

As a first step, in this PR we should add the metrics above when doing the backtesting.

gabrielfior commented 4 weeks ago

Duplicated by https://github.com/gnosis/prediction-market-agent-tooling/issues/545