Navigation

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

    Create rule not executing

    Bugs
    2
    15
    58
    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.
    • A
      admin @ajaysan91 last edited by

      Hi @ajaysan91 kindly refer below example:
      Request

      {
      "tradingsymbol" : "SBIN-EQ",
      "symboltoken" : "3045",
      "exchange" : "NSE",
      "producttype" : "MARGIN",
      "transactiontype" : "BUY",
      "price" : 1,
      "qty" : 10,
      "disclosedqty": 10,
      "triggerprice" : 2,
      "timeperiod" : 365
      }

      Response

      {
      "status": true,
      "message": "Success",
      "errorcode": "",
      "data": {
      "id": 317
      }
      }

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

        @admin thanks for your quick response.
        I did refer the example provided in documentation.
        My question here is that - the rule gets executed if it reach the triggerprice?
        if so, do you see any issue in my rules? because as far as i see it looked fine and it should have executed. But it didn't.

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

          Hi @ajaysan91 said in Create rule not executing:

          I am unable to find the reason and i doubt if i misunderstood the functionality of GTT Create rule.
          My expectation was that once the rule is created and the price reach the Target price we have set, it will get executed and gets ordered but nothing happened as far as i see and i had to cancel the rule.
          Kindly send us your client id to check your logs Also we will update you after testing it from our end.

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

            @admin
            Sorry, i didn't understand your last response.
            i just created a rule for Exide -
            { status: true, message: 'Success', errorcode: '', data: { id: 381 } }
            {
            status: 'NEW',
            createddate: '2021-06-02T09:24:03.16765Z',
            updateddate: '2021-06-02T09:24:03.16765Z',
            expirydate: '2021-07-02T09:24:03.16765Z',
            clientid: 'A196910',
            tradingsymbol: 'EXIDEIND-EQ',
            symboltoken: '676',
            exchange: 'NSE',
            producttype: 'DELIVERY',
            transactiontype: 'BUY',
            price: 193.1,
            qty: 1,
            triggerprice: 193.2,
            disclosedqty: 1,
            id: 381
            }

            i see that exide did reach 193.2 but still it didn't execute.

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

              Hi @ajaysan91 we will get back to you after coordinating with our team.

              A A 2 Replies Last reply Reply Quote 0
              • A
                ajaysan91 @admin last edited by

                @admin Sure, Thanks!

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

                  Hi @ajaysan91 You can try now As the service was impacted temporarily As team were doing some changes.

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

                    @admin OKay, I will try tomorrow morning and will let you know. Thanks 🙂

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      ajaysan91 @ajaysan91 last edited by ajaysan91

                      @admin Still it didn't work -
                      {
                      status: 'ACTIVE',
                      createddate: '2021-06-04T09:02:42.863121Z',
                      updateddate: '2021-06-04T09:02:43Z',
                      expirydate: '2021-07-04T09:02:42.863121Z',
                      clientid: 'xxxxxxx',
                      tradingsymbol: 'EXIDEIND-EQ',
                      symboltoken: '676',
                      exchange: 'NSE',
                      producttype: 'DELIVERY',
                      transactiontype: 'BUY',
                      price: 193.2,
                      qty: 1,
                      triggerprice: 193.25,
                      disclosedqty: 1
                      }
                      }
                      Exide did reach the triggerprice and it never got executed. Any idea?

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

                        Hi @ajaysan91 we have reported this to team from another thread we will update you team is working on this.

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

                          @admin Any update?

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

                            Hi @ajaysan91 we are working on gtt api we will update you once it is fixed.

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

                              @admin any updates?

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

                                HI @ajaysan91 We will update you after coordination with team.

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