Getting Error 500 when trying to connect RKD quotes using Python

I am getting 500 error when I am trying to connect RKD fundamentals endpoint using python, can you help

error
1705569644490.png

code

1705569606358.jpeg

Best Answer

  • Jirapongse
    Answer ✓

    @parakh.singh

    Thank you for reaching out to us.

    The headers in the request must be the followings.

    • Content-type = application/json
    • X-Trkd-Auth-ApplicationID = Application ID
    • X-Trkd-Auth-Token = service Token
            headers = {
                "X-Trkd-Auth-Token": self.get_access_token(authorization),
                "X-Trkd-Auth-ApplicationID":"rkdapi",
                "Content-Type":"application/json"
            }