@rakeshr I recently enquired in detail a few other platforms that provide algrothmic trading. I also went through NSE's master circular which contains guidelines on "Algorithmic Trading" in para 47 of the said circular, to understand the concern o…
I could also figure out, if the processes inside while loop, on secondary thread where Ticks are processed, takes longer than the interval of Tick data received, then it causes connection to close and reconnect after the 'secondary process' is compl…
@sujith noted, thanks.
so I understand, if I have to execute 5 legs of one trade, I have to send 5 orders sequentially. correct me pls if I still get it wrong.
is brokerage payable on "executed" order if that is "rejected"? "rejected" may be due to volumes freeze (if mkt order) or mwpl overflow. "rejected order" is showing under "executed orders"
@sujith Thank you for clarifying, can we expect this basket order feature to be added to api in near future? actually, the strategies, am finalising involves basket orders, failing one would render the basket unviable. manually punching basket is v…
@rakeshr I could place a basket order through kite platform, may I please enquire why is this functionality not available through API? without this functionality, atleast for me, api may not be useful as end to end solution for executing trades
Its like asking a pharma company, which spent billions of dollars and years in research to successfully develop a drug formula, to disclose its formula (which can be leaked easily, thanks to corruption).
@rakeshr Thank you. the version was fine.
However, I could figure out that if I send less than 240 tradingsymbols, it works fine, >= 240 symbols at a time returns error. Have worked out my solution accordingly.
thank you.
following are 5 tradingsymbols, found in fno dump, returning error on calling individual margins, tried after removing these also, still persists the same error...
['AMBUJACEM30DEC2127JAN22FUT',
'FINNIFTY21D07FUT',
'FINNIFTY21DECFUT',
'FINNIFTY2…
Getting following error with multi margin (trying for all Stock Futures symbols as test run):
DataException: Unknown Content-Type (text/plain; charset=utf-8) with response: (b'Error when parsing request')
Following is the code:
order_param_multi …
@rakeshr Mr. Rakesh Ranjan - You are a champion! You possess extraordinary talent with eagle eye for precision!
I was going bonkers over this for over a month, got it working today.
Thanks a million Chief, You got me out of a rabbit hole on this…
to clarify, need help on this with python code, saw the documentation for basket orders, but couldnt see python code for it..maybe am not well informed..but do need help
@sujith thanks, I did go through FAQs before posting, unfortunately nothing squarely on my issue. Would be grateful, if can help.
Kite is connected, ws drops after few ticks. If there was any environment error etc. then it would have closed before…
@tahseen whatever it be, none of your business. You can utilize your time better elsewhere than commenting on all and sundry's posts without getting paid for it.
I am not able to get value of 'indices'.. kite neither has .get nor has .GET method .. can u pls help how do I get indices levels? Eg. Nifty 50 index value (neither future nor options)
@rakeshr thank you Rakesh. Much appreciate your response. I get it now. Because it was inside a try/except statement without raise Error, so it was silent, leaving me clueless. Debugged it now. Thanks!
@sujit @rakeshr Hi.. kindly ignore, I could figure out problem and its solved now. tdf was getting indexed later than its index was referenced, just moved one line prior to inserting new columns in tdf and its solved.. many thanks for your help anyw…
Hi.. i could figure out that 'on_ticks' function 'inside the while loop' is not getting executed, the one that was defined prior to that, is getting executed.. AND returning ticks data now... I followed the related thread on same issue, and followed…
@rakeshr kindly bear with the quality of coding, am not a tech guy and have learned very elementary coding, just trying to make do things somehow...thanks anyways in advance for your help... appreciate your spirit..
I had trimmed the code above for your ease, following is the actual full code, in case you can spare time for longer code..
Note : code before kws.connect(threaded=True) is same as standard documentation above..
====================================…
@rakeshr i am using the same ws example that I used yesterday and got all ticks data.. today the same code is neither returning anything nor throwing any error !#@?
i collected the correct tokens from the instrument list, the same tokens worked yesterday.. today no data is returned for same tokens, I collected token data from kite.instruments method , same as in dump..
@rakeshr on saturday and sunday, i.e. yesterday, it did return data.. however, even during the market hours today, it did not return any data... I had tried during market hours also..
@rakeshr Hi... today I am not able to get any data..though kws shows connected as True, and console shows streaming activity, tick_data is blank.. could you help please?
@sujith Thanks for info. They have a lifetime paid subscription of Rs. 20k. If they can offer a monthly subscription, it would be helpful. Not sure at this stage how much useful it would be, so hesitant of committing large amount. Like I bought zero…
@rakeshr Thank you Rakesh and Tahseen. My issue is resolved. Its been my 2nd day, and I guess I would need more time to come to terms with technicals. However, as of now, I am able to get streaming data. Now figuring out how to save it and use multi…
@tahseen thank you for your comment. You are not aware of the background, I had a detailed chat with support team before taking API subscription and had told them that I am not a tech guy but know basics of coding and requested for a paid developer …
Its solved for the time being:
it gets connected, I was making an error in kws.connect - instead of passing 'access_token' I passed 'api_secret'. Now it connected, figuring out next step.
@rakeshr I looked at all documentation. the problem is not getting solved. "Reactor Not Restartable" error comes when 'kws.connect()' is run again in a live session already successfully connected. However, running it for the first time after establi…
Fabulous! I expected response like that on StackOverflow.com. I did go through these FAQs before posting, but couldn't find solution. Kindly bear, I am not a developer, but a finance professional. Have learnt basics of coding and trying to make do t…