Quickstart
1
from empyrial import empyrial, Engine
2
​
3
portfolio = Engine(
4
start_date= "2018-06-09", #start date for the backtesting
5
portfolio= ["BABA", "PDD", "KO", "AMD","^IXIC"], #assets in your portfolio
6
weights = [0.2, 0.2, 0.2, 0.2, 0.2], #equal weighting is set by default
7
benchmark = ["SPY"] #SPY is set by default
8
)
9
​
10
empyrial(portfolio)
Copied!

Output

Last modified 3mo ago
Copy link