thanks for the response @SRIJAN , tried with available formula and code snippets but not matching with Sansibull, any inputs or python code snippets for calculations ?
@SRIJAN thanks for quick response. This code used to work fine till yesterday.
@sujith @rakeshr plz help me by taking this as priority, my system failing because of this, causing critical issues.
@SRIJAN i swa your response here ( https://kite.trade/forum/discussion/comment/36572/#Comment_36572 ) .
in my case, placed order at 10:46:39, LTP at 10:46 is around 505 and my trigger_price is 501 and order_type = SELL. meeting all conditions.
a…
@sujith @rakeshr @kiteconnect
1. How to identify T2T stocks using API? (I believe instrument_type =="BE" but i don't see any stocks like that).
2. Does kite API returns only non BE stocks with kite.instruments('NSE')?
Is there any workaround?
Is there any way i can get yesterday's closing price of a stock? I can save day's closing price and refer but looking for optimized way (instead of saving all stocks closing price everyday and reading back).
@rakeshr @sujith @SRIJAN as per the documentation, variable "net_change" from trade/quote should hold "The absolute change from yesterday's close to last traded price". However i'm getting always 0. Can you check from your end?.
I need change % of…
Thanks for the response @rakeshr, i tried both options reaching same error as earlier, cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)"(https://kite.trade/forum/discussion/10788/import-kiteconnect-in-aws-lambda…
I am trying to get and save LTP in AWS with Python. But facing challenges while importing kiteconnect package ( https://kite.trade/forum/discussion/10788/import-kiteconnect-in-aws-lambda#latest ). as a result not able to use Websockets.
Any way i c…
@rakeshr thanks for the response, i followed the same flow but connection rejected with 1006.
2021-10-28 13:39:41,145 - kiteconnect.ticker - ERROR - Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without pr…
@rakeshr @sujith I followed the suggestions but still it is stopping after few ticks. Could you suggest if i miss anything.
update_flg = True
conn_prod = config.aws_connect('prod')
def update_ltp(tick):
global conn_prod, update_flg, ltp_p…
@rakeshr Thanks for the response.
1. I placed order through API.
2. url looks fine for me.
3. Based on my understanding modified the code a little, will this work or am i missing anything?
@app.route('/test-postback', methods=['POST'])
def get_zer…
@sujith @rakeshr i tried to save 'TATAMOTOTS' on_tick but it is getting disconnect. This is one of the scenarios. Here is my code. Can you help me if any issue with code or websocket.
kws = KiteTicker(api_key, acc_code)
mapInsdf = pd.read_csv('mapI…
Thanks for the response @sujith. I tried to capture from query parameters as well but nothing captured.
def get_request_token():
a = request.args.get('request_token')
print('request_token', a)
return "Success"
Not sure if …
@sujith thanks for the response.
1. My point is If I place a order with disclosed quantity, does system considers one order or multiple?
2. If multiple, are all orders independent or one orderID acts as parent rest are child?
3. If I place an ord…
@sujith i'm also facing same, what is the max delay we can expect for OMS update (i will wait till the time)? bcz my logic depends on this and it is failing.
@sujith my intention is to maintain exact state after new/re connection (connection closes if max reconnection attempts reached).
Since i'm new to websocket concept and if i make any mistake will impact badly, so looking for reference code/project.
@sujith and all, almost all websocket syntax/examples are talking till ticker.connect() but i want to close and reinitiate based on my strategy, without hurting the environment. There must be some way as people already using it but not able to find,…
@sujith , i tried in Pycharm IDE, here upon closing the connection terminal becoming inactive.
(i have to restart for each run).
Connection closed: None - None
Process finished with exit code 0.
Am i doing anything wrong or Websocket works with co…
I am selecting API parameters as per zerodha manual trade. Please find attached screenshot.
I am going to use below code snippet for placing a buy order, stop loss and target price. Could you verify and feel free to correct if anything wrong (I'm …