Two gtt orders in single payload not working?

@AbhishekMehta @PaytmMoney
can’t we place two order for same stock in GTT at a time like below message? Iam getting error as 500 , when tried {
“status”: 500,
“message”: “Unexpected Error”,
“error_code”: “PM_OPEN_API_500”
}

[{
	"segment": "E",
	"exchange": "NSE",
	"pml_id": "1000001488",
	"security_id": "14366",
	"product_type": "C",
	"set_price": "12.80",
	"transaction_type": "S",
	"transaction_details": [{
		"quantity": "1",
		"trigger_price": "12.7",
		"limit_price": "0"
	}],
	"order_type": "MKT",
	"trigger_type": "SINGLE"
}, {
	"segment": "E",
	"exchange": "NSE",
	"pml_id": "1000001488",
	"security_id": "14366",
	"product_type": "C",
	"set_price": "12.90",
	"transaction_type": "S",
	"transaction_details": [{
		"quantity": "2",
		"trigger_price": "13.7",
		"limit_price": "0"
	}],
	"order_type": "MKT",
	"trigger_type": "SINGLE"
}]

Hi @15venkatsai, please make sure that you are sending the correct JSON body. the orders should be in an array

1 Like