Order not getting deleted. Had to do manually.


DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "DELETE /orders/regular/210916200099065?order_id=210916200099065&variety=regular HTTP/1.1" 403 None
  • sujith
    A 403 means your session is expired. You need to generate a new access token.
  • QP8432
    210921200383391 order could not be CANCELLED Incorrect `api_key` or `access_token`.
    System is placing orders however, only cancelling is a problem.
  • sujith
    Can you run with debug logs on and paste the complete stack trace here?

    PS: Make sure to remove app and client specific tokens.
  • rakeshr
    Go through python order FAQs here.
  • QP8432
    Answer not available in your link.
  • QP8432
    DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443
    210923200575031 order could not be CANCELLED HTTPSConnectionPool(host='api.kite.trade', port=443): Max retries exceeded with url: /orders/regular/210923200575031?order_id=210923200575031&variety=regular (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)')))
  • sujith
    This is not an issue with Kite Connect. You can know more here.
Sign In or Register to comment.