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
    • V

      How to dynamically subscribe to new live data feed
      • vijayyande

      3
      0
      Votes
      3
      Posts
      30
      Views

      V

      @admin said in How to dynamically subscribe to new live data feed:

      @vijayyande said in How to dynamically subscribe to new live data feed:

      I have subscribed to 5 symbols currently and now i want to add more symbols so that i can receive LTP ticks over websockets. How is that possible?
      Its really very improtant

      Our websocket is in beta mode our team is working on it this functionality will be added in updated websocket.

      Also, web socket sample code that you have provided works in console mode but it is not working in Winforms application. In case of winforms no ticks are received at all. Am i missing something or not available from your side?

    • V

      How to use both historical and Trading api in single app
      • vijayyande

      2
      0
      Votes
      2
      Posts
      23
      Views

      A

      @vijayyande said in How to use both historical and Trading api in single app:

      I want to use both trading api and historical api in single app. How can i use them?
      I dont want to login two times, i want to login only once.
      This is very important otherwise its all useless to me

      You can use historical data api() in trading api.

    • I

      WebSocket Not returning any Order status
      • itspocx

      4
      0
      Votes
      4
      Posts
      41
      Views

      ananya

      @itspocx works of me..Check here

    • S

      PlaceOrder API does not work for SBIN-EQ/BUY/MARKET/MARGIN/DAY
      • skgkrish

      2
      0
      Votes
      2
      Posts
      18
      Views

      A

      Hi @skgkrish Please recheck the parameter and execute the order again.

    • F

      Trailing stoploss in ROBO Order
      • firosh

      3
      0
      Votes
      3
      Posts
      71
      Views

      A

      HI @firosh we will update you on this...post your client id here.

    • F

      How to check whether intraday is supported for a scrip?
      • firosh

      2
      0
      Votes
      2
      Posts
      21
      Views

      A

      HI @firosh There is no such functionality available currently.

    • 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
      83
      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
      83
      Views

      A

      Hi @asksameer welcome.