☰
Login
Signup
Home
›
API clients
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.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
March 2017
cmurthy
March 2017
sujith
BO order not getting triggered
cmurthy
March 2017
in
API clients
Hi there,
I am passing the below parameters as explained at link -
https://github.com/rainmattertech/javakiteconnect/blob/master/sample/src/Examples.java
var params = {
quantity: quantity,
order_type: "LIMIT",
//price: signalDetails.triggerPrice,
price: 839,
transaction_type: signalDetails.stockSignal,
tradingsymbol: signalDetails.stockName,
trailing_stoploss: 0.05,
stoploss_value: stoploss_value,
exchange: "NSE",
validity: "DAY",
squareoff_value: squareoff_value,
product: "MIS",
disclosed_quantity: disclosed_quantity
}
But the BO order is not getting triggered instead a limit order is placed? Could you please guide me on what I am missing
Tagged:
bracket orders
nodejs
sujith
March 2017
Hi
@cmurthy
,
Are you sending variety as "bo"?
cmurthy
March 2017
edited March 2017
no, should I sentd variety as BO?
This is not mentioned in the documentation..
sujith
March 2017
edited March 2017
It should be "bo" lower case.
cmurthy
March 2017
edited March 2017
Hi Sujith,
Also doesnt work, even lowercase "bo", please suggest..
var params = {
variety: "bo",
//quantity: quantity,
quantity: 1,
order_type: "LIMIT",
//price: signalDetails.triggerPrice,
price: 839,
transaction_type: signalDetails.stockSignal,
tradingsymbol: signalDetails.stockName,
trailing_stoploss: 0.05,
stoploss_value: stoploss_value,
exchange: "NSE",
validity: "DAY",
squareoff_value: squareoff_value,
product: "MIS",
//disclosed_quantity: disclosed_quantity
};
cmurthy
March 2017
any hints?
sujith
March 2017
@cmurthy
,
For orderPlace(params, variety) what is your second argument?
cmurthy
March 2017
thanks sujith, yes I was missing variety as second parameter for orderPlace and was trying to pass variety in the parmas json. Just tested and it works fine thank you again.
This discussion has been closed.
Are you sending variety as "bo"?
This is not mentioned in the documentation..
Hi Sujith,
Also doesnt work, even lowercase "bo", please suggest..
var params = {
variety: "bo",
//quantity: quantity,
quantity: 1,
order_type: "LIMIT",
//price: signalDetails.triggerPrice,
price: 839,
transaction_type: signalDetails.stockSignal,
tradingsymbol: signalDetails.stockName,
trailing_stoploss: 0.05,
stoploss_value: stoploss_value,
exchange: "NSE",
validity: "DAY",
squareoff_value: squareoff_value,
product: "MIS",
//disclosed_quantity: disclosed_quantity
};
For orderPlace(params, variety) what is your second argument?