☰
Login
Signup
Home
›
PHP client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.8K
All Categories
0
Incidents
152
Node JS client
39
Go client
791
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
992
Java client
1.1K
API clients
402
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
September 2017
sachinstlko09
September 2017
sujith
PHP API : What should be the PRODUCT attribute value for the Bracket Order
sachinstlko09
September 2017
in
PHP client
I am trying to place following bracket order:
$kite->orderPlace([
"tradingsymbol" => "SBIN",
"exchange" => "NSE",
"quantity" => 1,
"transaction_type" => "BUY",
"order_type" => "LIMIT",
"product" => "BO",
"price" => "254.40",
"squareoff_value" => "0.30",
"stoploss_value" =>"0.30",
"validity" => "DAY",
"variety" => "bo"
], "regular");
It throws following error:
Uncaught OrderException (400) 'Invalid `product` for that order variety.
sujith
September 2017
Hi
@sachinstlko09
,
Please take a look at
the
example
. You need to pass product as "MIS" for bracket order.
sachinstlko09
September 2017
Yes, I had already tried the same but the order was placed as a MIS not as a BO.
sachinstlko09
September 2017
Any Suggestion?
sujith
September 2017
@sachinstlko09
,
You can go through the above example, we use it for testing. Please read and understand before you implement something.
If you have doubt you can go through documentation for details about each parameter.
Sign In
or
Register
to comment.
Please take a look at the
example. You need to pass product as "MIS" for bracket order.
You can go through the above example, we use it for testing. Please read and understand before you implement something.
If you have doubt you can go through documentation for details about each parameter.