Does Tech.Zerodha.KiteConnect package support in .net core 3.1

nameisbk
Hi team,

I need to integrate kit ticker in .net core 3.1 application but when I install nuget I see eroors in it (please refer below image). Am I missed anything or it is not possible at the moment?

Your quick help would be appreciated.

Thanks.

  • trade_then
    try using .netstandard branch directly in your project.

    you seem to be using .net framework branch which are all other branches except netstandard branch.

    Thanks
    Regards
  • nameisbk
    Hi @trade_then, thanks for your quick response but still I'm unable to get you properly. sorry about that. My requirement is very simple where I am using ticket in .net core 3.1 application and send ticket data using SignalR to Angular UI. As per your suggestion what I have to follow? do you have any reference which I can follow to do this.

    Thanks in advance for your support.
  • trade_then
    i was suggesting to
    • download the source code of netstandard branch
    • add it as a project in your solution.
    • reference it in your coreWebApp as project reference.
    instead of using nuget.

    By ticket! do you mean ticker the tick data via websocket?.
    whatever it is once you have it in your app you sure can pass it
    around as you like.

    regarding Angular UI i am sorry i never programmed for web.

    Signal R. which underneath uses websockets
    when ever possible as default to transport data. should be fine.
    since incoming data is also via websocket simply toss it over.


    Thanks
    Regards

  • nameisbk
    nameisbk edited July 2020
    @trade_then Thanks for detailed comment, yes I mean for Tiker data to be sent over Angular using Socket. I follow your step and I'm able to connect + send data to angular. Big thanks to you.

    One more help if possible or may be I can create new discussion for the same to how can I get accessToken using calling Zerodha API from .net backend to get it without passing manually to connect with tiker?

    Thanks
  • trade_then
    after


    var user_credentials = kite.GenerateSession( request_token, Secret_Text.Trim() ) ;
    userInfo = user_credentials ;

    Store_LoginInfo( user_credentials ) ;

    you can now store it however you want in a database or a disk file.
    to be fetched later.

    for example:-

    string a = string.Empty;
    a = KiteConnect.Utils.JsonSerialize( user_credentials ) ;

    if ( !string.IsNullOrWhiteSpace( a )) {
    System.IO.File.WriteAllText( fl.FullName, a ) ;
    }

    Debug.WriteLine( a ) ;
    then deserialise by opening the saved file or extract from database to which you
    have saved the user_info in your app.

    Thanks
    Regards
  • nameisbk
    var user_credentials = kite.GenerateSession( request_token, Secret_Text.Trim() ) ;
    userInfo = user_credentials ;

    Store_LoginInfo( user_credentials ) ;


    I want to know how do I get "request_token" as it expired after some time so I want something or maybe any API that I can call to get it rather than manual login into the Zerodha portal and get the token to connect with ticker portal.

    Sorry if I misguide you :(

    Thanks.
  • trade_then
    officially you do have to login manually once a day.
    the information you get after login can be used through out the day,
    without re-login.

    As only access token is required for the websocket.
    you don`t have to GenerateSession every time you open a websocket or ticker connection.
    the access token will be there in user_credentials you are storing.

    There are no APIs to automate login.

    Thanks
    Regards
Sign In or Register to comment.