Group Details Private

Global Moderators

Forum wide moderators

  • G

    Dear Team,

    Recently we are facing error in most of function of python api.

    today we are facing error in get candle data.

    [E 240430 05:05:08 smartConnect:218] Error occurred while making a POST request to https://apiconnect.angelbroking.com/rest/secure/angelbroking/historical/v1/getCandleData. Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193.147.98', 'X-MACAddress': '02:42:ac:1c:00:0c', 'Accept': 'application/json', 'X-PrivateKey': 'Rz6IiOsd', 'X-UserType': 'USER', 'X-SourceID': 'WEB', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6Ikc5MzE3OSIsInJvbGVzIjowLCJ1c2VydHlwZSI6IlVTRVIiLCJ0b2tlbiI6ImV5SmhiR2NpT2lKSVV6VXhNaUlzSW5SNWNDSTZJa3BYVkNKOS5leUp6ZFdJaU9pSkhPVE14TnpraUxDSmxlSEFpT2pFM01UUTFOREU0T1RVc0ltbGhkQ0k2TVRjeE5EUTBOamsyTml3aWFuUnBJam9pTlRoallXUTFZak10Wm1ZNU15MDBOakZqTFdFeE1EUXRNamxrTnpReE5UVmpZbVl5SWl3aWIyMXVaVzFoYm1GblpYSnBaQ0k2TVN3aWMyOTFjbU5sYVdRaU9pSXpJaXdpZFhObGNsOTBlWEJsSWpvaVkyeHBaVzUwSWl3aWRHOXJaVzVmZEhsd1pTSTZJblJ5WVdSbFgyRmpZMlZ6YzE5MGIydGxiaUlzSW1kdFgybGtJam94TENKemIzVnlZMlVpT2lJeklpd2laR1YyYVdObFgybGtJam9pT0RFNU16RmxaRFV0TURGbFlpMHpOVFUwTFRsaE5qQXRabVZrWldNME1qQXlZV0l4SWl3aVlXTjBJanA3ZlgwLnMwakx6bnhTR0QyN3RJdmJHaGQxNXkzY2dSR1JLcDlUMWdqRVhYaVg1bmVxbFRnY0RSTTEzb0ZrS1hGY3lnNWNPLWdoU09zSmQzOURVNmIzV08tMmFnIiwiQVBJLUtFWSI6IlJ6NklpT3NkIiwiaWF0IjoxNzE0NDQ3MDI4LCJleHAiOjE3MTQ1NDE4OTV9.i7poTUyShVhYkKUTbdsHmDs6h3yTeJnFpWrFGxLwKDl0Pxp2I9CcuLXCZIzx_I6Vx0eUmpiVPvZUB2IoY3Rwtw'}, Request: {'exchange': 'NSE', 'symboltoken': 99926000, 'interval': 'FIVE_MINUTE', 'fromdate': '2024-04-23 10:35', 'todate': '2024-04-30 10:35'}, Response: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/secure/angelbroking/historical/v1/getCandleData (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7cc4dbc79570>, 'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)'))
    Angel Data Not Found 99926000 error HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/secure/angelbroking/historical/v1/getCandleData (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7cc4dbc79570>, 'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)'))

    read more
  • J

    @subh
    https://docs.python.org/3/library/threading.html#module-threading
    Check this documentation to write the code yourself. Cheers!

    read more
  • S

    @jaideep-siddula how to use threading module

    read more
  • J

    @subh
    There would be delay and some data would obviously be missing because there are ingenuities in the API infrastructure. It's about data retrieval.
    Regards,
    Jaideep Siddula

    read more