Hi, I am trying to place bracket order with below parameters using java api, Map params = new HashMap(){ { put("exchange", "NSE"); put("tradingsymbol", tradingsymbol)); put("transaction_type", "BUY")); put("quantity", 100); put("product", "MIS"); put("order_type", "MARKET"); put("price", 0); put("squareoff_value", 1); put("stoploss_value", 1); put("trailing_stoploss", 1); put("validity", "DAY"); } }; but i am getting error msg as : "{"status": "error", "message": "Enter Valid Price", "error_type": "OrderException"}[\r][\n]" I want to execute this order at market price. Any idea where i am doing wrong?
Hi @llpach, As of now, Kite Connect only supports bracket order with the first leg as a limit order and for a limit order, you need to specify the price. You can check out example here
Hi @llpach, We are right now working on revamp of our core APIs. Once we finish that we will start including new features. Check out this thread and check out our roadmap. This is already on our list.
The params to be sent remain same for all the Kite Connect clients. Different fields are must for different orders. For example, a stop-loss market a trigger price is must whereas for a limit order trigger price is not must but the price is a must.
bo
if you are using any Kite client library? II''m able to modify bracket orders .
Below are all parameters Im passing .
(order_id=id,parent_order_id=Parent_id,tradingsymbol=symbl,exchange="NSE",transaction_type="BUY/SELL",quantity=quantity,order_type="LIMIT",product="BO",price=0,trigger_price=trigger_price,validity="DAY",variety="bo")
Regards,
Naveen
will try that on monday
how did u come up with this solution and this is no where mentioned in kite api docs.
Thanks
Regards,
Naveen
I am trying to place bracket order with below parameters using java api,
Map params = new HashMap(){
{
put("exchange", "NSE");
put("tradingsymbol", tradingsymbol));
put("transaction_type", "BUY"));
put("quantity", 100);
put("product", "MIS");
put("order_type", "MARKET");
put("price", 0);
put("squareoff_value", 1);
put("stoploss_value", 1);
put("trailing_stoploss", 1);
put("validity", "DAY");
}
};
but i am getting error msg as :
"{"status": "error", "message": "Enter Valid Price", "error_type": "OrderException"}[\r][\n]"
I want to execute this order at market price. Any idea where i am doing wrong?
As of now, Kite Connect only supports bracket order with the first leg as a limit order and for a limit order, you need to specify the price.
You can check out example here
We are right now working on revamp of our core APIs. Once we finish that we will start including new features. Check out this thread and check out our roadmap.
This is already on our list.
For example, a stop-loss market a trigger price is must whereas for a limit order trigger price is not must but the price is a must.