@yash544 When you place order you will get callback(request from our server) to your server when order status changes. For example you have placed an limit order and when it gets executed you will get postback from our server with these order details. You can read more about webhooks here - https://webhooks.pbworks.com/w/page/13385124/FrontPage
@yash544@vivek I have been reading little bit about integrating webhooks with python without having myself to run a server for the HTTPS postback link. AmazonSQS/IronMQ seems to be a good solution. Both give free options for the requirements of a retail trader. Do you have any better suggestions to implement webhooks for a kite-python based trading application?
@vivek could you comment on @fury1984's suggestions above. Amazon/Iron is better of solutions to go ahead with? What are the other effective free/low cost solution
@kapilaggr It's an overkill I feel. Unless you have specific requirements you can just spin off a AWS EC2 server or Digital ocean server to get postbacks and use it in your app. We will release few examples to do the same.
Hi @skk, You need to setup a simple server which accepts post request which will get data in the payload. You can check out more details here. We will put up an example by end of next week.
Another alternative is to get a static IP from your ISP and setup a webserver in your laptop/desktop. This is easy to do and doesn't incur server costs.
I have been referring to the link you have provided for using webhook. But it still needs us(my client python program in laptop) to host an public-ip/domain on postback_url so that i will get the event from server on order status change, correct?
so its like i have to own a website/domain and also have some apache(http or https?) server running in it? Is there any way i can talk to you over phone? Or you can send me a private message on contact no? Because i send multiple mails to talk@rainmatter but no one responds. You are doing a great job here in keeping the kiteconnect api hope alive for people but responding atleast.
If we can't talk over phone, please clarify my queries, here it goes: I kind of have my python code ready for placing order and trade using my strategy. Few things i am not clear now is: 1. The authentication process. What redirect URL i should give during registration if i have my logic python code in my laptop? any sample video / code for this authentication method? 2. If i cannot own a domain/website with server(as they are costly) , is there any easy way you are aware for retail investors like us? (some service in internet where we can take domain and use for this kiteconnect POSTBACK_URL purpose only) 3. If I need to include SuperTrend indicator for my strategy: a) any sample python code for that available? b) or some algoz command? c) Or i need to use websockets to stream the price every second and using that i form supertrend signals using implementation in python?
1. The authentication process. What redirect URL i should give during registration if i have my logic python code in my laptop? any sample video / code for this authentication method?
2. If i cannot own a domain/website with server(as they are costly) , is there any easy way you are aware for retail investors like us? (some service in internet where we can take domain and use for this kiteconnect POSTBACK_URL purpose only)
You can use DigitalOcean may be just $5 instance will serve your purpose. You don't need domain use IP directly.
3. If I need to include SuperTrend indicator for my strategy: a) any sample python code for that available? b) or some algoz command? c) Or i need to use websockets to stream the price every second and using that i form supertrend signals using implementation in python?
Kite Connect is purely an execution platform, we don't provide support for writing strategies. You can use websockets data to generate super trend signals.
@sujith I have setup a URL for my postback.. Will I get a call whenever any of my order changes.. or should I do something while placing order.. I am using Java..
@vatayush, You can change the postback and redirect URL after creating app also. You can go to the app details page of the developers console for the same.
This url looks fine. You get raw json in body. Can you check if you have setup everything that is as mentioned here?
You need to setup a simple server which accepts post request which will get data in the payload.
You can check out more details here.
We will put up an example by end of next week.
You can refer to this.
I have been referring to the link you have provided for using webhook.
But it still needs us(my client python program in laptop) to host an public-ip/domain on postback_url so that i will get the event from server on order status change, correct?
Please clarify.
Yes, you need a domain to which we will make a post request.
so its like i have to own a website/domain and also have some apache(http or https?) server running in it?
Is there any way i can talk to you over phone? Or you can send me a private message on contact no?
Because i send multiple mails to talk@rainmatter but no one responds.
You are doing a great job here in keeping the kiteconnect api hope alive for people but responding atleast.
If we can't talk over phone, please clarify my queries, here it goes:
I kind of have my python code ready for placing order and trade using my strategy.
Few things i am not clear now is:
1. The authentication process. What redirect URL i should give during registration if i have my logic python code in my laptop? any sample video / code for this authentication method?
2. If i cannot own a domain/website with server(as they are costly) , is there any easy way you are aware for retail investors like us? (some service in internet where we can take domain and use for this kiteconnect POSTBACK_URL purpose only)
3. If I need to include SuperTrend indicator for my strategy:
a) any sample python code for that available?
b) or some algoz command?
c) Or i need to use websockets to stream the price every second and using that i form supertrend signals using implementation in python?
Thanks in advance.
You can use websockets data to generate super trend signals.
I have my own domain but do not have ssl certificate. That will cost me 4k/year. is there anyway i can use domain without ssl certificate ?
can i update my postback url later in the app ?
You need a valid https URL to get postbacks. You can try this.
You can change the postback and redirect URL after creating app also. You can go to the app details page of the developers console for the same.