@gandavadi I cannot be certain of that. Like @HowUTrade had shared, even with AWS, sometimes traffic goes through overseas before hitting the internet. Unless you are in colo with the exchanges I don't think there's a permanent solution to get ultra…
The traceroute @gandavadi had shared:
Tracing route to api.kite.trade [104.18.91.38]
over a maximum of 30 hops:
1 * * * Request timed out.
2 * * * Request timed out.
3 * * * Re…
Hi @HowUTrade , @gandavadi
We just had a call with Cloudflare to understand how this routing from client-side goes over totally different geographic locations. We shared the MTR and traceroutes you had sent with them. These cloud providers rely on…
Hi @gandavadi
Also could you run these from your AWS server and share the results:
1. curl https://api.kite.trade/cdn-cgi/trace/
2. nslookup api.kite.trade
3. mtr -rwc 25 api.kite.trade
Thanks
Hi @gandavadi,
Like I had explained in my previous comment, Cloudflare routes traffic based on the latency between two points. There are n number of variables that could cause it to be routed through a different geographic location. When you were d…
Hi @HowUTrade
This seems like Cloudflare routing this through the fastest available path for your source network. Its something we have no control over. This could depend on multiple factors, like if theres an increased latency between the network…
Hi @krtrader we've raised this with AWS again. Since you are also in AWS network, suggest you also raise a ticket with them comparing the ping time and traceroute to api.kite.trade from your local and from your AWS instance. What is the instance typ…
Hi @Srik
Can you share the code for websocket issue?
To cancel regular order using python client, you can just do this:
kite.order_cancel(order_id)
Please refer this documentation about order cancelling:
https://kite.trade/docs/connect/v1/#canc…
Code 1.
You should be printing response.text. Not response object
Code 2.
The instrument token 53287175 is invalid. I tried with a valid token and it works fine. Please retry again
Hi TRADERAYS,
The response you have pasted here is retrieving one single order using GET request.
https://kite.trade/docs/connect/v1/#retrieving-orders
The postback structure has always been the one in the documentation.
https://kite.trade/docs/…
Hi @TRADERAYS ,
I just tested the postback and got following response, and it does contain order_id. Is it happening still at your end?
{
"order_id": "xxxx",
"exchange_order_id": "",
"order_timestamp": "2017-07-07 10:41:03",
"exchange_timestamp…
There are dependencies ("requests", "six", "websocket-client"). If its all met, you can directly put the kiteconnect code instead of pip install and use it. You can test it by cloning the code from https://github.com/rainmattertech/pykiteconnect
Hi @skk
Python3.4 seems to be really old, can you try with Python3.5+ ? I tried with python3.5 and python3.6 and could not reproduce this issue and was getting right response for kite.orders()
Hi traderx,
I just tried kite.orders() and it worked for me. Looks like 403 error for you which is session expired. Were you logged in to any other platform like pi or nest?
@sandeep since its angular specific issue, I wouldn't be able to help in this regard. but we'll keep this thread unclosed to see if any other angular developer in the forum can help you
Thanks
Hi @sandeep
The below code works, was just now tested:
https://gist.github.com/vishnus/86d43defc7df2a30064c174e206687ad
I've used the same trading symbol and quantity like you have given.
Hi @vvijay,
If you run a server you can point the redirect URL to it and server can parse the URL however it wants. For python you can see this link to know more about how to parse URL components: https://docs.python.org/3/library/urllib.parse.ht…
@kapilaggr Its difficult to give an accurate analysis, but I think it could be the pip / python config issue. Kiteconnect library works fine with the same version of python as you have mentioned (3.6)
You could try removing and reinstalling python…
Hi @kapilaggr
We replicated your environment and was able to install and import kiteconnect. Can you try in a different system? Please find the screenshot here:
http://imgur.com/a/458wU
Hi @jyothish
Please refer to the Java documentation: https://kite.trade/docs/javakiteconnect/
All the methods and its arguments are explained well there.
For requestAccessToken, it takes two parameters:
1. requestToken - received from login pro…
Hi @rajeshbadiye ,
1. Yes you need to have your own page if you need to accept the values from users. You can generate your own custom buttons based on user input. Or else you can always display buttons with hardcoded values like in the examples. U…
@premkumar
Hi Premkumar,
You can build something like a chrome extension / firefox plugin that can inject the kite publisher buttons to any website you wish. We have our official Kite Chrome extension that does similarly on websites like NSE, Goo…
Hi Sowmay,
The way Kite publisher baskets is supposed to work is, you curate the list from your side and finally push it to the kite publisher basket. So from your end, you let the client add / remove whichever scrips they want to trade and only th…
Hi Sourabh,
For your given scenario, you should not be using an order basket. You should be using individual scrip buy/sell buttons. So you just pass the scrip name to the parameter data-tradingsymbol. Please refer to
https://kite.trade/docs/connec…
Hi Madhusudhan,
I just tried with the same URL and it works fine for me. Can you regenerate access token and try again?
PS: Access token has a validity of one day only.
Thanks
@Mohit
Hi Mohit,
Can you confirm if you have pip installed?
If not, please install it as instructed in this page: https://pip.pypa.io/en/stable/installing/
Post that, try to install kiteconnect again.
Thanks
@ankur07090 Hi Ankur, Welcome to Kite developer forum.
You can use C# or Java or any language for that matter to build Kite connect apps. You can find the documentation on how to use the APIs at https://kite.trade/docs/connect/v1/
If you are lo…