Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. neeluru
    N
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    neeluru

    @neeluru

    2
    Reputation
    10
    Posts
    4
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    neeluru Follow

    Best posts made by neeluru

    • RE: 'TypeError' object has no attribute 'message' Error while placing order

      @pankaj8932
      I am also facing same issue. Is it resolved ?

      posted in Python SDK
      N
      neeluru

    Latest posts made by neeluru

    • RE: "Order placement failed: 'NoneType' object is not subscriptable"

      @prasan
      change quantity ..

      posted in Python SDK
      N
      neeluru
    • RE: "Order placement failed: 'NoneType' object is not subscriptable"

      @laxm

      ROBO order is working fine for me.

      try:
      orderparams = {
      "variety": "ROBO",
      "tradingsymbol": str(tradingsymbol),
      "symboltoken": str(symboltoken),
      "transactiontype": str(transactiontype),
      "exchange": str(symbolexchange),
      "ordertype": "LIMIT",
      "producttype": "BO",
      "duration": "DAY",
      "price":float(pricelimit),
      #"triggerprice":100,
      "squareoff": 12,
      "stoploss": 12,
      "quantity": str(quantity)
      }
      orderId=client_smartApi.placeOrder(orderparams)
      return orderId
      except Exception as e:
      print("Order placement failed: {}".format(e.message))

      posted in Python SDK
      N
      neeluru
    • RE: "Order placement failed: 'NoneType' object is not subscriptable"

      @laxm
      below is piece of code..

      try:
          orderparams = {
              "variety": "STOPLOSS",
              "tradingsymbol": str(tradingsymbol),
              "symboltoken": str(symboltoken),
              "transactiontype":"BUY",
              "exchange": "NFO",
              "ordertype": "STOPLOSS_LIMIT",
              "producttype": "CARRYFORWARD",
              "duration": "DAY",
              "price":pricelimit,
              "triggerprice":triggerprice,
              "squareoff": "0",
              "stoploss": "0",
              "quantity": "50"
              }
          orderId=obj.placeOrder(orderparams)
          return orderId
      except Exception as e:
          print(orderparams)   # it's helpful to understand which values you've passed..
          print("Order placement failed: {}".format(e.message))
      
      posted in Python SDK
      N
      neeluru
    • RE: "Order placement failed: 'NoneType' object is not subscriptable"

      @admin

      Thanks admin.. It's working well now.

      posted in Python SDK
      N
      neeluru
    • RE: 'TypeError' object has no attribute 'message' Error while placing order

      @pankaj8932
      I am also facing same issue. Is it resolved ?

      posted in Python SDK
      N
      neeluru
    • RE: "Order placement failed: 'NoneType' object is not subscriptable"

      @prasan , @admin

      {
      'variety': 'NORMAL',
      'tradingsymbol': 'NIFTY29DEC2218400CE',
      'symboltoken': '86414',
      'transactiontype': 'BUY',
      'exchange': 'NFO',
      'ordertype': 'STOPLOSS_LIMIT',
      'producttype': 'CARRYFORWARD',
      'duration': 'DAY',
      'price': '199.0',
      'triggerprice': '198.95',
      'squareoff': '0',
      'stoploss': '0',
      'quantity': '50'
      }

      am getting an error

      orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
      TypeError: 'NoneType' object is not subscriptable

      Please help

      posted in Python SDK
      N
      neeluru
    • RE: Working WebSocket Sample code to retrieve LTP - Python

      @rajanprabu
      OK..

      Is code is correct one ?

      have used ss.connect() instead ws.connect(). Have changed it but no use at all

      posted in Python SDK
      N
      neeluru
    • RE: unable to import websocket

      @neeluru

      Please don't confuse on ws.send_request()

      2098168e-8776-47f4-ab07-693e5ee49fec-image.png

      posted in Python SDK
      N
      neeluru
    • RE: Working WebSocket Sample code to retrieve LTP - Python

      @rajanprabu
      Any idea on below error. Using google.colab

      92cf3176-9985-4fd2-888a-b49740475963-image.png

      posted in Python SDK
      N
      neeluru
    • RE: unable to import websocket

      @djdenish

      I have faced the problem at ss.connect()
      1def495f-da15-4c6c-9c87-dad1d89ac5c9-image.png

      am running the code in colab

      posted in Python SDK
      N
      neeluru