Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. vcb
    3. Topics
    V
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Groups 0

    Topics created by vcb

    • V

      _WS.RunScript(sagr.feedToken, Client_code, script, TASK);
      C#/.Net SDK • • vcb

      2
      0
      Votes
      2
      Posts
      23
      Views

      A

      mw: This stands for market watch, where you can monitor multiple stocks at once, receiving real-time quotes for your selected stocks.

      sfi: This refer to scrip feed information, which typically provides detailed stock-specific information such as the latest price, volume, and other metrics for individual instruments.

      dp: This stand for depth, which refers to market depth data showing the order book’s bid and ask levels, giving you insight into the buy and sell quantities at various price points for a stock.

    • V

      Downloading All Instruments
      C#/.Net SDK • • 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; }