Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Categories
    3. C#/.Net SDK
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • D

      WebSocket Not returning any quote info
      • divakar620

      2
      0
      Votes
      2
      Posts
      36
      Views

      A

      HI @divakar620 We will get back to you our team is working on websocket.

    • D

      AB1018 : Failed to get symbol details
      • divakar620

      9
      0
      Votes
      9
      Posts
      82
      Views

      D

      @admin

      Is that update sdk is taking new build from git? if yes, i did same, but still problem exisit.

      SmartApi connect = new SmartApi(api_key, JWTToken, RefreshToken); OutputBaseClass obj = new OutputBaseClass(); //Login by client code and password obj = connect.GenerateSession(Client_code, Password); AngelToken agr = obj.TokenResponse; Console.WriteLine("------GenerateSession call output-------------"); Console.WriteLine(JsonConvert.SerializeObject(agr)); Console.WriteLine("----------------------------------------------"); //Get Token obj = connect.GenerateToken(); agr = obj.TokenResponse; Console.WriteLine("------GenerateToken call output-------------"); Console.WriteLine(JsonConvert.SerializeObject(agr)); Console.WriteLine("----------------------------------------------"); //Get Profile obj = connect.GetProfile(); GetProfileResponse gp = obj.GetProfileResponse; Console.WriteLine("------GetProfile call output-------------"); Console.WriteLine(JsonConvert.SerializeObject(gp)); Console.WriteLine("----------------------------------------------"); OrderInfo ord = new OrderInfo(); ord.variety = AngelBroking.Constants.VARIETY_NORMAL; ord.tradingsymbol = "NIFTY11NOV2118100CE"; ord.symboltoken = "50055"; ord.transactiontype = AngelBroking.Constants.TRANSACTION_TYPE_BUY; ord.exchange = AngelBroking.Constants.EXCHANGE_NFO; ord.ordertype = AngelBroking.Constants.ORDER_TYPE_MARKET; ord.producttype = AngelBroking.Constants.PRODUCT_TYPE_CARRYFORWARD; ord.duration = AngelBroking.Constants.VALIDITY_DAY.ToString(); ord.quantity = 50.ToString(); obj = connect.placeOrder(ord); OrderResponse Ores = obj.PlaceOrderResponse; //LogOut obj = connect.LogOut(Client_code); LogOutResponse lg = obj.LogOutResponse; Console.WriteLine("------LogOut call output-------------"); Console.WriteLine(JsonConvert.SerializeObject(lg)); Console.WriteLine("----------------------------------------------");

      I am gettiung below response.
      {"status":false,"message":"Internal Error","errorcode":"AB2001","data":null}

      Please clarify me, as i am spending decernt time to build algos using Angel, but you API or WebSocket not upto the level of my expectation, i am not sure, whether as i doing wrong or, it your API fault.

    • J

      Websocket Streaming Code for C# web application
      • jorawarjora

      5
      0
      Votes
      5
      Posts
      77
      Views

      D

      @admin I too have similar problem, not receiving proper data, just receiving Datetime and value, tick information was not there.. I am using same code which you share us .

      script : nse_fo|43141 => for NIFTY03NOV2117000PE

      static void WriteResult(object sender, MessageEventArgs e)
      {
      Console.WriteLine("Tick Received : " + e.Message);
      }

      All the time its printing Tick received with DateTime stamp, Is script param correct?

    • L

      Live Data feed using websocket in C#
      websocket • • LKS

      6
      0
      Votes
      6
      Posts
      118
      Views

      A

      Hi @LKS Our team is working on websocket we will update you once we finish it.we appreciate your patience

    • M

      Login problem in c# provide solution for c# and also mentioned from where to get these details :client id password api key
      • mukundmalpani

      2
      0
      Votes
      2
      Posts
      20
      Views

      M

      Im getting following error
      AB1007
      USER IS BLOCKED FOR TRADING
      how to resolve this

    • K

      what is the max limit for number of tokens in feed subscription
      • kunaljvyas

      2
      0
      Votes
      2
      Posts
      26
      Views

      A

      HI @kunaljvyas post your response here.

    • F

      Historic API not returning data for sysmboltokens
      • firosh

      11
      0
      Votes
      11
      Posts
      79
      Views

      J

      @admin
      @jaydip
      use try catch block

    • F

      Not able to fetch Holding details
      • firosh

      5
      0
      Votes
      5
      Posts
      43
      Views

      A

      hi @firosh Please download the latest copy of DLL from git repo DLL folder and add reference to your project .

    • H

      Order confirmation in web socket Issue
      • Hardik HIngrajia

      1
      0
      Votes
      1
      Posts
      25
      Views

      No one has replied

    • P

      how to get position data in c# form
      • p88

      2
      0
      Votes
      2
      Posts
      22
      Views

      A

      HI @p88 You can use get position API for the above requirement.

    • F

      how to stream ohlc value for nifty and india vix
      • fcoder

      6
      0
      Votes
      6
      Posts
      82
      Views

      A

      HI @fcoder We are working on it you will be get it in our next release.

    • F

      security concern with GenerateSession method of SmartApi class .net
      • fcoder

      2
      0
      Votes
      2
      Posts
      26
      Views

      A

      HI @fcoder Connect us at api@angelbroking.com

    • S

      Getting Error for GetLTPData API as "Failed to get symbol details"
      • Swapnil

      2
      0
      Votes
      2
      Posts
      27
      Views

      A

      HI @Swapnil Kindly post the screenshot of mapping of this symbol token and this symbol here from the instrument dump file.

    • A

      Getting error when place order using web application
      • asksameer

      13
      0
      Votes
      13
      Posts
      82
      Views

      A

      Hi @asksameer welcome.

    • W

      Websockets for .net SDK
      • West2t14

      2
      0
      Votes
      2
      Posts
      46
      Views

      A

      Hi @West2t14 You can go through doc:
      https://github.com/angelbroking-github/smartapi-dotnet

    • W

      MessageReceived method/function not available in the smart-api.dll
      websocket • • West2t14

      8
      0
      Votes
      8
      Posts
      56
      Views

      W

      @admin said in MessageReceived method/function not available in the smart-api.dll:

      HI @West2t14
      The MessageReceived is not missing in the library, It's there. you has to create an instance of WebSocket class of AngelBroking library as follow then you can get access to this event handler

      AngelBroking.WebSocket _WS = new AngelBroking.WebSocket(); var exitEvent = new ManualResetEvent(false); _WS.ConnectforStockQuote(sagr.feedToken, Client_code); ​ if (_WS.IsConnected()) { string script = "nse_cm|2885&nse_cm|1594&nse_cm|11536&nse_cm|3045"; _WS.RunScript(sagr.feedToken, Client_code, script, "mw"); _WS.MessageReceived += WriteResult; //_WS.Close(true);// to stop and close socket connection }

      Thank you! Will check it out!

    • M

      How to get Symbol Token for options
      • mishipal

      8
      0
      Votes
      8
      Posts
      173
      Views

      A

      HI@mishipal said in How to get Symbol Token for options:

      guys i am having hard time getting token list. Can someone share some code. I am making a winforms application

      please go through below link
      https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

    • T

      Unable to fetch option data for Banknifty?
      • TradeMonk

      8
      0
      Votes
      8
      Posts
      150
      Views

      A

      HI @mishipal convert the json to csv.
      https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

    • A

      get Order Book, get Trade Book, get Holding, get Position, Convert Position, get RMS
      • ashishmavani

      10
      0
      Votes
      10
      Posts
      180
      Views

      A

      HI @ashishmavani As discussed above issue is resolved.

    • R

      connect.placeOrder returns error
      • redmouseindia

      8
      0
      Votes
      8
      Posts
      58
      Views

      A

      @redmouseindia
      Ok Thanks buddy