Hello, I do not see anywhere it is mentioned that we cannot place BO order using kite publisher. Also, there is no way to put cover order. Can you please let me know how to place BO order using Javascript/Publisher?
You need to send the correct trading symbol and the trigger price. The field stop-loss is for bracket order and not for cover order. Please send the exact error message if there is still an error.
Kite Publisher doesn't support bracket and cover orders yet. We will provide it once we complete the migration of Kite 3.
It will be provided after complete migration of kite 3.
It is enabled now. We will post examples soon.
Right now, we are working on fixes. We will do all the required stuff before announcing it.
We will announce it by end of this week.
We are working on documentation. I will update once it is taken live.
Can you paste the code here?
kite.add({
"exchange": "NSE",
"variety": "co",
"tradingsymbol": "SBIN",
"transaction_type": "BUY",
"order_type": "LIMIT",
"quantity": 100,
"product": "MIS",
"price": 312,
"trigger_price": 300,
"stoploss":0,
"squareoff":0,
"trailing_stoploss":0
});
In the popup co limit price is set but ,trigger_price is missing
We will fix it by end of the day.
Any update on this? Is it fixed now.
Publisher is giving error now ...
Error 1000 Ray ID: 419decbcfd578a9d • 2018-05-12 15:30:07 UTC
DNS points to prohibited IP
Is it under maintenance now ?
much appreciated for your time.
try:
order_id = kite.place_order(
exchange=kite.EXCHANGE_NSE,
tradingsymbol='MRUTI',
transaction_type= kite.TRANSACTION_TYPE_SELL,
quantity= 1,
price= 7090,
product= kite.PRODUCT_MIS,
order_type=kite.ORDER_TYPE_LIMIT,
validity = kite.VALIDITY_DAY,
disclosed_quantity=None,
trigger_price= 7095,
squareoff = 0,
stoploss = 20,
trailing_stoploss=None,
variety=kite.VARIETY_CO
)
print(order_id)
logging.info("Order placed. ID is: {}".format(order_id))
except Exception as e:
logging.info("Order placement failed: {}".format(e.message))
Please send the exact error message if there is still an error.