☰
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
14.1K
All Categories
0
Incidents
158
Node JS client
43
Go client
801
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
465
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
May 2024
rakeshr
May 2024
mangroliyahilesh
How i create GTT with two leg ? i need to enter with LIMIT and need to Set SL & TP with GTT
CA1869
May 2024
in
Python client
I Need a python code for to place an GTT with two leg orders
mangroliyahilesh
May 2024
Any update on this?
mangroliyahilesh
May 2024
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 2024
@mangroliyahilesh
You are not sending the
orders list
properly. Go through the
two-leg GTT python example here
.
mangroliyahilesh
May 2024
@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?