Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. darshil611
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Groups 0

    darshil611

    @darshil611

    1
    Reputation
    2
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    darshil611 Unfollow Follow

    Latest posts made by darshil611

    • RE: Receiving CORS error while creating new app

      @chimntu Can you share your code here i will help you only connection code

      posted in Bugs
      D
      darshil611
    • RE: How to find Stock-EQ Symbol's Token

      @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']

      posted in Python SDK
      D
      darshil611
    • RE: how to get Nifty50 all equity tokens?

      @tanmoydev
      instrument_url = 'https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json'

      response = urllib.request.urlopen(instrument_url)
      instrument_list = json.loads(response.read())

      instrument_list = [i for i in instrument_list if i['name'] == "NIFTY"]

      posted in General Discussion
      D
      darshil611
    • RE: How to square off option order

      @admin @admin123 Plesae answer my question

      posted in General Discussion
      D
      darshil611
    • RE: Best Practice for Squaring Off F&O Position with Pending SL Order via SmartAPI?

      @konda can you write one code example for it

      posted in General Discussion
      D
      darshil611
    • How to square off option order

      anybody please write 1 example of square off order in option NIFTY14OCT2524200PE like this ticker

      posted in General Discussion
      D
      darshil611