Getting constant 50.05 after a certain time for the last day.
Didn't get you?
Where you getting all OHLC values (4 fields) as constant 50.05 for the given period? Was the volume field zero?
Better, if you can paste the complete historical data log …
kite.exit_order(variety, order_id= 12345)
exit_order is used for exit only CO orders, not normal orders.
For a normal sell order, you need to place a sell order with the required tag, that you want.
There are no direct APIs to cancel another pending stop-loss/target order once, GTT is satisfied or vice-versa.
You will have to do this other order cancelation at your end for open orders/GTT.
@ganeshv02
Were you having any open orders?
Margin calculation considers open positions and open orders as well to calculate the final margin. You can check documentation here.
Exception "The given key was not present in the dictionary"
This is a generic exception, you need to give us a detailed error trace.
You can enable debug logs, as below:
Kite kite = new Kite(MyAPIKey, Debug: true);
It means I should not receive this candle in historical data until 02:15 PM.
No, you will start receiving the candle data post 01:15 PM i.e these candles are still forming/live, not yet completed. So, if you query the 01:15 PM hour candle multiple t…
@samphel
but when i'm retrieving the price i'm getting two prices. So how to get the latest entry price.
Are you filtering the above order detail from the complete order book history API?
If yes, then you can know about the latest entry order from …
Can you let us know more about this, so we can debug further?
Maybe paste complete contract detail along with debug log.
You need to give us more detail on this as asked above. Timings, the contract detail, etc. So, we can further check logs.
@Rajneesh_12
Is this the correct way?
Yes, this is correct request for OCO GTT.
Also, make sure you are setting up correct transaction_type here "transaction_type": kite.TRANSACTION_TYPE_BUY. If you are looking for sell exit, transaction_type sho…
@sbdavra
We haven't encountered any known issue in feeds. Can you let us know more about this, so we can debug further?
Maybe paste complete contract detail along with debug log.
are you sure about this?
Yes, that's how we form the candle.
Because if this is the case then Zerodha's 3:15 PM candle data should match with other vendor's 3:30 PM data.
No, values can differ between two different charting platforms. Go through th…
@pandithurai
we get request_token in the URL after login. I hope this is the access token
No, request_token is different than access_token. You need to use request_token along with api_secret and api_key to generate access_token. Go through this do…
@pavanvora
Is it like the instrument_token value changes on a random day or how does that works?
Generally for equity contracts, instrument token won't change until there is corporate action. But instrument token for expired F&O contracts can b…
@shivdas_b
You seem to be comparing Websocket data(Market depth) with chart candle. You can go through this thread to know the reason behind the difference.
how I will get the data between 3:15 PM to 3:30 PM?
You are missing the candle formation logic. The first hourly candle of 9:15 AM is formed for the period between 09:15 AM to 10:14:59 AM. So, 3:15 PM candle is formed for the last period between 3:1…
I'll have to refetch the instrument list the next day because you said the instrument token will be unique for the day?
Yes, you need to re-fetch the instrument tokens on each trading day.
@infoankit10
found that the last data candle (after 3:15 PM) is missing for all days
For hourly candle, 3:15 PM will be start candle(as market closes at 3:30 PM for equity market).
The first candle will be at market start i.e 9:15 AM and then an ho…
@DS4769
Can you confirm that you do not provide expired options data?
Yes, we don't have continuous historical data for an expired option contract.
Is there an easy way to get the options chain for a scrip? I know you can get it from instruments da…
@Srikrishna_Rowthu
Is there any timeline for the same?
Currently, it's not in our list.
As of now, for intraday data (such as 5 min) of expired contracts data, can you suggest me any website names?
Maybe you can contract any of the nse authorized d…
If not, then you need to check if you are sending the same trigger_price is modify order as well.
You need to check into this if you are sending the correct modify price. Maybe print trigger_price and modify trigger_price and debug it.
@Arulmuruga
NRML 0 / 75 126.90 0.00 / 30.00 trg. TRIGGER PENDING
Is this not the update trigger_price in orderbook?
If not, then you need to check if you are sending the same trigger_price is modify order as well.
We just checked the same scenario…
i am considering tick onwards 0th second to 59th second
This logic is correct for minute candle.
You need to re-check if you are capturing and processing all ticks properly. You can go through this thread to know more.
@Arulmuruga
My modify orders are still not working .I see the time being updated once the request is sent but the order properties are not changing
We are not able to understand your issue here. Do you mean, postback status for SL-M order modificat…
@pavanvora
I was wondering if I can also fetch the Historical order book data
You can only get today's order book data, not historical order book data.
@akshay07
Are you performing any computation inside the on_tick method?
A similar query is answered under Websocket streaming FAQs, you can go through that here.
@rvsw
Is there a simple way to download the options data for all the strike prices of a given instrument?
Maybe you can try out this open python package for the option chain. It uses a combination of symbol and expiry date to fetch option data for…
@kiteapi
I understand there is NO one API that can be called to fetch Option Chain for a Symbol/Expiry combination
Maybe you can try this open python package for the option chain. It uses a combination request of symbol and expiry.
@pruthvik
What should i use after except to except only above error.?
"MIS / BO / CO orders are blocked. Try using CNC or NRML."
Above exception is InputException. You can go through this documentation to know about all kiteconnect exception.
You …
Does that mean that if one has multiple apps, they will have a higher all overall cumulative rate limit across all apps?
So If one has three apps, will it be 2000 orders per app/API_KEY?
Yes, each unique api_key has a specific limit.
@yeshwanth
Is 1-minute historical data for Nifty weekly options available?
Do you mean historical data for an expired weekly contract? or running/live ones?
For expired option contracts, we don't have continuous data. It's available only for future…
I am not able to get data for old closed trades, like previous week or previous month, is there a way to fetch those?
No, currently we don't have these APIs.
Or is there a way to get PNL report for the account from a desired period?
No. You can only…
kite.request_access_token('request_access_token_data', api_secret)
Instead of request_access_token, it should be generate_session.
Go through this example to know more.
@rahul582
So are the instrument_tokens re-used by Kite/Zerodha again and again for other instruments ??
Yes, but it's not by Zerodha but by an exchange. The exchange re-uses an exchange token when an instrument expires. So, we recommend users to fe…
@omtechnologies
As stated in the documentation, you will get a tag field when the order book is retrieved. So, in order to get Tag field, you need to either use getOrders or getOrderHistory method call for PHP client.
So if I want a stop loss of 1% and a target of 3%, I must take the LTP and multiple it by 0.01 or 0.03 and modulus it by the tick size right?
Yes, and also make sure it's not exceeding the circuit limit.
Kiteconnect official PHP client doesn't support WebSocket streaming. Either you can use another official client(which has an inbuilt WebSocket) or you can use any 3rd party Websocket library.
@Vipul7779
time_frame : 1minute
Instead of 1minute, it should just be minute. Go through this documentation, to know all valid historical data intervals.
Can I get average traded price from the exchange end or we need to calculate the VWAP on a minute basis ?
You can get it from Websocket Streaming. Check field details in this documentation.
@sauravnandi
You might be looking for the wrong contract data.
Token- 11151362 is Finnifty 04th Feb Weekly expiry contract. FINNIFTY2120414900CE
Token - 11150594 is FINNIFTY2120414700PE
So, re-check if you are checking for right contract.
calling historical data will not match to current live data?
Yes, differences may exist.
is there any other way to generate my own candle more accurately?
Either you can try building a candle at your end (this thread details more) or fetch a candle …
You can retrieve complete instrument list using instrument method for python client, check the method detail here. Go through this documentation to know more.
"checksum=sha256( api_key + access token + api secret )"
You are using wrong param for checksum. Instead of access_token, it should be request_token. Go through the documentation here.
@Srikrishna_Rowthu
So, my question is, there is a field called "name" in the "Instrument" class.For FNO stocks, can i proceed expecting "name" field matches with NSE stock symbol?
Yes, you can use name field to match both NSE and NFO instruments, a…
@yeshwanth
You mean to say get the buy price from kite.positions once and then get LTP of each and calculate at my end?
Yes, and get live streaming LTP from Websocket Streaming.
LTP will be coming live right?
Yes, Websocket streaming relays live t…
i have subscribed for historical data as well, when i fetch data using historical api so it is showing different current data than Pi chart data
Do you mean historical API real-time candle OHLC is not matching with PI chart live candle?
It won't mat…
@prateek3211
Currently I have to login & check on console, is there a way where I can populate this data in my database by hitting an api.
No, currently we don't have this. You need to check this manually at your end.
@smhargude
Is there a need daily basis to do the above procedure for accessing Kite Connect API's?
Yes, you need to perform this daily whole flow once and then store access_token at your end. And then use the same access_token for all subsciquent r…
@mijanur
We don't assist on coding. getMargins() call is working absolutely fine at our end. It's printing the desired response per output structure. You need to check your code.
function init() {
// Fetch complete margins.
console.log(`getting mar…
@mijanur
// You got user's margin details.
console.log(`got it : ${response}`)
Your console statement is wrong. This is an incorrect way to concatenate an object to a string. You need to separate a string and an object by a comma. The correct way w…
@mijanur
Can you paste your code here? You don't see to be catching error properly.
If you use this example, it should show the nested dictionary, as shown in documentation here.
@mijanur
You seem to be fetching this during the BOD process. You can go through this thread to know more about BOD timings.
Also, you can check all node js API fetch examples here.
I am looking for the historical tick data, so I could back-test some of the strategies. I am looking for tick data that has a frequency of one tick per second for stocks in the Nifty 500.
For Historical data/backtesting, we don't have tick data sna…
@sagaranilganu
I have a scenario where I make a MKT SELL order for Nifty options with huge quantity say 6000
We don't allow Market orders for illiquid Index options. You can go through this article to know more.
I poll the kite.order_history(Sell_O…
@Sutirtha1981
i need to pull bank nifty weekly expiry options data
We don't have expired option contract historical data. You can only fetch expired Futures contract historical data.
I am getting a few points difference from the real value.
What is your source of comparison?
on_ticks(ws, ticks)
We see you are performing some computation inside the on_tick thread. That can be a reason for the delay. Maybe you can debug further on…
@WB5864
I want LTP for past days which is happening during 3:50 to 4 pm pre-market sessions
No, we don't have pre and post-market historical data. Only WebSocket streams this pre and post-market data in real-time. So, you need to store this at your…
@Hsadikot
In this case how to find the options and futures symbols or instrument id on Zerodha?
You can download complete daily instrument token list from here.
@WN1867
Are you comparing the NSE Tame chart w.r.t kite connect historical data?
If yes, you can go through this article to understand, why differences can exist between the 2 chart platforms.