@ZI4453 , Thanks for your response. My internet speed is minimum 55 mbps . I log in at 8:30 AM or even earlier. The time (in my code) before which web socket connection should not be established is 9 hours 15 minutes (for NFO). But the first tick …
Ok, accepted, though difficult to justify. My subscription was in auto debit mode, I wanted to change that. But could not find any method other than cancelling the subscription. Please enlighten if I had some other choice to change my standing instr…
Great answer. Thanks a lot. Just one more- when you say - "your solution..." - I think the solution you are referring to is not only about the python code but also about the network capability/memory etc. as well . However if the main thread is kept…
@sujith
I can not share the code in the as is form but pending that , I am trying to share some more information if that helps.
I am not behind any proxy and using my system at home. I am using v3 of kiteconnect. My operating system is windows10. M…
I have finally managed to install kiteconnect by downgrading python 3.7 to 3.6. In the meantime I applied your instructions (after learning curl) and it did not work! Once you resolve the issue with 3.7 , I would like to switch back to the latest v…
@zartimus
A]
I am not too familiar with curl commands and with remote desktop systems. So , quite hesitantly - i request , if you could elaborate the first two statements with a sample example. I tried this -
(base) C:\Users\Administrator>pip i…
Hi @vivek @zartimus : Finally I upgraded to latest version of kiteconnect. However for that I uninstalled anaconda and reinstalled it in a different directory (not the one where OS resides). Did not install twisted separately. Still encountered "per…
@sujith thanks. I could solve it. And that too calling kite.positions() inside on_tick. I call it at the completion of a candle which happens to be 5 minutes in my case.
You may kindly close the thread.
@sujith Thanks. But the positions would keep changing. This may help for the first "BUY or "SELL" trigger , but what about the subsequent triggers.. So while I understand that API call should not be made to fetch positions on every tick but even wh…
@zartimus : Can you reflect on this part of the error and if you so feel - suggest some remedial steps:
Checking .pth file support in build\bdist.win-amd64\wheel\.\
C:\Users\PINAKI\Anaconda3\pythonw.exe -E -c pass
TEST FAILED: build\bdist.win-amd64…
@zartimus Thanks for your gesture.
I tried and again got error which I am reproducing below. My guess is, we have to set the path to the installation directory. I am using Anaconda prompt . Anaconda is in the user directory , and the path to site …
@MAG
Thanks for the nice explanation. Your suggestions are well understood and taken. I am using celery to take care of the scalability in future. Before switching to celery , I read comparisons between celery and other alternatives and found cele…
@vivek @zartimus @sujith
All instructions on this page followed but still getting the same error:
Exception:
Traceback (most recent call last):
File "C:\Users\PINAKI\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main
status = …
@sauravkedia Great explanation. BTW , I am a researcher on NIFTY and an occasional trader. However , I decided to learn python about 3 months back and learnt a lot online and from forum discussions. My idea is to handle streaming data - be it stock …
@sauravkedia Quite useful information.Your posts are always very informative.
Instead of starting a new thread I am joining this thread with my queries as these are quite relevant up to candle generation and storing data.
I have a question on the …
@zartimus Thanks, I will follow your instructions and post the outcome. Since the first time the error message talked about Visual Studio++ 2014 version , I had installed the same. Anyway I hope now it gets resolved.
Regards
@vivek I followed all the steps . Ran as administrator as well, but of no help - same error message. Should I uninstall python and reinstall? All messages remaining same , I am reproducing a part just in case this is a suspect -
Installing collected…
@vivek
I tried both python -m pip install kiteconnect --upgrade --pre (and also pip install kiteconnect --upgrade --pre) on anaconda prompt - but could not succeed. Pl advise what and where to search for possible causes of failure.
The error mes…
@MAG , allow me few minutes. Mean time , few days back when i had tried to upgrade , that time I received the message on Visual C++ redistributable 2014 and that the same can be installed from landinghub. I did follow the instruction but having not…
@zartimus , I tried all the steps mentioned in the thread . However again the same error no. 13 "permision denied. I had restarted my system and tried this.
Thanks both of you @trade_then and @mrkaran for the insights. Now I will do some research to understand the approach. From the replies - it appears that restarting the kernel may be a required step but then why do I get messages like "invalid sessio…
@mrkaran thanks a lot for the reply. I have no confusion about what you said. I need not check for access token , as it is for sure , is flushed when the kernel is restarted. Let us assume , it is lost , then one has to go through all the steps - lo…
@trade_then , thanks a lot. As explained to tonystark , my problem is to preserve the instance variable while changing and executing the code. I think I have to find a solution based on your suggestion of making a class. But again, all variables are…
@tonystark : Thanks for your reply . Perhaps my question was not clear as else your reply would not have been so simplistic in nature. Please explore if you could have a better one in view of the restatement of the issue I am facing.
I have not deal…
@trade_then Thanks for the nice explanation. Second case is quite straight forward when the disconnection is intended or by choice. But in case 1- if the connection is not established then where is the question of closing it? Should it not be "disco…
@sujith which part of the documentation clearly describes the process for upgrading to latest version? Even on github "pip install kiteconnect --upgrade --pre" is mentioned. Many of us may be new to programming but have sufficient idea on installin…
Thanks sujith. Actually I am able to get what I want when I run my code on jupyter note book - like getting the url then request token and subsequently, access token and public token -among other data. However when I want to run my python module und…
@vivek , sorry to bother you again. See, there is an option "Create New App" under My Apps - section. What does that mean? If I create a new app , can that be run simultaneously with other apps? And whether it will require separate/additional subscr…
Ok, will that take care of internet connectivity issues discussed above and therefore no data loss...? I am ready with my logic and code now and looking at infrastructure aspects, hence the question.
@sujith that means subscribing to historical data will take care of such situations where data is lost. But could not understand "run your setup on the cloud" .
@Vivek I tried few changes and kept trying and finally could place a market order( on 29thDec ). But is there any problem today in kiteconnect or web socket?
I have solved this with the help of hint you provided.
I also want to understand what is the purpose of the parameter "tag" in the order_place function..
@sujith , that means if I generate candles every preceding day for using them today then I need not subscribe to historical data. Am I correct?And through historical data , I shall be getting only 1 minute candles , nothing more. Right?
@Vivek Thanks a lot. This is really helpful unlike the previous reply I got. If the initiative is to gain popularity - issues faced by newbies (in programming ) are to be addressed - through forum and also through user friendly documentation. Thanks…
@Vivek
Can you kindly attempt a reply to my questions. My problem areas are creating a new thread and which function to call in the new thread on_tick or on_connect? Or on_tick in t1 and on_connect in t2? Can you give a direct code example using th…
Hi
I am new to python and API applications but Technical Analysis is my domain. I look forward to help / guidance till data receiving and management. I have read most of the discussions in the category Websocket and Python client and also gained som…
Vivek
My question is somewhat similar. For my strategy I need minimum 300 candles of 1 minute . So as the day begins I will need data at least for previous day. So do I need to subscribe to historical API?
And given my strategy remains same, shal…
Yes I would require latest candle every minute , 30 seconds delay is acceptable but this much delay is not acceptable in order executions. That means my decisions will not be affected much if I get fetched data delayed by around 30 seconds but once …