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

      Able to connect Websocket but not receiving any data.
      • pardeep2411

      1
      0
      Votes
      1
      Posts
      31
      Views

      No one has replied

    • R

      Margin Calculation
      • redmouseindia

      3
      0
      Votes
      3
      Posts
      42
      Views

      L

      @redmouseindia did you find any solution?

    • R

      getting AB2001 internal error while placing NFO sell order for BANKNIFTY
      • ramanagajula1999

      3
      0
      Votes
      3
      Posts
      30
      Views

      R

      Issue got resolved.
      I am passing "trailingstoploss" = 0 instead of null.. Then it started working..

    • S

      Web Socket: Is not returning anything
      • saleem

      1
      0
      Votes
      1
      Posts
      40
      Views

      No one has replied

    • R

      getting Issue
      • RamanRajoriya

      1
      0
      Votes
      1
      Posts
      21
      Views

      No one has replied

    • S

      GTT Triggered - SELL Order
      • saleem

      1
      2
      Votes
      1
      Posts
      45
      Views

      No one has replied

    • S

      GTT support
      • saleem

      2
      0
      Votes
      2
      Posts
      24
      Views

      S

      @saleem Got this working.

    • V

      Downloading All Instruments
      • vcb

      3
      0
      Votes
      3
      Posts
      44
      Views

      S

      Write a class and code like this...

      public class NSEInstrument
      {
      [JsonProperty("token")]
      public string token { get; set; }
      [JsonProperty("symbol")]
      public string symbol { get; set; }
      [JsonProperty("name")]
      public string name { get; set; }
      }

      public List<NSEInstrument> GetNSEInstruments() { WebRequest webRequest = WebRequest.Create("https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json"); HttpWebResponse response = (HttpWebResponse)webRequest.GetResponse(); if (response.StatusDescription == "OK") { Stream dataStream = response.GetResponseStream(); StreamReader reader = new StreamReader(dataStream); string responseFromServer = reader.ReadToEnd(); List<NSEInstrument> data = JsonConvert.DeserializeObject<List<NSEInstrument>>(responseFromServer); return data; } return null; }
    • S

      Login does not seem work
      • saleem

      1
      0
      Votes
      1
      Posts
      10
      Views

      No one has replied

    • V

      In **PlaceOrder** getting error - 404
      • Vishal.naykawala

      1
      0
      Votes
      1
      Posts
      19
      Views

      No one has replied

    • R

      Error converting value {null} to type 'System.Int64'. Path 'data.orderid', line 1, position 134.
      • ramanagajula1999

      3
      0
      Votes
      3
      Posts
      18
      Views

      K

      @ramanagajula1999 check the Quantity field. For me, it was quantity = 0 causing the issue.
      Replying now so that it can help others facing this issue.

    • G

      Banknity order placing issue
      • gaurav6110

      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • S

      Websocket order status not working
      • sanjayb

      1
      0
      Votes
      1
      Posts
      15
      Views

      No one has replied

    • Mr Depp

      About Index Future Historical Data
      • Mr Depp

      2
      0
      Votes
      2
      Posts
      35
      Views

      L

      Index Historical Data Works for me

      Ref : https://smartapi.angelbroking.com/docs/Historical
      use Body as follows:

      for Nifty

      {
      "exchange":"NFO",
      "symboltoken":"NIFTY",
      "interval":"ONE_HOUR",
      "fromdate":"2023-01-01 09:00",
      "todate":"2023-03-31 15:31"
      }

      for BANKNIFTY
      {
      "exchange":"NFO",
      "symboltoken":"BANKNIFTY",
      "interval":"ONE_HOUR",
      "fromdate":"2023-01-01 09:00",
      "todate":"2023-03-31 15:31"
      }
    • R

      Websocket not sending ticks for the 2nd run in visual studio
      • ramanagajula1999

      1
      0
      Votes
      1
      Posts
      60
      Views

      No one has replied

    • N

      how should I get the RSI during LIVE data feed.
      • Nichil72

      3
      0
      Votes
      3
      Posts
      77
      Views

      A

      Try this library for indicators. You need to pass on the historic data.
      Can yo help me with the basic code to obtain the historic data ? I am struggling with the new TOTP ...unable to connect. hope you can help me.

    • K

      {"status":false,"message":"Invalid totp","errorcode":"AB1050","data":null}
      • kunaljvyas

      1
      1
      Votes
      1
      Posts
      36
      Views

      No one has replied

    • V

      How to get multiple symbols price in single call
      • Vishal.naykawala

      2
      0
      Votes
      2
      Posts
      53
      Views

      A

      Hi @Vishal-naykawala , Yes, you can explore using websockets as an alternative. Websockets can stream real-time data for 1000 symbols.

    • V

      The token is invalid
      • Vishal.naykawala

      6
      0
      Votes
      6
      Posts
      88
      Views

      A

      @shivdasb1996
      Can someone share the updated method to use TOtp?
      GetTotp();
      //Login by client code and password
      obj = connect.GenerateSession(Client_code, Password, Totp);

      GenerateSession method accepts only 2 parameters. How to pass totp ?

    • N

      The token is invalid
      • Nichil72

      4
      0
      Votes
      4
      Posts
      50
      Views

      A

      @Nichil72
      hi, how are you managing to login with SDK not yet released for C#/Net.
      Are using an external library ? Can you share your method/code? GenerateSession accepts only 2 parameters. I see a third one in your code (GetTotp())
      thanks for the help.