Navigation

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

    Response Error in python while calling url direct from http module.

    Python SDK
    0
    2
    13
    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.
    • J
      jayesh_sapkale last edited by

      Function listed in smartConnect.py working fine such as
      "api.order.book":"/rest/secure/angelbroking/order/v1/getOrderBook",
      "api.ltp.data": "/rest/secure/angelbroking/order/v1/getLtpData",

      But whenever iam trying to call direct get/post request in my case following url :
      "https://apiconnect.angelbroking.com/rest/secure/angelbroking/marketData/v1/optionGreek"
      "https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/getOrderBook"

      With python code it gives me a response error "Can't concat str to bytes"

      Is something wrong with my python code for python request

      Please find code and response error in imageerr-code--1.png

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @jayesh_sapkale last edited by

        Hi @jayesh_sapkale

        Apologies for delayed response.
        We will check and update you on this.

        Thanks & Regards,
        SmartAPI team

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