Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. sdrnaikinv
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 4
    • Best 0
    • Groups 0

    sdrnaikinv

    @sdrnaikinv

    0
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    sdrnaikinv Unfollow Follow

    Latest posts made by sdrnaikinv

    • RE: SmartConnect.getMarginApi() throws exception.

      @admin The response is not in a proper json format. That's why SmartConnect,py class throws error. As I observed, it's broke since Apilr01 2026.

      posted in Python SDK
      S
      sdrnaikinv
    • SmartConnect.getMarginApi() throws exception.

      This API was working fine earlier. Started throwing exception from last few days.

      Exception:

      Lib\site-packages\SmartApi\smartConnect.py", line 235, in _request
      raise ex.DataException("Couldn't parse the JSON response received from the server: {content}".format(
      SmartApi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b''
      Response: 200 b'{"status":true,"message":"SUCCESS","errorcode":"","data":{"net":"6356.4385","availablecash":"6356.4385","availableintradaypayin":"0.0000","availablelimitmargin":"0.0000","collateral":"0.0000","m2munrealized":"-2180.0000","m2mrealized":"0.0000","utiliseddebits":"44976.3715","utilisedspan":null,"utilisedoptionpremium":null,"utilisedholdingsales":null,"utilisedexposure":null,"utilisedturnover":null,"utilisedpayout":"6356.4385"}}'

      posted in Python SDK
      S
      sdrnaikinv