Not Getting DATA: Where '&' Exist in Instrument name

WG8719
Unable to get values of Scripts which include '&' symbol.. also tried URL Masking '%26' but still not able to get data:
USING CODE
Dictionary ltps = kite.GetLTP(InstrumentId: new string[] { THE_EXCHANGE_NAME + ":" + THE_SCRIPT_NAME });
LBL6 = ltps[THE_EXCHANGE_NAME + ":" + THE_SCRIPT_NAME].LastPrice.ToString();
  • rakeshr
    @WG8719
    Are you forming instrument name custom string at your end? Make sure, there is no spaces in between.It should be['NSE:M&M']
  • WG8719
    ok thanks.. but now have another problem... when i put more than 1 script it fails to retrive value from it.
  • rakeshr
    @WG8719
    You need to write something like ['NSE:M&M','BSE:SBIN','NSE:ONGC'].
Sign In or Register to comment.