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
    • Mnagesh

      List of all Smartapi functions in Python
      • Mnagesh

      12
      1
      Votes
      12
      Posts
      1236
      Views

      M

      @mnagesh Thnx buddy. May I have any example of gttCancelRule ?

    • S

      Difference between status and orderstatus
      • Surya 1

      6
      0
      Votes
      6
      Posts
      504
      Views

      H

      @admin i'm not getting this difference why both status has same value

    • T

      Unable to fetch data using Python
      • T2453A1

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • H

      login issue
      • harish9814

      2
      0
      Votes
      2
      Posts
      3
      Views

      A

      Hi @harish9814

      Please let us know which API are you trying to consume.

    • G

      SmartAPI login blocked — Request Rejected (support ID: 11546798736919622241)
      • gauravkhurana02

      2
      0
      Votes
      2
      Posts
      4
      Views

      A

      Hi @gauravkhurana02

      Please use below API to Login.

      https://apiconnect.angelone.in/rest/auth/angelbroking/user/v1/loginByPassword

      Refer below documentation before building apps.

      https://smartapi.angelbroking.com/docs/User#Authenticate

    • A

      Nifty Futures historical data
      • abhay15.akshukla

      5
      0
      Votes
      5
      Posts
      10
      Views

      A

      @admin said in Nifty Futures historical data:

      es you can use the same getCandleData API in request pass NFO for exchange param.

      the historical data api can provide only data of live F&O contracts, not the expired ones. So this is very limited data for futures past data. The request format requires symboltoken. The token comes from https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json which provides token only for live F&O. My original question remain remain unasnwered: How to get historical data of Nifty Futures?
      {
      "exchange": "NFO",
      "symboltoken": "46823",
      "interval": "THREE_MINUTE",
      "fromdate": "2024-06-07 09:15",
      "todate": "2024-06-07 15:30"
      }

    • A

      Nifty Future market price
      • abhay15.akshukla

      4
      0
      Votes
      4
      Posts
      10
      Views

      A

      Thank you @abhay15-akshukla

      Happy Trading

    • M

      unable to get option data login issue Python
      • mistrymah

      2
      0
      Votes
      2
      Posts
      4
      Views

      A

      @mistrymah

      Please let us know which API are you using to Login.

    • D

      websocket connection
      • dvsaraf5

      2
      0
      Votes
      2
      Posts
      21
      Views

      A

      @dvsaraf5

      Please share respective connection request here to verify

    • M

      BO Order edit not allowed via UI
      • mahidaparth7

      3
      0
      Votes
      3
      Posts
      10
      Views

      A

      @mahidaparth7

      No recent changes been done to Place Order API. Pls let us know what kind of error you're getting while modifying.

    • R

      Unable to Create NewApp ( API )
      • RK_Labs

      2
      0
      Votes
      2
      Posts
      9
      Views

      A

      @RK_Labs

      Pls attach error screenshot to get to know more about the error.

    • P

      smartapi error
      • prabhathhhh

      4
      0
      Votes
      4
      Posts
      27
      Views

      A

      Do remove project & checkout again

    • R

      WebSocketV2: No Tick Data After Successful Connection and Subscription (SmartAPI)
      • RandomGuy

      3
      0
      Votes
      3
      Posts
      29
      Views

      S

      @randomguy mode is 3 not full

    • D

      Symbol Token
      • Dipankar

      7
      0
      Votes
      7
      Posts
      30
      Views

      D

      I am sending:
      {"mode":2,"tokenList":[{"exchangeType":2,"tokens":["47706","47671"]}]}}
      I am not getting NIFTY values

    • Mnagesh

      Greeks - Delta is it accurate by Angel one ?
      • Mnagesh

      3
      0
      Votes
      3
      Posts
      10
      Views

      Mnagesh

      @admin did you checked? greeks are not accurate .
      so we cannot depend on greeks provided by smartapi .

    • D

      Development
      • Dipankar

      2
      0
      Votes
      2
      Posts
      10
      Views

      A

      @dipankar For testing, you can just ask the program to note down scrip, entry price, exit price, entry time and exit time in CSV. you will not need a static IP for that.

    • S

      not able to get ltp data using SmartConnect
      • sshah

      2
      0
      Votes
      2
      Posts
      13
      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
      19
      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
      6
      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']