@samba
We do not do any modification in WebSocket stream,it is relayed as received from the exchange.
Don't compare live date with nse website, as same is delayed by 2-3 minutes.
@Swaroop
You can fetch total volume for every tick from websocket, check the documentation here.
There is restriction of max 3000 instruments streaming at any instance for one API key from WebSocket, check it here.
From total volume, you can calcul…
@HAs
Are you looking to get it during live market or end of the day?
For live market,you can keep from date as today's date and keep on fetching latest hour candle for the same day.Python code example:
#Keep from_date as today's date
today_start…
@ronstrader
We checked Hexaware ticks since today morning, didn't encounter any random ticks, below 400.Can you log such random ticks(whole tick response including timestamp, not just last traded price)?
@sharma12lalit
Historical data APIs response is in JSON format. You can dump it into excel file.Something like this in python:
data=kite.historical_data(instrument_token=7458561,from_date='YYYY-MM-DD', to_date='YYYY-MM-DD', interval='minute')
with …
@bharathm1
1>Go through this thread.
2.No interference as, websocket end point is different w.r.t APIs end point.Check API rate limit on this thread.
3.There is restriction of 5 orders per second.So, for equity, total trading time is 6 hour 15 m…
@phantomdrake
No, currently we don't have APIs for Brokerage calculator.You can create method to calculate this at your end, as per the charges explained here.
@raula_kite127
Go through this thread, regarding WebSocket connection.
You can subscribe up to 1000 instruments/shares in a single WebSocket connection, and for one user you can have 3 WebSocket connection, so you can stream maximum of 3000 shares …
@rohit3389
16556 : Quantity less than the minimum lot size
As above error clearly states, you are placing quantity lesser than permissible lot size. You can check lot for all F&O contract here.
@raula_kite127
To get the historical record of a share how do I validate the user from the backend(Java)?
Are you talking about validation at your web app login or Kite Connect login?
If client kite login is successful, you will receive Status:Succ…
@nagarerahul
Yes, it's possible.All positions details including P&L can be fetched from position APIs, and then you can loop through all position individually and do the summation of all P&L's.
Same process can be followed for exiting as po…
@sohel
Streak, also uses same Historical candle APIs.Hourly OHLC value of ALBK for 2017-09-20 12:15:00 is 73.25,73.3,72.95,72.95, as above shown by you.
Algo calculation used in Streak DEMA short, might be having different derivative calculation, n…
@vishnux
All SL orders including BO-SL orders are first triggered and executed in between the range of price and trigger price.Go through this link, to know more about it.
Please don't create non-API related thread on this forum, you can write such…
@rohit3389
We run updating process from 1- 4 AM, post which you will be able to access previous day close value.
Yes, volume data will be zero, only OHLC will be updated.You can store volume and open interest data from the previous day , as per yo…
@zash121
New instrument file is generated daily, as few new instruments are added or removed on daily basis.So, it is recommended to re-dump instrument file once at the morning on trading at your end.
@avinashcherukuri
You need to send two header along with curl request.Refer this documentation.
-H "X-Kite-Version: 3" \
-H "Authorization: token api_key:access_token" \
@prajwal
Any unhandled exception in your code will result in on_error call which in turn calls on_close.on_close will have ws.stop() , which will stop the thread.So, If you need the reconnection logic to kick in, dont use ws.stop() inside on_close.…
@rohit3389
Yeah, Close value in quote call is previous day close, even on nseindia it is same. We update previous day close value after midnight process.So, next morning you should be able to get previous day close.
Alternatively, you can use LTP q…
@daniamarkumar
OIL18AUGFUT is another MCX trading contract, whose instrument token is 12250882.
Instrument token for CRUDEOIL18AUGFUT, is 53767943.
You can download complete instrument dump from this link.
@sukantk
Yes, you need to compulsory go to the browser to obtain request_token, there is no programmatically way to obtain request_token. Then you need to post request_token along with api_key and api_secret, to obtain access_token.
Generate access…
@ramatius
"16423 : Invalid Trigger price entered "
This error occurs when you enter invalid tick size when placing the Stop Loss [SL] order.Make sure, you are entering positive value with value multiple of 0.05.
@UE6253
I copy pasted your above code in my env, it's returning all subscribed ticks. Make sure, you are not calling, on_close method anywhere else.
It can also your be local environement issue.Can you try above modified code in Linux and check it…
@ramatius
Should the order_type = "SL" instead of "MARKET"?
Yeah, you need to put order_type as LIMIT or SL , as per your requirement, not MARKET.Market order don't have Price param, as market orders are always placed at current best available pri…
@krtrader
We checked 1 Minute data for Ashokley(54273) for 01-01-2016, it's showing fine.Look for attached file.Make sure, you are entering correct instrument_token.
@ayush @Imran
We don't provide accumulated 1-minute level data in single go for more than 30 days. Alternatively, you can run loop at your end and accumulate month wise 1 minute data and keep on adding it.
Something like this(for python client) for…
@amamarde
What is the max number of active web socket / kite ticker connections one can have using an single api token?
Have look to this thread.
Can we have two different processes running with different symbol / mode subscriptions on each, and o…
@Guhan
what is maximum instruments that can be subscribed pre WebSocket connection?
You can subscribe up to 1000 instruments in a single WebSocket connection.
What is the maximum WebSocket connections possible per access token?
Maximum of three we…
@UE6253
We are looking for permanent solution for time being, you can use Try and catch for this exception.Like this:
try:
Your logic here
except ReadTimeout:
pass
@UE6253
I ran above code in my env , with stock_names param as list of all Nifty 50 stocks, it ran without any error.Rate limit error can only come, in case quote var is empty and loop doesn't go inside if quote .So, better you can insert time dela…
@UE6253
You need to login manually to get request token from URL, as per exchange policy, auto-login is not allowed. Access token is valid through the day, until you log-out/destroy the session.
@UE6253
You should generate access token only once and use it to run your program multiple times. For example, if you are running your strategy every five minutes then you should generate access token initially only once and use it in your program …
@UE6253
We ran quote call for more than 100 stocks in loop with delay of 1 second, didn't faced any time-out.Please recheck your code, make sure you are not running other rate limit API request in parallel.
@anandneeli
It looks like your program is closing the thread.
If you don't want WebSocket thread to stop, in case of above error, you can remove on_close implementation call.
@prajwal
Make sure, you are using latest version of Kite Connect APIs and all the dependencies are installed.Install latest version using pip install kiteconnect --upgrade and then check the version using pip show kiteconnect, it should be 3.7.4.
@krishnakant
There was an issue in morning from exchange side, we had notified all platform users regarding the same.
For all Non-API related query, please write to support here.
@vinodhec
Above open pending issue in morning was from Nse side. We had notified all the platform users regarding the same.This was rectified from Nse side.
@daniamarkumar
You can get the latest month any contract instrument token from full instrument list file.
Programmatic approach will be to retrive instrument token from above file,by using if else condition statement for specific scrip/contract.
@pracas
what if the script requested has not been traded that day, what will be returned?
It will return an empty dictionary.
At the backend how does the ltp function fetch the price? could it be that its picking the ltp from the last tick and tha…
@Vblaze10
We don't have any example or test case for plotting volume bars.
Volume data in Kite Ticker is cumulative(total volume for the day, till last available tick). So, if you want to calculate volume for any specific time interval, say 5 minu…
@vatayush
1.Yeah, WebSocket connection is included in Kite Connect subscription of 2000.Except Historical data, all component is include in main kite Connect subscription.
2. Universal brokerage is charged for all source of orders.
3. WebSocket bro…
@rjv17
I have seen that you were recommending people not to use historical_data api for live trading.
Would this be a problem even if I am planning to use 15min time frame?
No, it should not be a problem for longer time frame.
@vishnux
It's Possible that both times will not be same.If there is no trade for that particular second, it will show last_trade_time as the last time, when trade has taken.
Orders log is showing every order being generated
Order alert being generated from your code and order placed from kite connect APIs is different, make sure order placement logic is working correct.You can, run individually order placement logic man…