Navigation

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

    Specified Order to be Market but turned into Limit

    Test
    0
    5
    26
    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.
    • S
      shashwatVar last edited by

      // call buy for hedge
      const callOrderResponse = await clientSession.smartApi.placeOrder({
      	variety: "NORMAL",
      	tradingsymbol: hedgeOptions.call!.symbol,
      	symboltoken: hedgeOptions.call!.token,
      	transactiontype: "BUY",
      	exchange: this.optionsConfig.activeIndex.chain_exchange,
      	ordertype: "MARKET",
      	producttype: "CARRYFORWARD",
      	duration: "DAY",
      	quantity: clientSession.TOTAL_LOTS * this.optionsConfig.activeIndex.quantity_per_lot,
      });
      											this.logger.info(callOrderResponse);
      
      // put buy for hedge
      const putOrderResponse = await clientSession.smartApi.placeOrder({
      	variety: "NORMAL",
      	tradingsymbol: hedgeOptions.put!.symbol,
      	symboltoken: hedgeOptions.put!.token,
      	transactiontype: "BUY",
      	exchange: this.optionsConfig.activeIndex.chain_exchange,
      	ordertype: "MARKET",
      	producttype: "CARRYFORWARD",
      	duration: "DAY",
      	quantity:clientSession.TOTAL_LOTS * this.optionsConfig.activeIndex.quantity_per_lot,
      });
      
      this.logger.info(putOrderResponse);
      

      Ran the above code today for some options.
      The ordertype can be seen as "MARKET", when the order got placed, got the response :

      {
        status: true,
        message: 'SUCCESS',
        errorcode: '',
        data: {
          script: 'SENSEX2411273100CE',
          orderid: '240112000072279',
          uniqueorderid: 'eb008852-18eb-49af-9999-850a304c3a6f'
        }
      }
      {
        status: true,
        message: 'SUCCESS',
        errorcode: '',
        data: {
          script: 'SENSEX2411270600PE',
          orderid: '240112000072292',
          uniqueorderid: '5e25fb58-c6eb-4704-bce3-faf671ebd431'
        }
      }
      

      but for one of these orders the orderType in the angel platform can be seen as LIMIT which was not expected :

      c1c83201-2a3e-4565-bef7-37196e901724-image.png

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @shashwatVar last edited by

        Hi @shashwatVar

        Apologies for delayed response.
        We are analyzing on this issue with the order ID 240112000072279.
        Please share us the client code.

        Thanks & Regards,
        SmartAPI team

        S 1 Reply Last reply Reply Quote 0
        • S
          shashwatVar @Moderator_2 last edited by

          @Moderator_2 client code: P396062

          M 2 Replies Last reply Reply Quote 0
          • M
            Moderator_2 @shashwatVar last edited by

            Hi @shashwatVar

            Noted. We are analyzing on the issue. Will update you as soon as possible

            Thanks & Regards,
            SmartAPI team

            1 Reply Last reply Reply Quote 0
            • M
              Moderator_2 @shashwatVar last edited by

              Hi @shashwatVar

              Apologies for delayed response.
              Please note
              Our smartAPI has accepted the order as Market as expected.
              Since there was no opposite(Buy <-> Sell) orders available for your order, exchange has converted this to limit.

              Thanks & Regards,
              SmartAPI team

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