@sameer
The possible close reason is AWS.
Sometime times AWS Firewall blocks incoming traffic for unknown reason(Just for few seconds to few hours).
We also faced this problem earlier in AWS and initially thought of Kite Server might be causing t…
@jasdeepwalia
We are receiving this symbol. May be some corrupted or missing symbol files.
Do as follows:-
Just delete the all symbol list files from your app directory & relogin.
This will download fresh symbol list from Kite Server.
Hope thi…
@desiredoom
You need to subscribe Quotes for the ticker for which you need streaming data.
Once Subscribed, You will get streaming data in the QuotesReceivedEvent.
You just need to add a handler and do whatever you want with the data.
The sample …
@desiredoom
Yes..But not necessarily pressing the button...
You can just call the Login, GetAccessToken & Download Instruments in a single sub or button also.
That sample is just to illustrate individual methods...
& just a simple impleme…
You can refer the help_doc at https://www.howutrade.in/Docs/KiteDotNet/html/Introduction.htm which has all the methods and properties supported and how to call the methods and their sequence & exceptions.
Below is brief on Login Flow.
Post Succ…
@desiredoom
Could pls tell us what you are exactly doing or trying...?
That show msgbox shows that websocket is not live...means websocket is not connected or not yet started.
You need to start websocket.
@deco
You can use KiteXL in C# , But it doesn't have Events for Streaming Quotes,instead uses RTD server.
So you need to implement RTD client in C#, but it is complex.
Better use, KiteDotNet and it has everything.
@[email protected]
The First & Foremost thing to remember while working with MS Excel is whenever a Cell value Changes,Excel Re-Calculates all Formula where the Cell is Referenced..
Issue 1:-
SubscribeQuotes Function will Return True when it…
@k365
KiteXL is specifically for Excel & it doesn't have QuotesUpdate Event,But Only has RTD Server.
You need to Change Throttle Interval in Excel, by default Excel Refreshes at an interval of 2sec.
@Raj-Tech
Whenever you create new instance of KiteXL, it will go through the process of Login.
When you close the Powershell, it will dispose the created instance and releases all resources.
@vivek
Thanks for the Clarifications.
So TR OMS is stable but only their API's (XML,COM(Used by Pi) etc) having issues,
Kite Connect will use own XML API instead of what provided by TR.
Is there any progress going on COM API also...?
@Kailash
Great Work...!!! Keep doing....!!!
Could You Pls confirm the below...?
1. Present Setup
Kite Client --> Kite Server --> TR OMS --> Exchange
2.Future Release
Kite Client --> Kite Server --> Exchange
If second one is the ca…
Hi,
The issue "Microsoft Office Excel has stopped working" is something related to Excel/OS/Registry. You have to analyse and find when & where the Error is occurring and troubleshoot accordingly.Further the Issues very broad and anything may c…
@Sowmay
Add .csv extension to the downloaded file.
Or
Just use the below VBA to download.
This will download the instruments.csv file in Documents Folder or Desktop.
Sub DownloadInstruments()
On Error GoTo ErrHandler:
Dim dUrl As String
dUrl = …
@k365
Yes...It can be used...But this Library is Specifically for Excel &
It doesn't have QuotesReceivedEvent, instead has RTD server for Excel.
You can try the http://www.howutrade.in/docs/KiteXL/html/KiteXL.xlsm
This sample Excel Sheet has…
User Defined Functions List...For Reference...
Order Requests
You can perform all kind of order request such as Place, Modify & cancel etc from within the Excel Cell .
Place Regular, BO & CO orders within the cell by Just inputing the r…
@Gopalakrishnanbalraj
The Sample Project is vb.net, But you can simply port it to C#
Api Key & Api Seceret is must to connect to Kite.trade
Just Follow the below Steps.
1.Signup for Kite Developer a/c
2.Create app in Developer a/c
3.Now you ha…
@Gopalakrishnanbalraj
Try this http://www.howutrade.in/docs/kitedotnet/
or
http://www.howutrade.in/docs/kiteXL
You can Simply Call the Kite.PlaceBO (
Exch As String,
TrdSym As String,
Trans As String,
Qty As Integer,
LmtPrice As Double,
Sq…
On successful login, the window will close automatically..
We are using it without any problem, there should be something you are missing.
I Have sent couple of private message to reach you..Didn't get any response from you..
@k365
If you are using SampleKiteApp, Just follow the Below Steps.
Login to your Kite Developer a/c. Ensure Your Redirect url is http://127.0.0.1
If not change it to http://127.0.0.1 & Save.
In your PC
Go to Internet Options --> Security -…
@ramangoswami
Current Library is exhaustive & making it COM visible, and accessing it from Excel Vba is out of scope.
That's why Building a Light version for Excel.
But if you want to use the current library in Excel.
Just create a new Class L…
@k365
Since You are using KiteDotNet Library, You no need to use browser to get access token.
Just call the GetAccessToken method after login.
And also KiteDotNet comes with local Webserver, that will automatically start local webserver if it is n…
@k365
The possible reason could be,
if You are using web browser control for login and Your redirect url is http://127.0.0.1,
then if you are not running local web server, your http://127.0.0.1 may not be reached.
So it gives 404 error.Running a L…
@Gyan.Sikdar
It is NIFTY 50
and also when you call GetInstruments, it will download & save instruments list for all exchange enabled for your a/c in your application directory.
You can check the SymbolList_NSE.txt, it has all index names.
@amitsingh
You should generate request_token and Post it in the same session.
You are generating the request_token in web control (Session1)
& Posting it in your web browser (session2)
You can simply call the GetAccessToken method in the lib…
@Gyan.Sikdar
The QuotesReceivedEvent Suppots all Price Fields including market depth.
You Just add a handler to retrieve the Price Fields.
Historical data supports only DOHLCV.
http://www.howutrade.in/docs/kitedotnet/html/T_KiteDotNet_QuotesReceiv…
@Prem
Your Qty filled as A.
But in Real time that may not happen like that. & Chance are that you may get better Avg price than 11.42 in A. Bcoz, the Order Book doesn't include any undisclosed qty.
Say for Example, if there is undisclosed qty…
@Ganesh
You can remove WebServ as it doesn't required for KiteDotNet.
Websocket4Net and Newtonsoft.Json are third party and You can check it at GitHub for x64.
Could You pls explain what you are trying to achieve, so that I can check other possib…
@Ganesh
Kite.Trade provides data like that only.
But you can Just Reverse it.
use the Array.Reverse(HistData)
After the above code your array will have New element at index 0 and older elements at last.
@Ganesh
It should be CRUDEOIL16NOVFUT
The GetInstruments call will download & save symbol list in your app folder for all exchanges enabled for your client Id..
SymbolList_MCX.txt.
You can refer it.
@Ganesh
The GetInstruments call will download the symbol & write in a text file at your app folder.
SymbolList_MCX.txt.
Anyway..here is the list.
LEAD17JANFUT
NATURALGAS16OCTFUT
ALMOCTNO1616OCTFUT
SLMFEBAP1717FEBFUT
SLMNOVAP1716NOVFUT
ZIMOCTNO…
@Ganesh
We added two Methods for Historical Data.
(1) GetHistData()
(2) GetHistDataField()
GetHistData:-
This will return array of string.
Each element in the array represent single DOHLCV seperated by comma.
Below is the example how to loop
Dim…
@Kailash
the System.Net.Websockets is available from .Net 4.5 .
But I'm trying to Implement my own class in .Net 4.0 using TcpClient.
I can connect to my local server successfully but not with websocket.kite.trade.
So Could You share the header det…
@Kailash
Please look into the issue.
&& Please create 'VB.Net Client' Category in the Forum.
Planning to release the Vb.Net Library with all Functions Exposed by Kite Connect in couple of Days for the use .Net Developers.
Welcome...!
You can Put 0 to Non Applicable Fields
Like, in Sl Order Modification Put 0 for Quantity & LimitPrice
vice-versa for Tgt Order Modification
@RH1558
Normally , this happens in BO as Ist Leg Order may execute at any price due to fluctuations
and SL & Tgt Prices calculated from Executed Price of 1st Leg.
You can modify the SL price once the Order is placed by OMS.
Below is the Examp…
@RH1558
To Modify Sl or Tgt Order
Send PUT Request
https://api.kite.trade/orders/bo/[SL or TGT OrderId]
/ api_key
/ access_token
/ tradingsymbol
/ exchange
/ parent_order_id 'Fir…
@RH1558
Yes You can Modify Trigger Price of Stoploss Order as well as Limit Price of Target Order.
Note, Stoploss & Target Order will be placed by OMS only after your First leg Order status is COMPLETE.
If first leg Order is OPEN, then no Sl &a…
@maravinthkumar
You need to send DELETE Request
Example:-
"https://api.kite.trade/orders/co/151220000000000?api_key=xxx&access_token=yyy&parent_order_id=151210000000000"
Kite Server will modify your Trigger Pending Stoploss order(TrgPrice…
@maravinthkumar
When You send DELETE Request ""https://api.kite.trade/orders/co/151220000000000?api_key=xxx&access_token=yyy&parent_order_id=151210000000000"
Kite Server will modify your Trigger Pending Stoploss order(TrgPrice:540) to Mark…
@Kailash
As a temp solution, I'm dividing the Orders Value by 65536 to Get orders.
Pls check it in Your End.
I also check my code for any Errors.
What confusing is, if it's a code mistake or unpacking error, then all fields should have wrong value,…
@Kailash
Here is the code...
Dim bidorders1_arr(4) As Byte
Array.Copy(Pkt, 54, bidorders1_arr, 0, 4) 'Pkt is the Quote Packet for the Instrument.
Array.Reverse(bidorders1_arr, 0, 4) 'BigEndian to LittleEndian
Dim bidorders1 As Int32 = BitConverter.…
@vivek
Im gettin the following Response.
The remote server returned an error: (500) Internal Server Error.
Message:An internal server error occurred
ErrorType:GeneralException
Order Ids
160930000102723 (Main)
160930000102724 (Tgt)
1609300001027…
Hi Vivek,
AXIS16NOVFUT - Inst Token 210321413
Getting the following error for BFO Scrips.
Message : Trading Symbol doesn't exist for exchange
Error Type : OrderException
But the Instruments list call for BFO returns, this symbol only.
Pls look a…
Yes vivek, I have done the same, But still getting Error 400 bad request.
Below is how im sending
For FirstLeg Order Modification i.e. Main Order.
reqparm.Add("api_key", api_key)
reqparm.Add("access_token", access_tok…