Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    unable to get option data login issue Python

    Python SDK
    2
    2
    3
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mistrymah last edited by

      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

      1 Reply Last reply Reply Quote 0
      • A
        admin last edited by

        @mistrymah

        Please let us know which API are you using to Login.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post