Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Tan
    3. Posts
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    Posts made by Tan

    • Square off position

      "You have not authorised this transaction via EDIS. Please tap reorder to try again" show this error when i square off my order.

      code: -
      try:
      orderparams = {
      "variety": "NORMAL",
      "tradingsymbol": holdings['data'][0]['tradingsymbol'],
      "symboltoken": holdings['data'][0]['symboltoken'],
      "transactiontype": 'SELL',
      "exchange": "NSE",
      "ordertype": "MARKET",
      "producttype": 'DELIVERY',
      "duration": "DAY",
      "price": 0,
      "triggerprice": 0,
      "quantity": holdings['data'][0]['quantity']
      }

      logger.info(f'{orderparams}')
      orderId=smartApi.placeOrder(orderparams)
      

      except Exception as e :
      logger.info(f"Order placement failed: {traceback.print_exc()}")
      logger.info('MESSAGE :: ', e)

      logger.info(f"The order CLOSED is: {orderId}")
      print('\n')

      please short out error...

      posted in General Discussion
      T
      Tan