@atibrewal
What is the exception?
Are you assigning correct access_token and secret_key in generate_session?
Refer this doc to know, about the complete authentication flow.
@saurabh3679
You can add try except block something like this.You can also go through this python documentation.
try:
Your_logic_here
except ReadTimeout:
pass
@saurabh3679
1 . timeout exception (yet to find a robust solution)
You can handle Time-out exception at your end and re-check the scenerio and then perform the logic again.
2. once it a while script places two orders (whereas it should place only o…
@razcads
'guid' should be present for any successful order placement.Can you give us more detail of all order params including order time?
Possibly paste a complete order log here.
@Aakash369
Does this ConnectionError happens for all the order book fetch requests made between specified time or only few requests are failing?
In case of ConnectionError, you can handle the exception at your end and retry the same request again.
@cjs
You can pass max of 3000 instruments per WebSocket connection.
You can send instrument token as a positive integer.
eg.
ws.subscribe(list_of_instrument_token)
@dharmaraj81
also crudeoil chat timing also i am not understanding.. pls refere the screenshot of today ( 27-11-2019, exactly 10:48, market moving now, but it showing yesterday date, pls check and let me know about this timing issue
Are you using a…
@sovan_nit
DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /session/token HTTP/1.1" 200 None
Above debug log is not an error, you need to make POST request to /session/token to get access_token, to be used further.You can look this do…
@dharmaraj81
We rechecked historical data for CRUDEOIL DEC FUT now but couldn't find any discrepancy either in OHLCV data or timestamp.
Do let us know if you face it again.
@abhaypatil
As you are already login to kite web, in the same browser. So, login status is shown as a success. And post successful login, you will be re-directed to Redirect URL you have mentioned in kite connect developer dashboard.
@bondre
Yeah, the above flow of combining publisher and connect APIs is possible. For multiple user access you need to write to us at talk(at)rainmatter.com with details about your platform flow.
@dharmaraj81
You can increase square-off value to bit higher,as your pending buy order and squareoff/target price seem to be achieved at the same time making you buyer and seller at the same time/self trading.
@MW5790
Are u suggesting that each invocation of onTicks that happens automatically through the ticks event is not actually on a queue?
Yeah, logic in onTick event doesn't execute in the queue.
if my logic takes say 10 seconds, the entire program…
@prabhatpam
Can you once check your holdings on kite web?
If not showing there means, your POA doesn't seem to be updated.You can write it here in that case.
@kapilaggr
You seems to be blocking on_ticks thread. You need to pass on all computations inlcuding condition statements to a different thread, without blocking on_tick method.You can check example here.
@ayush_singh0610
After a successful login, you will be re-directed to Redirect URL that you have mentioned in connect developer dashboard.
As you have mentioned https://kite.zerodha.com/, and you are already login in a same browser session, so it's…
@Vishesh
I have tried placing with variety as "nrml" but it got rejected. (MIS/BO/CO options are blocked for this instrument, try with cnc/nrml . Instrument was NFO:ITC19NOV255PE
product will be NRML and variety will be regular.
You can go through …
@Prakashpandey
Are you talking about Amibroker?
As Amibroker client library is not from our side, we won't able to assist you regarding the same.
You can check here the list of all kite connect official libraries.
@resilientrohit98
kiteconnect.exceptions.InputException: interval exceeds limit: 60 days
This exceptions is raised before the day limit was not set you people are charging us 2000 per month atleast give 5 year limit .
We do provide minute data for …
@MW5790
When I follow then login flow to get a request token to use in the Client API, I am then redirected to either a different URL OR back to login screen of Kite.
Are you entering same client as you have mentioned in the connect developer's das…
@Dileep
No,there is no API to add items on kite web market watch, you need to do it manually by login separately to Kite web.
Kite Connect is purely an order execution platform. It can't be used for any UI related queries.
@himanjim
As stated by sujith above,it can happen during first few minutes as tens of thousands of AMOs being send at market open.We assure you that, we are working on this to bring it down to the minimum.
@r2k1984
Order placement API is working fine.
Are you sending correct param for Order placement?
Can you paste complete order param you are sending for order placement along with a debugging log?
@y_sravan
kite.exit_order(data['product'], order_id=data['order_id'], parent_order_id=data['parent_order_id'])
Can you print all param you are sending to exit_order method, and manually check, if you are sending it correct?
@dharmaraj81
but my problem is, all tick have same ohlc data
OHLC is always shown for the whole day in Websocket streaming.
Tick data means market data that shows price and volume at every print, it also data about change to the best bid and ask. S…
@dharmaraj81
i recently subscribe for historical data, but still i am getting ohlc data with wrong, it delivering that day opening price, low price, high price, and close price only. it will be same in all tick data.
Historical data is used to fetc…
@ashishjindal89
For DEC nifty options, it with D eg. NIFTY19D1210500CE,as stated above.You can check complete trading symbol and instrument token here.
Also for nifty bank, index name is "Nifty bank" but options have "BANKNIFTY".
Yeah,all these are…
@ravibelkhindi
Make sure you are defining kite publisher js reference before the scrip execution so that when script loads it can find all `kite-button` components and render accordingly.
@MW5790
Yeah, you can use Websocket postback APIs to get order update status(including order completed).
Ex. You can execute the required use case post receiving COMPLETED order status from postback.
@piyush071988
You can use Websocket Streaming to get live tick for above contract, refer this documentation.
Or make Quote API call every minute/any time frame you required, refer to this documentation.
@meeashok
We checked for above scrips for the mentioned time,it has gone through Spin off corporate action.
And we adjust only for split and bonus corporate action.
@vgpatil333
i placed market order first and then i want to modify limit on that same order.
You can't modify the market order, it gets executed as you place the order at CMP(current market price).
when i modify order the order get placed but limit …
@okalex
If you are fetching instrument_token for option and futures contracts.Then you can fetch it every expiry, as previous instrument_token will be allocated to a fresh new contract.
And if you are fetching instrument_token just for EQ contract …
@okalex
Yeah, you can fetch ltp post-market from the last cached tick. But, it won't be streaming, you will just get the initial tick post subscription.
@krishmetra
No, we didn't have any issue at above mentioned time.
Can you paste complete debug log or error/execption, that you got during above period?
@rohitva
We don't have individual APIs to fetch the option chain for any contract.You can loop through all the required contract/strike , fetch its OI value and form the option chain at your end.
@ashishjindal89
You can get complete trading instrument(including weekly nifty option) from complete instrument_dump.
I also checked that the trading symbol sometimes doesn't match the general pattern e.g NIFTY19N0711500CE is being used for 7th nov…
@y_sravan
can we subscribe in on_order_update?
Yes, you can subscribe in on_order_update.
Your python code for subscribing token in on_order_update method is correct.
Are you assigning all the callbacks properly? Can you paste complete Websocket c…
@saurabh3679
You need to pass a trading symbol as mentioned in this instrument dump to place orde instead of instrument code.
Check this documentation for all order placement params.
@harshtock
For Futures, trading symbol will be symbol(INFY)year(19)month(OCT)FUT.
For Options, trading symbol will be symbol(INFY)year(19)month(OCT)strike(650)type(CE/PE).
You can check the complete F&O trading instruments list here.
@zuser
Exit_order is used for exiting BO and CO orders. For exiting regular order, you need to place a fresh SELL order using place_order, with transaction_type as SELL and other param as required.
@kapilaggr
In Websocket Streaming, new ticks for instruments are only received if there is a change in any of the WebSocket field. Suppose, you have subscribed to 100 trading instruments and it can happen that tick change has taken place for just 5…
@MandulaPrithvi
After subscribing to instrument on WebSocket connection,first tick received contains tick data from all subscribed instrument but subsequent ticks are only received if there is change in of the field of WebSocket packet.
@Rajkamal
You can fetch instruments dump once in start of a day and then map it accordingly to fetch instrument_id for required contract(50+FO contract) and then use it throughout a day.
@Rajkamal
Instrument id '128104964' is for BSE:ACC and for NSE:ACC instrument is 5633.
128104964,500410,ACC,ACC,0.0,,0.0,0.05,1,EQ,BSE,BSE
You are passing BSE:ACC instrument_id to fetch historical_data but looking to NSE:ACC chart on kite web.
@ansubur
Secret key along with api_key and request_token is used to obtain an access_token, which is then used for signing all subsequent API requests.
You can get Secret key by login to developer account below the API key.
@sbdavra
You will get lower_circuit_limit and upper_circuit_limit in Quote call API.
Response for ['NSE:SBIN'] from Quote call includes both circuit limit data as shown below:
{'NSE:SBIN': {'instrument_token': 779521, 'timestamp': datetime.datetime…
@r2k1984
Can you let us know the issue in detail? Possibly paste the debug log here.
Are you not able to download any specific instrument data or issue in fetching data for all instrument?
@deadlock
Shouldn't the kite.instruments() call, download the instruments.gz file? Is the file name different and where is it downloaded?
Python client complete instrument fetch(kite.instruments()) returns nested list data structure() converted fro…
@deadlock
Instrument list returned from kite.instruments() is gzipped CSV dump, check this documentation.You can iterate over complete instrument dump and store required items(trading symbol, expiry, exchange, segment, etc).
@rajeshthattikonda
You need to remove kws.is_connected() before kws.connect() and use it in different thread to know the websocket connection status, it returns boolean( True or False).
You can check an example here.
@PJ_2018
Although, the ws.close and ws.stop are commented out in the above code but if they are used inside on_close, would it stop websocket from trying to reconnect.
Yeah, ws.stop() will terminate Websocket connection along with error message. So…
@PJ_2018
We don't close the Websocket streaming at our end.
Websocket streaming connection will be closed if you are blocking the on_tick method by performing any calculation/activity inside.So, make sure that you offload all calculation to another…
@joshiisaurabh
Yeah, live MCX data is available with Streaming WebSocket connection.
or it's Future data.
You mean historical/past data or MCX futures's contract data?