Hi, I added https URL in postback URL field of app but I am not getting any messages in my app. I tested locally and I received but not getting order update notifications. Can you please help.
Hi Rakesh, I have set "https://3.109.197.236/kite_feed" in my zerodha kite app and expecting data in python flask app. I tested manually sending data from above URL and its working, however, I didn't receive anything when I placed any order from API and those were completed. What am I missing here?
This is what I am using sujith. 3.109.197.236 is my public IP. what could be the issue here. I am using self signed cert and pem files. while I am getting request on other flask app on the same server, not getting anything from kite.
@app.route('/kite_feed', methods=['POST']) def kite_live_feed(): print ("Invoked by kite feed") logging.info ( "------- Data from Kite starts -------" ) logging.info (request.json) logging.info ( "------- Data from Kite ends -------" ) postback_raw = request.get_data() logging.info ("postback_raw : " % postback_raw) logging.info ( "------- Data from Kite ends again -------" ) if request.method == 'POST': return 'success', 200 else: abort (400)
Nevermind. It worked with a local tunnel. But, in case you can help why its not working with a public IP and self signed certificate would be good to know.
I have set "https://3.109.197.236/kite_feed" in my zerodha kite app and expecting data in python flask app. I tested manually sending data from above URL and its working, however, I didn't receive anything when I placed any order from API and those were completed. What am I missing here?
@app.route('/kite_feed', methods=['POST'])
def kite_live_feed():
print ("Invoked by kite feed")
logging.info ( "------- Data from Kite starts -------" )
logging.info (request.json)
logging.info ( "------- Data from Kite ends -------" )
postback_raw = request.get_data()
logging.info ("postback_raw : " % postback_raw)
logging.info ( "------- Data from Kite ends again -------" )
if request.method == 'POST':
return 'success', 200
else:
abort (400)