@ZY9634 You are using older version of Kite Connect request_access_token has been replaced with generate_session in kite connect 3.You can check complete documentation here.
Thanks for your quick support, I used the sample code shared in your documents, but I got the below error like "place_order() missing 1 required positional argument: 'variety'" . Please help I tried giving variety=kite.REGULAR or kite.regular but none of them worked. Where can I get list of arguments that are mandatory for each function.
2)Also in many of the functions it is mentioned like "self" as arguments what does it mean ? what should we give here . Ex: def orders(self) 3)And every time we run code the "Request_token" is getting expired and I am ruing the Kite.trade URL+api key in browser to get return key. Please help if there is any shortcut for this activity as I am learning step by step.
@Imran Thanks for your quick support. Now I am able to place orders I need help on below , please 1)I am entering manually "Request_token" every time when I run the script, is there any way (defined function)that system can read from redirect URL. Below is my code. rtoken=input("[*]Enter Request Token Here:")----- rtoken is var created by me data=kite.generate_session(rtoken,api_secret=asec)
i could only able to complete till getting access token. but while placing orders, something is not going right.. could someone please help me in this.?
You are using older version of Kite Connect
request_access_token
has been replaced withgenerate_session
in kite connect 3.You can check complete documentation here."place_order() missing 1 required positional argument: 'variety'" . Please help
I tried giving variety=kite.REGULAR or kite.regular but none of them worked. Where can I get list of arguments that are mandatory for each function.
2)Also in many of the functions it is mentioned like "self" as arguments what does it mean ? what should we give here .
Ex:
def orders(self)
3)And every time we run code the "Request_token" is getting expired and I am ruing the Kite.trade URL+api key in browser to get return key. Please help if there is any shortcut for this activity as I am learning step by step.
for login have a look on this video https://youtube.com/watch?v=wHLrMyzdgJw&t=72s
Thanks for your quick support. Now I am able to place orders
I need help on below , please
1)I am entering manually "Request_token" every time when I run the script, is there any way (defined function)that system can read from redirect URL. Below is my code.
rtoken=input("[*]Enter Request Token Here:")----- rtoken is var created by me
data=kite.generate_session(rtoken,api_secret=asec)
As per exchange norms, you need to log in manually .
PS: You can save the access token once you get and then use the same for rest of the day.
So in that case if we give input as api_key and access_token will it be enough after generating access token once.
Yeah, you can store generated access_token once and then use the same for all further API request.
i am new to this coding, but as i am from engg background i can catch up in sometime easily.
i have followed the link give by rakeshr in above chain (https://kite.trade/docs/pykiteconnect/v3/#kiteconnect.KiteConnect.place_order)
i could only able to complete till getting access token. but while placing orders, something is not going right.. could someone please help me in this.?
Thanks in Advance
Product will be CNC not NRML and also add variety = regular.You can check list of all order param here.
Have you found out what is the answer for the below question? I also curious to know as I'm trying out this programming in this lock-down.
2)Also in many of the functions it is mentioned like "self" as arguments what does it mean ? what should we give here .
Ex:
def orders(self)
Sorry, Folks... This may be a naive question as I'm not having programming background. Just trying this out.
Also thank you @Imran Your YT Videos are of great help.