☰
Login
Signup
Home
›
Python 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
154
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
May 17
rakeshr
May 21
mangroliyahilesh
How i create GTT with two leg ? i need to enter with LIMIT and need to Set SL & TP with GTT
CA1869
May 15
in
Python client
I Need a python code for to place an GTT with two leg orders
mangroliyahilesh
May 16
Any update on this?
mangroliyahilesh
May 16
order_dict = [{"transaction_type": kite.TRANSACTION_TYPE_SELL, "quantity": quantity,
'order_type': kite.ORDER_TYPE_LIMIT, "product": kite.PRODUCT_NRML, "price": loss},
{"transaction_type": kite.TRANSACTION_TYPE_SELL, "quantity": quantity,
'order_type': kite.ORDER_TYPE_LIMIT, "product": kite.PRODUCT_NRML, "price": target}]
gtt_order = kite.place_gtt(kite.GTT_TYPE_OCO, trading_symbol, kite.EXCHANGE_NFO, [loss, target], ltp, order_dict)
I want to do for options, but it throws error.
rakeshr
May 17
@mangroliyahilesh
You are not sending the
orders list
properly. Go through the
two-leg GTT python example here
.
mangroliyahilesh
May 21
@rakeshr
I am able to place GTT order, now issue is it's not able to square off position at trigger price.
I placed order for option buy and want to have square off that with sl and tp using get.
Can you please help?
Sign In
or
Register
to comment.
'order_type': kite.ORDER_TYPE_LIMIT, "product": kite.PRODUCT_NRML, "price": loss},
{"transaction_type": kite.TRANSACTION_TYPE_SELL, "quantity": quantity,
'order_type': kite.ORDER_TYPE_LIMIT, "product": kite.PRODUCT_NRML, "price": target}]
gtt_order = kite.place_gtt(kite.GTT_TYPE_OCO, trading_symbol, kite.EXCHANGE_NFO, [loss, target], ltp, order_dict)
I want to do for options, but it throws error.
You are not sending the orders list properly. Go through the two-leg GTT python example here.
I placed order for option buy and want to have square off that with sl and tp using get.
Can you please help?