Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Categories
    3. Python SDK
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • S

      not able to get ltp data using SmartConnect
      • sshah

      2
      0
      Votes
      2
      Posts
      15
      Views

      N

      You are using SmartConnect directly from library. Instead create a login function that logs in with the API key like below

      ANGEL_API_KEY = your_API_key
      smart_api = SmartConnect(api_key=ANGEL_API_KEY)

      and you can use smart_api.ltpData(...)

      it'll work. You're welcome.

    • S

      Whenever I try to authenticate via the SmartAPI Python SDK, the server returns: “LoginByPassword is not allowed. Please switch to Login by MPIN now.”
      • subhransu

      5
      0
      Votes
      5
      Posts
      21
      Views

      S

      @aabraham19
      "Your Client ID","Your PIN","Your totp here")
      use pin inplace of password you are ok. write if you cant solve this issue

    • R

      m2mrealized had incorrect data in the response of smartApi.rmsLimit()['data']
      • rakeshkr114

      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied

    • G

      How to find Stock-EQ Symbol's Token
      • 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']

    • K

      Best Practice for Squaring Off F&O Position with Pending SL Order via SmartAPI?
      • Konda

      1
      0
      Votes
      1
      Posts
      12
      Views

      No one has replied

    • M

      Order Place Failing
      • mahidaparth7

      2
      0
      Votes
      2
      Posts
      7
      Views

      A

      @mahidaparth7 please use 'producttype': 'INTRADAY' instead of 'MIS'

    • charlotteemma4

      Clarify
      • charlotteemma4

      1
      0
      Votes
      1
      Posts
      14
      Views

      No one has replied

    • A

      put market order but it is placed as AMO ..WHy
      • ananthapad

      2
      0
      Votes
      2
      Posts
      9
      Views

      A

      @ananthapad all the orders placed after market go as AMO orders. You can read it here in the place orders section - https://smartapi.angelone.in/docs/Orders

    • A

      This topic is deleted!
      • ananthapad

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • charlotteemma4

      MCX RESPONSE
      • charlotteemma4

      1
      0
      Votes
      1
      Posts
      13
      Views

      No one has replied

    • D

      Historical Data
      • dave

      2
      0
      Votes
      2
      Posts
      16
      Views

      A

      @dave you can use historical API for the same.

      historical API - https://smartapi.angelone.in/docs/Historical

      To get the token for a scrip of your choice, you can use instruments API.

      Instruments API - https://smartapi.angelone.in/docs/Instruments

    • T

      MarketStatus
      • Tanay1907

      2
      0
      Votes
      2
      Posts
      11
      Views

      A

      @tanay1907 There is no such API provided by Angel One.

    • T

      HELP!!!
      • tkrshpatel

      2
      0
      Votes
      2
      Posts
      10
      Views

      A

      @tkrshpatel You need to have a Angel One client ID to use the APIs.

      If you are already registered with Angel One, you can use your client ID, or else you can sign up for Angel One here - https://www.angelone.in/open-demat-account

    • S

      How to get Mutual Fund holdings
      • smohit94

      4
      0
      Votes
      4
      Posts
      15
      Views

      A

      @smohit94 You can get only those instruments, whose token is present in the instrument master.

    • G

      How to execute trade which is categorised under cautionary script
      • 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.

    • K

      This topic is deleted!
      • kira2001

      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • M

      Troubleshooting Empty Response & JSON Parsing Error for LTP Calls in Angel One SmartAPI
      • mdzainj

      2
      0
      Votes
      2
      Posts
      11
      Views

      A

      @mdzainj you can check the API details on the SmartAPI documentation, an alternate workaround that you asked for would be using websocket 2.0 for your use case.

    • D

      Optiongreek not returning any value.
      • darshanmc

      2
      0
      Votes
      2
      Posts
      6
      Views

      A

      @darshanmc It is working properly, there might be an issue with your code. You can try it in postman and check.

      Below is the snippet for the API request:

      { "name":"NIFTY", // Here Name represents the Underlying stock "expirydate":"16SEP2025" }
    • A

      instrument data
      • akunturwarAO

      2
      0
      Votes
      2
      Posts
      12
      Views

      A

      @blackdream yes it is normal. You can follow this URL for the same - https://margincalculator.angelone.in/OpenAPI_File/files/OpenAPIScripMaster.json

    • N

      gletch angel one
      • nimeshguliana

      2
      0
      Votes
      2
      Posts
      9
      Views

      A

      @nimeshguliana we have confirmed that the values are same, please recheck on your end.

    • undefined


      •


      Votes

      Posts

      Views