Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Categories
    3. Python SDK
    Log in to post

    Python SDK

    • M

      List of all Smartapi functions in Python
      • Mnagesh  

      3
      1
      Votes
      3
      Posts
      225
      Views

      V

      @Mnagesh Thanks nagesh this deservers a ping so new people can also know this @admin suggest pinging this or add it to your github readme.md file Coming to this great work and there are couple of things i wanna ask I dont see function for live data has this function been stopped? Does any of the function returns list/number of buyers and sellers and also bid and ask values for equity?
    • R

      Difference between status and orderstatus
      • rajanprabu  

      5
      -1
      Votes
      5
      Posts
      323
      Views

      PandaTrade

      yes good info. Returning to the forum after 2 years just to get this answer.
    • V

      Does anyone know how to short using python sdk? and also use leverage to buy 5x of a stock lets say sbi
      • Vignesha  

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • V

      Cant sign in to api
      • Vignesha  

      7
      2
      Votes
      7
      Posts
      36
      Views

      S

      Hi @techbytecache, This was an intermittent issues and was resolved on immediate basis. Feel free to reach out on forum or on smartapi@angelbroking.com for any other concerns. Happy to help, thank you.
    • K

      AngelOne API error when fetching holding or placing order (50% time)
      • KC  

      2
      0
      Votes
      2
      Posts
      12
      Views

      S

      Hi @KC, This was an intermittent issues and was resolved on immediate basis. Feel free to reach out on forum or on smartapi@angelbroking.com for any other concerns. Happy to help, thank you.
    • M

      Not receiving ticks on any subscription.
      • mraichura  

      2
      0
      Votes
      2
      Posts
      6
      Views

      S

      Hi @mraichura, This was an intermittent issues and was resolved on immediate basis. Feel free to reach out on forum or on smartapi@angelbroking.com for any other concerns. Happy to help, thank you.
    • P

      Websocket2.0 just stops after running for 1 min without any errors etc.
      • projectSB  

      5
      1
      Votes
      5
      Posts
      48
      Views

      P

      @af I'm using the Websocket version 2.0 code as provided in this Github link: https://github.com/angel-one/smartapi-python This portion: ####### Websocket V2 sample code ####### from SmartApi.smartWebSocketV2 import SmartWebSocketV2 from logzero import logger AUTH_TOKEN = "Your Auth_Token" API_KEY = "Your Api_Key" CLIENT_CODE = "Your Client Code" FEED_TOKEN = "Your Feed_Token" correlation_id = "abc123" action = 1 mode = 1 token_list = [ { "exchangeType": 1, "tokens": ["26009"] } ] sws = SmartWebSocketV2(AUTH_TOKEN, API_KEY, CLIENT_CODE, FEED_TOKEN) def on_data(wsapp, message): logger.info("Ticks: {}".format(message)) # close_connection() def on_open(wsapp): logger.info("on open") sws.subscribe(correlation_id, mode, token_list) def on_error(wsapp, error): logger.error(error) def on_close(wsapp): logger.info("Close") def close_connection(): sws.close_connection() Assign the callbacks. sws.on_open = on_open sws.on_data = on_data sws.on_error = on_error sws.on_close = on_close sws.connect()
    • M

      How to send stock data in django webpage through WebSocket
      • mt  

      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • A

      Unable to Place orders for Options Trading , able to place orders for equity
      • Avishah123  

      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • P

      Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate
      • psm007  

      9
      0
      Votes
      9
      Posts
      31
      Views

      P

      I've recently reached out to the Angle Support team and, while I received a prompt response, I must admit that I was not entirely satisfied with the answer provided. I've since posed a few more questions to them and am currently awaiting their reply.
    • R

      ModuleNotFoundError: No module named 'smartapi'
      • Ramkrishna  

      9
      0
      Votes
      9
      Posts
      169
      Views

      B

      @sunilsahub4u thanks for your message i was able to debug the issue. i uninstalled smarapi and reinstalled with pip install smartapi-python==1.3.4 now the code is working for me
    • R

      Order placement failed: string indices must be integers, not 'str'
      • rohya.tayade  

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • R

      Webscoket order status not connecting
      • renjithvamanan  

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • A

      Access denied because of exceeding access rate
      • aki8588  

      2
      0
      Votes
      2
      Posts
      16
      Views

      M

      Yes, same issue faced multiple times. Even on sending 1 request in a second, it is giving the error for Holdings API. This has been happening almost every day when the API is used. Why is the team not fixing this, even after so many users reporting these in multiple posts?
    • M

      True Data
      • Mnagesh  

      2
      0
      Votes
      2
      Posts
      16
      Views

      A

      @Mnagesh What is True Data Subsection?
    • P

      Error in WebSocket 2.0: byte indices must be integers or slices, not str
      • projectSB  

      1
      0
      Votes
      1
      Posts
      15
      Views

      No one has replied

    • R

      Open interest in websocket
      • rjbanna  

      35
      0
      Votes
      35
      Posts
      421
      Views

      A

      @Deb88 duddy can you tell me how can solve my this problem Attempting to resubscribe/reconnect...
    • A

      buddy your wed socket is not working Attempting to resubscribe/reconnect...
      • atif27khan  

      1
      0
      Votes
      1
      Posts
      0
      Views

      No one has replied

    • A

      and one have salution for this problem
      • atif27khan  

      1
      0
      Votes
      1
      Posts
      0
      Views

      No one has replied

    • N

      Angel one is not reliable for algo trading: getCandleData() method is returning wrong data than there own website's data
      • N51542847  

      1
      0
      Votes
      1
      Posts
      26
      Views

      No one has replied