After two order placement, my application (python script) will be running every second to check whether first order executed or not.
I just need api command to cancel second order if first got executed. And also want to know how to check order…
@rakeshr ,
Hi,
Could you please let me know how to put socket data for multiple stocks in particular manner so that same can be used for generating candle sticks?
Below code is for one stock and generating tick data in 10.txt file. Now I want multi…
@zartimus ,
Thank you for the response.
Could you please provide code without ws.stop() ? because when I remove the same, python is showing error.
Just last four five lines please.
Thanks in advance.
How to get difference of last two tick data in python?
Say I subscribe for reliance and value of first tick is 1000 and second is 1001.now I want to get difference of these two.i.e. 1001-1000=1.
What formula to put to get difference?
It's not related to coding. Coding is correct & I have already done the same. Query is related to kiteTicker/websocket. Request you to review and provide solution.
attached please find code and output.
My requirement is to check stock price at every second and if price is reached at certain level, I want to go with buy or sell.
If I dont use while loop and without ws.close(), kiteticker does not allow me do …
I got the location for ws.close(). Please find attached script.
Now one more issue, while using while loop, at every one second tick data is not being produced. refer output of script also.
Pls help.
response=requests.get("https://api.kite.trade/orders/180409001794998?v=3&api_key=XXX:access_token=XXX")
With above, I am getting following error: Response[403]
Sir,
I am not much expert in coding and reading/interpreting documentation.
Can you please give me single line python code for checking order status when order_id is known.
For example my order_id is 180408000002439.
It will be great help if you p…
If i generate access token between 7:00 am to 7:30 am, will it work for complete day?
I am doing job and its difficult for me to generate token after 8:30 am.
please provide solution.
You informed:
"This weekend there was a mock and BOD for mock is different. We will inform OMS team to look into this."
But problem remains same last Monday.
@zartimus
Thank you for the clarity.
One more time, I will disturb you to clarify & get corrected below, if required:
I put one bracket order which is yet to be executed & it is pending in order book. Now to cancel this pending order, my c…
thanks for your response.
say I have 5 order_id and 2 parent_id. In that case my coding will be:
orders=kite.orders()
orders[0]['order_id']
orders[1]['order_id']
orders[2]['order_id']
orders[3]['order_id']
orders[4]['order_id']
orders[0]['parent_o…
I run following on python:
orders=kite.orders()
kite.cancel_order('bo',order_id=order['order_id'],parent_order_id=order['parent_order_id'])
kite.exit_order('bo',order_id=order['order_id'],parent_order_id=parent_order_id)
I got following error:
(ki…
cancel_order=kite.cancel_order('bo',order_id=order['order_id'],parent_order_id=order['parent_order_id'])
exit_order=kite.exit_order(self,'bo',order_id=order['order_id'],parent_order_id=parent_order_id)
Any change in above is required?
For fetching orders and cancelling/exit orders, I could code below for python:
#For fetching orders:
orders=kite.orders()
#First Option for exiting/cancelling orders:
cancel_order=kite.cancel_order('bo',order_id=order['order_id'],parent_order_id=o…
1. import logging
2. from kiteconnect import KiteConnect
3. logging.basicConfig(level=logging.DEBUG)
4. kite = KiteConnect(api_key="my api key")
# my request token from "https://kite.trade/connect/login?api_key=xxxxx&v=3" and login.
5. data = ki…
does access and request token are different?
"https://kite.trade/?status=success&request_token=zhemy8jkwdp8dkedj3jgq3uaor7od8qt"
I am using above request token as access token in python coding.
If access and request token is not same. let me k…
Dear Sujith,
For your information, I am running below python coding when I get above problem: let me know any issue of coding in that.
from kiteconnect import KiteConnect
api_key=open('api_key.txt','r').read()
api_secret=open('api_secret.txt','r')…
I generated new access token 2 mins back and still getting same below problem while running python coding.
(kite3) 01:22 ~/tisha $ python kite3.py
Traceback (most recent call last):
File "kite3.py", line 6, in
print(kite.ltp("NSE:INFY"))
F…