Navigation

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

    Topics created by Gaurang

    • G

      How to execute trade which is categorised under cautionary script
      Python SDK • • Gaurang  

      2
      0
      Votes
      2
      Posts
      13
      Views

      A

      @gaurang You won't be able to trade in such scrips via SmartAPI. You can trade in such scrips via app or web.
    • G

      How to add stoploss separate
      Python SDK • • Gaurang  

      1
      0
      Votes
      1
      Posts
      8
      Views

      No one has replied

    • G

      How to find Stock-EQ Symbol's Token
      Python SDK • • Gaurang  

      3
      0
      Votes
      3
      Posts
      22
      Views

      D

      @gaurang instrument_url = 'https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json' response = urllib.request.urlopen(instrument_url) instrument_list = json.loads(response.read()) def token_lookup(ticker, exchange='NSE'): for i in instrument_list: if i['symbol'] == ticker and i['exch_seg'] == exchange:# and i['symbol'].split('-')[-1] == 'EQ': return i['token'] token_lookup('NIFTY50') def symbol_lookup(token, exchange='NSE'): for i in instrument_list: if i['token'] == token and i['exch_seg'] == exchange and i['symbol'].split('-')[-1] == 'EQ': return i['name']