Can you please add the LTP that was present in the earlier file. The code which I created based on the earlier kite_trade.py file is not working. Can you please help. Else I will have to do away with entire framework and start from scratch.
you have more potential that this. This channel has the content, that other you-tubers and some package seller are distributing globally. Though I am planning for that (LOL). I think you are quite busy in your daily schedule behind youtube. I think, making this channel content is your hobby for enjoyment. Love you guru. I have learned python from youtube from multiple channels to some extent. But I must admire your tutorial. You have a potential of teaching in simple manner and that is very much catchy. In simple word, you have the tools. Again love you guru. Now My python class is running with you on trading. it is requested to you "a strategy in code with back testing and line by line explanation (if possible)". 🥰🥰🥰
Thanks for your efforts, it takes lot of your personal time to make such videos and share knowledge, If we can place SL and trailing, that would have been great. Nevertheless hats off for your time and efforts. Request all who come here, please like/subscribe/share/comment such videos to help in whatever small way we can to the content creator.
Sir, code for order is not running. The given error is coming: Traceback (most recent call last): File "E:\algo\order.py", line 5, in order = kite.place_order(variety=kite.VARIETY_REGULAR, File "E:\algo\kite_trade.py", line 134, in place_order order_id = self.session.post(f"{self.root_url}/orders/{variety}", TypeError: 'NoneType' object is not subscriptable Kindly help. Thanks
can u implement the event listening, like if any trade happens after a while, of order placement, how would you know that? I think you have to implement a websocket setup to listen the events like this and also with the help of it, live quotes can be captured. Plz implement that, if you can build it, it would be a great freedom from paying to them (ZERODHA)
yes very good idea, but we wants the a python code to Triger an order when trading view indicator generate an alert in the same way, please suggest how to link any tradingview indicator without webhook, only by alert massege
Bhai 1 question hain kya hum underline value pe option buy sell kar sakte hain kya python main for ex - Bnf currently trade at 40445 And 40400 CE trading at 220. But I want to excute option position when bnf is going to trade lower than 40415 that time option price market order pe excute hona chahiye aisa hota hain kya...? Kya main aisa kar sakta hu kya if bnf trading lower than 40415 then excute 40400 ce at market price. As well as my sl will be 40350 if underlying value going trade lower than this then exit my option position at market price. Will this possible in python. 🤔🤝👍
Thank you for valuable information, I did all the changes, I am able to do login and fetch the data possible. BUT unable to place order as getting following error TypeError: 'NoneType' object is not subscriptable please let me know how to resolve this error. Thanks.
Hello Sir, I do regular intraday for BankNifty Options of Buying and selling. There is a OCO feature in GTT which one of the Target or SL triggere will cancel other. I am more interested in the auto-trailing SL which moves accordingly to the price. Lets say current spot price of BNF CE position is 300 and I set a SL of 250. Now when the Price moves to 320, then SL should automatically change to say 265. This way we can reduce loss even if the price comes down and SL gets final hit. Can we achieve this in Python?
I understand from this video we can perform all operations required from algo trade. They how this zerodha chargeable Kite connect API different from zerodha publisher API ?
nice but following error is occurred: Traceback (most recent call last): File "E:\Python\Zerodha without api\zerodha.py", line 25, in order = kite.place_order(variety=kite.VARIETY_REGULAR, File "E:\Python\Zerodha without api\kite_trade.py", line 134, in place_order order_id = self.session.post(f"{self.root_url}/orders/{variety}", TypeError: 'NoneType' object is not subscriptable please reply
Bravo @TradeViaPyton it is pretty use full details you have shared with us. I was using Kite API but the data for API/Wesocket is very limited respective to API Rate Limit. Will try your source for my problem
I have question ... what is the use of writing python code when you have clear visible in UI format where in one click job is getting done .... Can i know is there any advantage of using python code.... as we understand , to avoid all this manually we have choosen technology which is in easy and understandable format....
great work sir aapne bataya ki option chain wale video main bhi phir wala code dal ke option chain fatech kar sakte ho maine option chain wala code likhke run karne par excel started ho jati hai or symbol aa jate hai lekin symbol dalne par expiry date or data nahi aata hai please guide me thanks and regards
Thank you verymuch for the detailed video.. i just tried to implement this but getting "SSL: CERTIFICATE_VERIFY_FAILED" error.. do you have any thought about this
Now Order Funtion is not working, Showing below Error Traceback (most recent call last): File "c:/Users/himad/OneDrive/Desktop/Kite_Zerodha-main/experimental.py", line 19, in order = kite.place_order(variety=kite.VARIETY_REGULAR, File "c:\Users\himad\OneDrive\Desktop\Kite_Zerodha-main\kite_trade.py", line 134, in place_order order_id = self.session.post(f"{self.root_url}/orders/{variety}", TypeError: 'NoneType' object is not subscriptable
Hello sir , when i am fetching data using kite.quote , it is automatically sorting the watchlist (specified scrips array). how to get the data in the order in which i have ordered the scrips in array. For example if i give input ["NSE:SBIN","NSE:ACC"], it gives the data in order of (ACC,SBIN) instead of (SBIN,ACC)
Hi sir, How to put bracket orders? Suppose I would like to buy xyz stock on market price and target will be 20 points and stop loss will be 10 points, how to put gtt order?
Just want to confirm something - their charges are 2000 Rs plus 2000 Rs. for historical data - so even if we want to use zerodha api to fetch candledatat (because free brokers candledata are not reliable) - will they charge at least 2000 Rs. because obviously we have to login to their api - am confused
Hello sir.. thank you so much for awesome video. I am getting below error order = kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_NSE, tradingsymbol="ACC", transaction_type=kite.TRANSACTION_TYPE_BUY, quantity=1, product=kite.PRODUCT_MIS, order_type=kite.ORDER_TYPE_MARKET, price=None, validity=None, disclosed_quantity=None, trigger_price=None, squareoff=None, stoploss=None, trailing_stoploss=None, tag="TradeViaPython") print(order) TypeError: 'NoneType' object is not subscriptable Can you suggest what I can change sir ?
Tick Data Issue ;- Updated kite_trade py file and Sample code on GitHub Link : github.com/TradeViaPython/Kite_Zerodha
Can you please add the LTP that was present in the earlier file. The code which I created based on the earlier kite_trade.py file is not working. Can you please help. Else I will have to do away with entire framework and start from scratch.
Please add LTP again in the kite_trade.py file.
not working.. has there been any reported issues? i am using second method to login
Second method is not working any more🥲
Sir very very informative, and as I have seen your are very knowledgeable , person , as per my experience ,. You deserve 100% audience love
Highly commendable for your effort and giving this knowledge to others...waaa ustad waa..🥰👏
you have more potential that this. This channel has the content, that other you-tubers and some package seller are distributing globally. Though I am planning for that (LOL). I think you are quite busy in your daily schedule behind youtube. I think, making this channel content is your hobby for enjoyment. Love you guru. I have learned python from youtube from multiple channels to some extent. But I must admire your tutorial. You have a potential of teaching in simple manner and that is very much catchy. In simple word, you have the tools. Again love you guru. Now My python class is running with you on trading. it is requested to you "a strategy in code with back testing and line by line explanation (if possible)". 🥰🥰🥰
Channel
Thanx fr your ingenuity to access data into Zerodha account.
Ravinder Ji Once again you have done fabulous job. Keep UP the good work.
How to get futures and options data by python : ruclips.net/video/U9RzrKyJkX0/видео.html
Thanks BROTHER, I did the same for C# and Working Fine.... :-).... Thanks Once again......
Great ,its help me lots. What a easiest way you adopted, please accept my heartily thankfulness for you efforts ❤
But we cant punch orders for any indexes right. Because we cant fetch the strike price.
Not working showing input exception bad request , it was working at first and then suddenly stopped working 😢😢😢😢
Hi
I am not able to place the order in zerodha. The error "Nonetype order is not subscriptable" is showing. Could you help please.
Thanks for your efforts, it takes lot of your personal time to make such videos and share knowledge, If we can place SL and trailing, that would have been great. Nevertheless hats off for your time and efforts. Request all who come here, please like/subscribe/share/comment such videos to help in whatever small way we can to the content creator.
wa waaa maaza agiya
😃😃
Thanks for posting such a useful video. Appreciate your effort to explain all options, in a simple way.
Sir, code for order is not running. The given error is coming:
Traceback (most recent call last):
File "E:\algo\order.py", line 5, in
order = kite.place_order(variety=kite.VARIETY_REGULAR,
File "E:\algo\kite_trade.py", line 134, in place_order
order_id = self.session.post(f"{self.root_url}/orders/{variety}",
TypeError: 'NoneType' object is not subscriptable
Kindly help. Thanks
+1
Same issue with me
Same Issue
Good, it worked. thank you. I want to check if the stock price on LC and sell no of order is decreasing then place a buy order on LC, how to do that?
can u implement the event listening, like if any trade happens after a while, of order placement, how would you know that? I think you have to implement a websocket setup to listen the events like this and also with the help of it, live quotes can be captured. Plz implement that, if you can build it, it would be a great freedom from paying to them (ZERODHA)
Thank you very much. Real content which I am searching for days.❣❣❣
You made my trading fast from this video as well as time saving. God bless you bro❣❣❣
error showing
File "d:\Zerodha\kite_trade.py", line 93, in ltp
data = self.session.get(f"{self.root_url}/quote/ltp", params={"i": instruments}, headers=self.headers).json()["data"]
KeyError: 'data'
yes very good idea, but we wants the a python code to Triger an order when trading view indicator generate an alert in the same way, please suggest how to link any tradingview indicator without webhook, only by alert massege
Thanks for sharing knowledge, future of trading
Buddy can you make one more video on other brokers like Kotak securities
Superb buddy. Great work!
wonderful .What all the libraries we need to install on our system? Can we implement strategy and access all the APIs?
Thanks a lot for this video, was looking for it from long time. Wonderful!
Very useful, thank you for all the efforts and it's indeed commendable. It's really helpful ...
Great Work Bro!!!! you are Amazing👏👏👏
Bhai 1 question hain kya hum underline value pe option buy sell kar sakte hain kya python main for ex -
Bnf currently trade at 40445
And 40400 CE trading at 220.
But I want to excute option position when bnf is going to trade lower than 40415 that time option price market order pe excute hona chahiye aisa hota hain kya...?
Kya main aisa kar sakta hu kya if bnf trading lower than 40415 then excute 40400 ce at market price. As well as my sl will be 40350 if underlying value going trade lower than this then exit my option position at market price. Will this possible in python. 🤔🤝👍
Yes kr skte h
@@Lbvi Index price considered karke option ka sl target laga sakte hain....?
@@IndicThoughts8 yes
@@Lbvi thank you bhai. Ab course karna padega. 🤝👍
entoken isnot working. It gives "login failed !!!" in the CMD screen
Thank you for valuable information,
I did all the changes, I am able to do login and fetch the data possible.
BUT unable to place order as getting following error
TypeError: 'NoneType' object is not subscriptable
please let me know how to resolve this error.
Thanks.
Yes mujhe bhi same error aa raha hai
Hello Sir,
I do regular intraday for BankNifty Options of Buying and selling. There is a OCO feature in GTT which one of the Target or SL triggere will cancel other. I am more interested in the auto-trailing SL which moves accordingly to the price.
Lets say current spot price of BNF CE position is 300 and I set a SL of 250. Now when the Price moves to 320, then SL should automatically change to say 265. This way we can reduce loss even if the price comes down and SL gets final hit.
Can we achieve this in Python?
I understand from this video we can perform all operations required from algo trade. They how this zerodha chargeable Kite connect API different from zerodha publisher API ?
Thank you very much. tried it working like charm
which programming software you are used in this video
It was good but bro one thing is that aapne bass woi cover kiya hai jo already app see kr sakte hein
Fabulous work and content :)
question is ur are puttling buy sell manually then whats the diffeence here how can i automate this things.
nice but following error is occurred:
Traceback (most recent call last):
File "E:\Python\Zerodha without api\zerodha.py", line 25, in
order = kite.place_order(variety=kite.VARIETY_REGULAR,
File "E:\Python\Zerodha without api\kite_trade.py", line 134, in place_order
order_id = self.session.post(f"{self.root_url}/orders/{variety}",
TypeError: 'NoneType' object is not subscriptable
please reply
Make sure you are running it when market is open, other wise it will give this error as order is not executing.
Can we use it for other brokers as well?
thanks brother..... great help to others.....
This is very informative ..Thanks for the video
Bravo @TradeViaPyton it is pretty use full details you have shared with us. I was using Kite API but the data for API/Wesocket is very limited respective to API Rate Limit. Will try your source for my problem
I have question ... what is the use of writing python code when you have clear visible in UI format where in one click job is getting done .... Can i know is there any advantage of using python code.... as we understand , to avoid all this manually we have choosen technology which is in easy and understandable format....
Outstanding effort.
Very very useful content!! Thank You very much!! Subscribed your channel!
Appreciate your efforts buddy! Thanks for this
great work sir aapne bataya ki option chain wale video main bhi phir wala code dal ke option chain fatech kar sakte ho maine option chain wala code likhke run karne par excel started ho jati hai or symbol aa jate hai lekin symbol dalne par expiry date or data nahi aata hai please guide me thanks and regards
Hi, Thanks for the beautiful video, I would like to know if I want to close my positions like -5000 reaches, then how do I do it ?
Great work and appreciate your efforts....keep it up
How to get futures and options data by python : ruclips.net/video/U9RzrKyJkX0/видео.html
Thank. How to auto retreive enctoken through chrome selenium?
is it possible to add symbol in watchlist using python?
Thank you verymuch for the detailed video.. i just tried to implement this but getting "SSL: CERTIFICATE_VERIFY_FAILED" error.. do you have any thought about this
Hello sir , how to create a straddle strategy for Banknifty algo create for any broker
Bahot atcha vedio hai bhai
please help me how can i get open interest for an option or future using this method. Thank You
Super effort, really appreciate it.....bt Not able to place NFO orders
Thank you for this very useful video. Can you please advise how to export the historical data output and save in a CSV file?
Yes u can save , by df.to_csv('filename.csv') , where df is data which u want to save it
Hi, From 18th May API is not working ...is there any changes? it's showing 400 bad request error
I am facing same issue. if is there any update please let me know.
Thank you. Very informative. What about WebSocket connection?
Great work Sir👌...How can I achieve this enctoken method in java language?
Now Order Funtion is not working,
Showing below Error
Traceback (most recent call last):
File "c:/Users/himad/OneDrive/Desktop/Kite_Zerodha-main/experimental.py", line 19, in
order = kite.place_order(variety=kite.VARIETY_REGULAR,
File "c:\Users\himad\OneDrive\Desktop\Kite_Zerodha-main\kite_trade.py", line 134, in place_order
order_id = self.session.post(f"{self.root_url}/orders/{variety}",
TypeError: 'NoneType' object is not subscriptable
Same..did you get any solution?
Really appreciate your efforts 👏👏
God Bles you, Thanks
TypeError: 'NoneType' object is not subscriptable
using historical data
mujhe order placed ka kohi api chahiye jo ki mouse se hi excute ho jaye jaha pein cursor rakhu udhar limit order and all order excute ho jaye
Superb work brother.
Is it possible to add basket order? And what about websocket?
Nobel work bro super keep going
Thank you!! It's very very helpful 🙏
Hi sir how to add stock options on watchlist based on some rules like open = low etc please kindly help🙏
Thank you very much. If any body is using this please share experience 🙏
please let us know what to do to connect with Dhan
This is very nice...but I am not able to understand whether your app is calling zerodha api or not ....if not then how its getting data ?
nice explantation simple and useful.thanks
Very nicely explained, impressive.
Thanks for the wonderful video. Is it possible to connect automatically to kite instead of any manual intervention to provide Authentication token.
Hello sir , when i am fetching data using kite.quote , it is automatically sorting the watchlist (specified scrips array). how to get the data in the order in which i have ordered the scrips in array. For example if i give input ["NSE:SBIN","NSE:ACC"], it gives the data in order of (ACC,SBIN) instead of (SBIN,ACC)
Will historical_data function work in non market hours?
great work sir ji thanks teaching us
Hi algo bana hai hft wala zerodha ka reply pls
Hi sir,
How to put bracket orders?
Suppose I would like to buy xyz stock on market price and target will be 20 points and stop loss will be 10 points, how to put gtt order?
Amazing stuff. brilliant Brilliant...
Just want to confirm something - their charges are 2000 Rs plus 2000 Rs. for historical data - so even if we want to use zerodha api to fetch candledatat (because free brokers candledata are not reliable) - will they charge at least 2000 Rs. because obviously we have to login to their api - am confused
Sir your efforts are excellent
How to get futures and options data by python : ruclips.net/video/U9RzrKyJkX0/видео.html
Hello sir.. thank you so much for awesome video. I am getting below error
order = kite.place_order(variety=kite.VARIETY_REGULAR,
exchange=kite.EXCHANGE_NSE,
tradingsymbol="ACC",
transaction_type=kite.TRANSACTION_TYPE_BUY,
quantity=1,
product=kite.PRODUCT_MIS,
order_type=kite.ORDER_TYPE_MARKET,
price=None,
validity=None,
disclosed_quantity=None,
trigger_price=None,
squareoff=None,
stoploss=None,
trailing_stoploss=None,
tag="TradeViaPython")
print(order)
TypeError: 'NoneType' object is not subscriptable
Can you suggest what I can change sir ?
sir how do we access volume from this? please reply
good job, impressive
looks like the second method is not working is there an alternative ?
this is very insightful.. thank you..
Yes, 2nd method of login using enctoken is not working now, could you fix it ??,thanks.
Thank you so much for the informative videos. Is there a way that my algo doesn't stop even I log out from browser?
how to export the Last Traded Price data of Nifty constituents to google sheet?
Thanks , very knowledgeble video
Using this code will it be possible to place basket order. If yes please suggest
brother what about holdings?
Thank you for the wonderful work !!
Wont this be to risky to pass credentials like userid and password over http request just like this?
Sur I want to place but sell order with small difference if previous order bought
Can't we place order for stock options using this.
Can you create same for chartink after saving session?