Retrieving Holdings and Positions with KiteCore

rama
Hi,

Is there a sample code to retrieve Holdings and Positions using C# API?

I'm getting error while trying to run:
Console.WriteLine(kitecon.Holdings()["status"].ToString());


Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given
key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at CallSite.Target(Closure , CallSite , Object , String )
at KiteCore.Core.KiteConnect.Request(String route, String method, Dictionary`
2 param) in KiteCore-master\KiteCore-maste
r\Core\KiteConnect.cs:line 861
at KiteCore.Core.KiteConnect.Get(String route, Dictionary`2 param) in KiteCore-master\KiteCore-master\Core\KiteConnect.
cs:line 731
at KiteCore.Core.KiteConnect.Holdings() in KiteCore-master\KiteCore-master\Core\KiteConnect.cs:line 495
at KiteCore.Demo.Main(String[] args) in
\KiteCore-master\KiteCore-master\Demo.cs:line 629


Thanks






Tagged:
Sign In or Register to comment.