Navigation

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

    Options buy and sell quatity should be same ?

    Test
    0
    3
    9
    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.
    • B
      bablujat last edited by

      Hi,
      I was buying options and found that during buy we provide quantity of shares (lots * lotsize), but when i sell that option (to close the existing position) and provided same quantity not it considered lots not shares.

      for example i brought a put option with 50 shares (1 lot = 50 shares) I have to specify qty: 50 in api request and it buy a 1 lot = 50 shares
      but when i try to sell that position with qty: 50 in api request now it will create a order to sell 50 lots (it should be 1 lot similar to buy)

      Buy payload

      {
      'exchange': 'NFO', 
      'tradingsymbol': 'MARUTI26DEC2412100CE', 
      'quantity': 50, // this is buying 1 lot (50 shares)
      'transactiontype': 'BUY', 
      'ordertype': 'MARKET', 
      'variety': 'NORMAL', 
      'producttype': 'INTRADAY', 
      'price': '0', 
      'symboltoken': '111106'
      }
      

      Sell payload

      {
      'exchange': 'NFO', 
      'tradingsymbol': 'MARUTI26DEC2412100CE', 
      'quantity': 50,  // this is selling 50 lots (it should be 1 lot = 50 shares)
      'transactiontype': 'SELL', 
      'ordertype': 'MARKET', 
      'variety': 'NORMAL', 
      'producttype': 'INTRADAY', 
      'price': '0', 
      'symboltoken': '111106'
      }
      
      1 Reply Last reply Reply Quote 0
      • A
        admin last edited by

        Hello, while buying and selling both, the quantity should be 50 for 1 lot in your case.

        We tried to reproduce your issue, but it worked fine for us.

        B 1 Reply Last reply Reply Quote 1
        • B
          bablujat @admin last edited by

          @admin Thanks, there was some issue with my code. apologies for inconvenience.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post