Hi @naz,
We tried for 120 symbols and after 30 min all the three connections were intact. I am not sure why it is happening in your case. I think once we release reconnection for python client you can use it.
Hi @revanth1425,
You can fetch orderbook and filter all pending orders.
All orders whose status are not CANCELLED, REJECTED, or COMPLETE are considered as pending and you can place cancel request on all these orders.
Hi @ramatius,
The same margins API is used by Kite. Net will display the correct value.
Can you private message request url and response? We will look into this.
Hi @ramatius,
Net will have a list of overnight positions. If it is empty, it means you don't have overnight positions.
Can you be more specific about m2m field? There is no field as m2m_unrealised in positions.
Hi @Sowmay,
This scrip is blocked by our RMS for trading in product type MIS because it is illiquid scrip. We don't have API for this. You can check list of scrips that are blocked in MIS trading in Utilities section of this page.
However, you can…
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.
Hi @skk,
You need to send order_variety while canceling bracket order as mentioned here.
This was a special scenario, Hence admin had to square off position using MIS product type in post-market session.
Hi @arnavsaxena,
All http requests are limited to 3 requests per second. If you exceed the limit then your will request will fail with error 'too many requests' and code 429.
Hi @arnavsaxena,
I think this is happening if we set mode to full for any of the above scrips. We will look into this and apply patch soon.
All these ticks have same values. For now, the feasible solution would be to check previous tick values and c…
Hi @Srik,
Once you get access_token, it will be valid till next trading session.
We don't have an endpoint to check whether access_token is valid or not. Whenever you make an API call, you will get 403 or token expired when your session is expired.
…
Hi @Srik,
Once you subscribe for a token you keep getting data whenever there is a change in live data.
For more information, please take a look at documentation.
@Sowmay,
You can only subscribe for live data using instrument token, for more information please take a look at documentation here https://kite.trade/docs/connect/v1/#streaming-websocket
Hi @gautam_s60,
In the above code, it seems like you are connecting again but not subscribing for tokens.
The problem with this approach is onerror or onclose will not be triggered when there is a network connection drop or abrupt change in the net…
Hi @gautam_s60,
Reconnection is not yet available on pykiteconnect. We will release it soon.
Please make a gist of code or use code tag available in format option so that it will be readable.
I guess above code is not complete, Can you paste comple…
@pranksterguru,
Websocket underlying protocol includes a ping pong mechanism and Kite ticker conforms to same protocol and it sends heartbeat ping every second if it is connected.
Hi @rama,
We are working on https://kite.trade/forum/discussion/943/update-revamping-of-core-api-infrastructure right now. We can't guarantee any timeline.
You will get cached tick first and you will get second tick only if it is being trade…
Hi @MadhuSingh,
This forum is for KiteConnect related queries only.
Please write to support for issues related to other platforms.
There was some issue with back office because of which for some clients holdings is not displayed properly. I…
Hi,
All handling is on client side.
There is a timer task running every second to check last tick arrived time. If difference between current time and last tick arrived time is more than user specified time interval then it will reconnect.
You…
Hi @rama,
This could be because of caching. Kite Ticker stores one last tick.
Caching is done so that users can get data even after market hours.
You might have looked at previous day's tick.
In future, we are planning to send time stamp with the …
Hi @jravi96,
Packet structure for NSE indices is as follows,
0-4 will be metadata(token)
4-8 will be last_price
8-12 will be high
12-16 will be low
16-20 will be open
20-24 will be close
24-28 will be change
For more information about parsing bina…
Hi @divyakumar,
Can you assign on_error and on_disconnect and check logs?
Please make sure, you are using api_key of your kite connect app (test01_apr2017) and use same client id that you have used to create the App.
For more information check out …
Hi @algotrader29,
We don't get notified from the exchange on which segment a scrip is being traded. The only way to find out is from CSV file provided by the exchange here.
An alternate solution I would suggest is you can subscribe to all the scrip…
@MadhuSingh,
access_token is for API authentication, Hence it is for one Zerodha client.
access_tokens are flushed every day between 7:00 AM to 8:00 AM. It is recommended to get access_token at or after 8:30 AM.
For monitoring, use Kite and not NEST…
Hi @revanth1425,
Kite web also uses the same ticker and if close price becomes zero then change will be 100%.
We haven't got any complaints about this.
Can you be more specific regrding the issue?
Hi @MadhuSingh,
Once you get access_token, it is valid for one whole day. You don't have to request for access_token every time you run your script.
Once you get access_token store it and reuse it when you run script next time.
You need to get requ…
Hi @MadhuSingh,
It is not recommended to automate login as it is mandatory by the exchange that user has to log in manually at least once a day.
You have to log in on the browser to get a request token.
Hi @ruchanavjyot1907,
It looks like you are sending invalid checksum. checksum includes api_key + request_token + api_secret. Please check if all these values are correct.
Hi @carl,
In order to fetch historical data, you need to use access_token which you will get only after you create an app.
You will have to subscribe for Kite Connect and buy add-on subscription for historical data.
Hi @keshav,
You should check out stoploss market order. Once your trigger price is hit a market order is placed.
For more information check out
http://zerodha.com/z-connect/tradezerodha/zerodha-trader-software-version/stop-loss-orders-limit-market
Hi @RamakrishnaG,
You need to make a post request for the access token and request token, api_key and api_secret must be hashed while sending as params. Please take a look at python code to know more about it.
@keshav,
This is how the system works. It will be directly proportional to volatility.
You can also use SLM order wherein, once trigger is hit a market order will be placed.
One of the advantages of MIS position is that RMS will square off at marke…
Hi @carl,
We only provide data to our clients and it is available as json only. You can check documentation https://kite.trade/docs/connect/v1/#historical-data
Hi @keshav,
Orders are being executed at exchange in FIFO manner. Consider a scenario, you placed an order at price limit price 100 and it reaches Exchange at 9:16 AM and there is one more order with same price at it came to exchange at 9:15AM.
…
Hi @Santosh,
This means that after index 2+2+44+4+4 = 56 i.e. starting at 57 and spanning 4 bytes I should get "number of orders" for topmost bid.
Orders are 2 bytes. So span only 2 bytes.
Parsing depth is something like this,
Depth depth = new Dep…
Hi @rhishikeshagashe,
Kite Connect is just an execution platform, we don't provide support for writing strategies.
You can check Kite ticker usage example here.
Hi @joy,
As you know, it is the log of all the states that an order undergoes in the system.
It might be a intermediate state, as you can see initially it is 50 and again it comes back to 49.
To avoid confusion, it shouldn't have logged that state …
Hi @Sowmay,
Please don't bombard the server with unnecessary requests.
If you log in once in morning, you will stay logged in till next trading session.
The only reason you might be logged out is because you logged into any of our other trading pla…
Hi @arnavsaxena,
Websockets that is available in Kite Connect is being used in Kite Web also. We didn't get any complaints regarding this. I am not sure why your connection keeps dropping.
Maybe some stacktrace will be helpful. As per our ticker log…
Hi @joy,
In this scenario, OMS didn't notify us that user has logged out.
So in Kite, you are logged in and while placing order internally OMS checks and rejects the order.
We will fix it in future.
For now, I would suggest using the kite for monito…
@naz,
I didn't mean you have to stream for all scrips available on an exchange. I meant if you want to trade RELIANCE then subscribe for RELIANCE-BE, RELIANCE-BL, and others.
Hi @Sowmay,
Instead of printing e, try printing error.response.
It should look somethinng like this,
{ status: 'error',
message: 'Missing access_token',
error_type: 'InputException' }
Hi @chimirala,
Websockets will only give you live ticks, you will have to store ticks at your end and build data.
Please take a look at this thread for more information about building 1minute candle data.
Basically, you will have to do the same thi…
@kivijoshi,
Once you place counter order and square off position. The position will still be on the list but quantity will be 0.
Basically, if you have a long position then it will show quantity as the positive value and if you have a short position…
Hi @Sowmay,
Previous day orders is not a part of the trading platform. It is part of the backoffice. As of now, we won't be able to provide it.
We are building new backoffice, once it is up and running we have plans of giving it out as API.
Hi @gully,
1. We haven't changed vendors, we still use TR. We have almost changed the entire backend that was driving kite connect. We will have the complete kite 3.0 in the next 4 to 6 weeks. No impact on your code, the entire experience especiall…
Hi @naz,
We don't get notified from the exchange on which segment a scrip is being traded. Only way to find out is from CSV file provided by exchange here.
An alternate solution I would suggest is you can subscribe to all the scrips in different se…
Hi @Santosh,
You get binary data in websocket. Please take a look at documentation for more details about packet structue.
For more details about parsing, you can take a look at any Kite Connect client code.
We are doing parsing for you. You can us…
Hi @Sowmay,
You can get OHLC data in Historical data API. Please take a look at documentation.
Historic order details of transactions (i.e. data which we can see in our trade-book).
Are you refering to previous day orders?
@fury1984,
We had issues that day and it was fixed.
We have reduced timeout on all API calls, you might have encountered the same.
The above stacktrace also refers to the same, we will increase the timeout interval.
Hi @conquistadorjd,
1. Historical data subscription is Rs2000 per month. It is fixed and not based on usage.
2. You can get minute data for 8 to 10 months for equity and day's data till 2005 for NSE and 2008 for BSE.
3. Currently, we don't have time…
Hi @Sowmay,
margin: 0 means for CNC orders, we provide 0 margins.
Margins on cover order ranges between the lower and upper level based on the stop-loss you set. In this case between 3 to 16.5 times.
So if you have Rs 100, you can buy 3M for betwee…
Hi @guna,
After login, the user will be redirected to redirect_url that was specified while creating KiteConnect App.
Please make sure you have specified https URL.