Skip to main content
POST
Backtest a portfolio of companies

Authorizations

Authorization
string
header
required

Enter 'Bearer' followed by a space and then your JWT or API Key. Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... or Bearer YOUR_API_KEY_HERE

Body

application/json
holdings
object[]
required

The companies to backtest, each with a portfolio weight.

years
integer
default:5

Number of years to backtest over.

Required range: 1 <= x <= 20
benchmark
string
default:SPY

Benchmark symbol to compare against, for example SPY or QQQ.

Response

Backtest results

metadata
object

Performance statistics for the portfolio.

timeSeries
number[][]

Portfolio NAV points, each given as [unix_seconds, nav], starting at 10000.

Example:
benchmarkMetadata
object

Performance statistics for the benchmark.

benchmarkTimeSeries
number[][]

Benchmark price series rebased to 10000 and aligned to the portfolio dates.

Example: