Create rule not executing
-
Hi team,
I was able to create rule successfully and was able to fetch the rule list correctly. But for some reason even when the stock reached the target price it was not getting executed.
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.
Below is the rule list detail -
{
status: 'CANCELLED',
createddate: '2021-05-31T04:59:03.903561Z',
updateddate: '2021-06-01T09:32:48Z',
expirydate: '2021-06-30T04:59:03.903561Z',
clientid: 'xxxxxxx',
tradingsymbol: 'JINDALSAW-EQ',
symboltoken: '3024',
exchange: 'NSE',
producttype: 'DELIVERY',
transactiontype: 'BUY',
price: 107,
qty: 1,
triggerprice: 107.2,
disclosedqty: 1,
id: 370
},
{
status: 'CANCELLED',
createddate: '2021-05-31T04:46:35.337639Z',
updateddate: '2021-05-31T04:57:04Z',
expirydate: '2021-06-30T04:46:35.337639Z',
clientid: 'xxxxxx',
tradingsymbol: 'JINDALSAW-EQ',
symboltoken: '3024',
exchange: 'NSE',
producttype: 'DELIVERY',
transactiontype: 'BUY',
price: 107,
qty: 1,
triggerprice: 107,
disclosedqty: 1,
id: 368
}
As you can see i cancelled it since it didnt execute.
Could you please help me understand if any of the attributes i set was incorrect?
Thanks in advance! -
HI @ajaysan91 We will update you after coordination with team.
-
@admin any updates?
-
Hi @ajaysan91 we are working on gtt api we will update you once it is fixed.
-
@admin Any update?
-
Hi @ajaysan91 we have reported this to team from another thread we will update you team is working on this.
-
@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? -
@admin OKay, I will try tomorrow morning and will let you know. Thanks :)
-
Hi @ajaysan91 You can try now As the service was impacted temporarily As team were doing some changes.
-
@admin Sure, Thanks!
-
Hi @ajaysan91 we will get back to you after coordinating with our team.
-
@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.
-
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. -
@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. -
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
}
}