Navigation

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

    getMarginApi is not working

    Python SDK
    1
    1
    2
    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.
    • S
      SSumit last edited by

      Getting the following error:

      File "/usr/local/lib/python3.10/dist-packages/SmartApi/smartConnect.py", line 526, in getMarginApi
      marginApiResult=self._postRequest("api.margin.api",params)
      File "/usr/local/lib/python3.10/dist-packages/SmartApi/smartConnect.py", line 263, in _postRequest
      return self._request(route, "POST", params)
      File "/usr/local/lib/python3.10/dist-packages/SmartApi/smartConnect.py", line 233, 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''

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