Loading from: C:\Users\admin.env
ā
.env updated with your actual MPIN: 7053
š USING YOUR ACTUAL 4-DIGIT MPIN:
API Key: 2TZz0DWI
Client Code: M334114
MPIN: 7053 (length: 4 digits)
TOTP Secret: NREB6GSD7KKEOS5QOGCERGAV6Y
šÆ Double Diagonal Calendar Strategy - 4-DIGIT MPIN VERSION
š Logging in to SmartAPI with 4-digit MPIN...
ā± Generated TOTP: 578587
š Using MPIN: 7053 (4 digits)
š Trying MPIN endpoint...
š” MPIN endpoint response: 200
ā Login exception: Expecting value: line 1 column 1 (char 0)
ā Authentication failed with 4-digit MPIN
š” Using realistic mock data for strategy demonstration...
š Using mock data for testing...
šÆ Using expiries: 2025-11-13 (short), 2025-11-20 (long)
š Current NIFTY LTP: 22000
š Data summary - Short Calls: 16, Short Puts: 16, Long Calls: 16, Long Puts: 16
š Evaluated 1162 combinations
============================================================
ā
DOUBLE DIAGONAL CALENDAR SUGGESTION
Short Call: 22350 ā Long Call: 22350 (Width: 0 points)
Short Put: 22000 ā Long Put: 21600 (Width: 400 points)
Total Width: 400 points (⤠600 ā
)
Strategy Score: 1.284
Breakeven Range: ±400 points from current
š Top 5 Call Strikes:
call_score
strike
22350 0.574
22300 0.561
22250 0.549
22200 0.531
22150 0.519
š Top 5 Put Strikes:
put_score
strike
22000 0.679
22050 0.674
21950 0.659
22100 0.624
21900 0.594