Navigation

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

    S2108014

    @S2108014

    “Bond. James Bond.”

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

    S2108014 Unfollow Follow

    Best posts made by S2108014

    • Working Sample code to Place Orders - Python

      Here is the working sample code to Place Orders:

      from smartapi import SmartConnect 
      
      obj = SmartConnect(api_key="your_api_key")
      data = obj.generateSession('client_id', 'your_password')
      refreshToken= data['data']['refreshToken']
      
      orderparams = {
          "variety": "NORMAL",
          "tradingsymbol": "symbol",
          "symboltoken": "token",
          "transactiontype": "BUY",
          "exchange": "NFO",
          "ordertype": "MARKET",
          "producttype": "INTRADAY",
          "duration": "DAY",
          "quantity": "quantiy"
       }
      orderId = obj.placeOrder(orderparams)
      print(orderId)
      

      Above code just punch order and returns orderId of particular order.

      posted in Python SDK
      S2108014
      S2108014

    Latest posts made by S2108014

    • HOW CAN A SUB BROKER GIVE CODING SERVICES

      Dear Team ,
      As an Angel One Authorised Person as well as a Python coder, I want to offer my clients customized Python code solutions according to their requirements, which are also properly backtested. I also want to automate these codes using the API. As an AP, how can I provide these codes to all my clients? What formalities or procedures are required for this?

      Additionally, if I am able to provide code to my clients, how can I run multiple clients' codes simultaneously?

      posted in General Discussion
      S2108014
      S2108014
    • RE: getting the next expiry dates

      I too used web scraping to get upcoming expiry. Little code of Scrapy or BeautifulSoup does the job very well.

      posted in General Discussion
      S2108014
      S2108014
    • RE: WebSocket response

      @admin Python SDK version 1.2.5

      posted in General Discussion
      S2108014
      S2108014
    • WebSocket response

      @rajanprabu How many ticks you receive per second for a single symbol? I'm getting more than 3 ticks/sec for a symbol.

      @admin Why I'm getting more than 1 tick/sec. Anything changed in WebSocket response ? Also WebSocket getting closed randomly.

      posted in General Discussion
      S2108014
      S2108014
    • RE: web sockets working today ?

      @admin

      (2021-05-18 14:44:42,193)  -  (Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake))
      (2021-05-18 14:44:42,194)  -  (Connection closed: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake))
      

      WebSocket not working. It's getting closed and won't reconnect automatically.

      posted in Python SDK
      S2108014
      S2108014
    • RE: Task "mw" not provide complete data, socket closed randomly

      @admin I still facing the same issue today.
      When this problem get resolved ?

      posted in Python SDK
      S2108014
      S2108014
    • RE: Task "mw" not provide complete data, socket closed randomly

      @admin
      Same thing happening with me too.

      Log message

      2021-05-05 12:03:43,170 - Connection error: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
      2021-05-05 12:03:43,170 - Connection closed: 1006 - connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)
      
      

      @admin Any update on this ?

      posted in Python SDK
      S2108014
      S2108014
    • RE: Multiple HB failure and order book fetch issue

      @rajanprabu Yes....I too faced issue on my local machine.

      posted in Python SDK
      S2108014
      S2108014
    • RE: Websockets not working ?

      @rajanprabu Yes, I'm using Python SDK

      posted in General Discussion
      S2108014
      S2108014
    • RE: Websockets not working ?

      @admin & @rajanprabu Yes...I observed the same.

      posted in General Discussion
      S2108014
      S2108014