In your response i already see that you are getting margins. What do you mean margins for future values and also what do you mean by multi leg trading ?
Hi Sujith ,
I was doing exactly that, hope this works, have you or the kite connect team dealt with a proxy connection issue like this before ?
Regards
KULBIR
No formula for margin, it is decided by the exchange, however you can calculate the margin required by zerodha, that is based on certain formula, check their official website.
Hi keshav, kite api can be used for all kinds of trades that can be done normally from any trading platform and this includes shorting. To try things out try to short only 1 stock from the api , if it works then increase quantity.
I found some help here, but I couldn't find on how to implement this with Kite Connect websockets :
http://stackoverflow.com/questions/29430503/java-websocket-with-proxy
Hi Sujith,
I found a way to make a Proxied Socket instead of a normal socket.
Inside KiteTicker.java, I am trying to use the following piece of code :
WebSocketFactory wsFactory = new WebSocketFactory();
ProxySettings mProxySe…
Hi Sujith,
I am extremely sorry , I was not aware you were a technical person.
Coming back to the point of the proxy, I agree that you cannot help me behind the proxy.
Even without the proxy sometimes the websockets work and sometimes I get the fo…
Hi Sujith,
Is there a technical person involved in this discussion forum of Kite Connect who can help with this issue. If yes then please forward my request to him, your help will be really appreciated.
Regards
Kulbir
Ok Thanks, this was helpful, by the way can you please help the other issue mentioned in the other Thread Websockets not working when accessing behind a proxy
Hi Sujith,
There is no issue with myCode, as I am using the official Java Kite Connect client( without any modifications). By the way I debugged and found that in the following method, the proxy is not being set and instead of calling createProxie…
Yes I am subscribing with Array List of Integers. I am able to get ticks today, yesterday seems like there was some issue with websockets. Do the Tokens keep changing on a daily / monthly basis, can I hardcode them into my code as I need only a limi…
Hi Sujith,
I am sorry but the Handshake Exception still keeps Occurring, I have to execute the above 2 Jars every time to fix that exception ? What could be the reason for that exception and is it because of this that I am getting zero bytes from …
Hi Sujith,
I am not facing the SSL Handshake issue anymore, I fixed it by replacing the following two JARS for my JRE :
local_policy.jar
US_export_policy.jar
Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 8 Downlo…
Hi Sujith,
Agreed that Kite Ticker is sending ticks with zero bytes but how do I get the data, shouldn't the websocket's be sending data during market Hours ? I have tried calling the websockets with different Symbol tokens, for Example HINDALCO(31…
Still empty packets being returned, I am not sure whether this is an issue from KITE CONNECT or from my side, I am able to see the size as zero bytes, although the connection parameter is returning as true. Quotes are working fine, so it is not an i…