Navigation

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

    Not able to get the orders and trade details

    Python SDK
    4
    6
    46
    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.
    • N
      nshekhar last edited by

      I am trying to get the orders and trade details but getting following error, Can someone help me for this.

      Exception has occurred: gaierror
      [Errno 11001] getaddrinfo failed

      conn = http.client.HTTPSConnection(
      "apiconnect.angelbroking.com "
      )

      headers = {
      'Authorization': 'Bearer Autorization token',
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-UserType': 'USER',
      'X-SourceID': 'WEB',
      'X-ClientLocalIP': CLIENT_LOCAL_IP,
      'X-ClientPublicIP': external_ip,
      'X-MACAddress': mac_Address,
      'X-PrivateKey': api_key
      }

      N 1 Reply Last reply Reply Quote 0
      • N
        NST @nshekhar last edited by NST

        @nshekhar Please refer links below to get order book and get trade book request.

        https://smartapi.angelbroking.com/docs/Orders

        X 1 Reply Last reply Reply Quote 0
        • X
          Xcaliber @NST last edited by

          @sandipkhairnar Has you able to fetch the real-time trade book because My last trade is not updating in the trade book immediately.

          N 1 Reply Last reply Reply Quote 0
          • N
            NST @Xcaliber last edited by

            @Xcaliber Yes, I am able to fetch real-time order and trade book.

            X 1 Reply Last reply Reply Quote 0
            • X
              Xcaliber @NST last edited by

              @sandipkhairnar Hey, I am facing the issue of request timeout = 7ms while I am fetching and placing orders in a 2-second interval. Are you also facing this kind of errors?

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

                Hi @Xcaliber our team is working on it we will update on this.

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