Historical Data Api not working

shail
Hi
When I try to access historical data I am getting 502 Bad Gateway.
What do I do? If this API is not working then what else I can do? I have enabled historical data from developer console.
Anyone else facing this? Or it's just a temporary outage of this API?
curl "https://api.kite.trade/instruments/historical/SBIN/minute?from=2018-04-19&to=2018-04-20&api_key=xxxxx&access_token=yyyyy"

502 Bad Gateway

502 Bad Gateway



nginx



Tagged:
  • sujith
    It was fixed. This shouldn't be happening now.
  • shail
    Now It's working but when I was trying to access around 2:30 to 3:15PM it wasn't working.
  • ssmaitra
    Date: 29-Apr-2018
    Time: 12:15:00 onwards
    API: javakiteconnect/3.0.0
    Scenario: Tried to retrieve historical data in a loop with time delay of 0/1/5 seconds between requests
    Issue: API returns error after successfully executing 4-5 requests
    Error: 502 Bad Gateway
    Error message: {"status": "error", "message": "Gateway is busy", "error_type": "NetworkException"}
    Detailed logs:
    Apr 29, 2018 12:25:42 PM okhttp3.internal.platform.Platform log
    INFO: --> GET https://api.kite.trade/instruments/historical/3861249/minute?continuous=0&from=2015-03-02%2000:00:00&to=2015-03-31%2000:00:00
    Apr 29, 2018 12:25:42 PM okhttp3.internal.platform.Platform log
    INFO: User-Agent: javakiteconnect/3.0.0
    Apr 29, 2018 12:25:42 PM okhttp3.internal.platform.Platform log
    INFO: X-Kite-Version: 3
    Apr 29, 2018 12:25:42 PM okhttp3.internal.platform.Platform log
    INFO: Authorization: token a9fnlqn3l42kah8g:1kvyUTkAYE6MbPjg3V7l95GOylvaxNKh
    Apr 29, 2018 12:25:42 PM okhttp3.internal.platform.Platform log
    INFO: --> END GET
    Apr 29, 2018 12:25:46 PM okhttp3.internal.platform.Platform log
    INFO: <-- 502 Bad Gateway https://api.kite.trade/instruments/historical/3861249/minute?continuous=0&from=2015-03-02%2000:00:00&to=2015-03-31%2000:00:00 (3408ms)
    Apr 29, 2018 12:25:46 PM okhttp3.internal.platform.Platform log
    INFO: Server: nginx
    Apr 29, 2018 12:25:46 PM okhttp3.internal.platform.Platform log
    INFO: Date: Sun, 29 Apr 2018 06:55:46 GMT
    Apr 29, 2018 12:25:46 PM okhttp3.internal.platform.Platform log
    INFO: Content-Type: application/json
    Apr 29, 2018 12:25:46 PM okhttp3.internal.platform.Platform log
    INFO: Content-Length: 83
    Apr 29, 2018 12:25:46 PM okhttp3.internal.platform.Platform log
    INFO: Connection: keep-alive
    Apr 29, 2018 12:25:46 PM okhttp3.internal.platform.Platform log
    INFO:
    Apr 29, 2018 12:25:46 PM okhttp3.internal.platform.Platform log
    INFO: {"status": "error", "message": "Gateway is busy", "error_type": "NetworkException"}
    Apr 29, 2018 12:25:46 PM okhttp3.internal.platform.Platform log
    INFO: <-- END HTTP (83-byte body)
Sign In or Register to comment.