Viewing Log: calculate_pnl.py
Status:
stopped
Start: Feb. 9, 2026, 8:34 a.m.
End: Feb. 9, 2026, 8:34 a.m.
Log Output
Existing access token valid
Logged in as: Vikram Bhardwaj
[INSTRUMENTS] Loaded 188692 instruments
[BACKTEST] Calculating PnL from 2026-01-01 to 2026-01-31
Failed to fetch candles for 2026-01-21: Too many requests
[2026-01-01] ORB High=26195.35, ORB Low=26149.25, Close=26137.35
Traceback (most recent call last):
File "/home/ubuntu/encore/scripts/calculate_pnl.py", line 223, in
backtest(START_DATE, END_DATE)
File "/home/ubuntu/encore/scripts/calculate_pnl.py", line 195, in backtest
ltp = opt_candles[-1]["close"]
~~~~~~~~~~~^^^^
IndexError: list index out of range