Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Square off position

    General Discussion
    0
    2
    14
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Tan last edited by

      "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...

      1 Reply Last reply Reply Quote 0
      • A
        admin last edited by

        @Tan you can solve this in 2 ways:

        1. Either give POA authorization from the Angel one App / web
          or
        2. Use EDIS API - https://smartapi.angelone.in/docs/Edis from the SmartAPIs
        1 Reply Last reply Reply Quote 0
        • First post
          Last post