☰
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.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)
457
Algorithms and Strategies
997
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
April 2022
SRIJAN
Error while placing oco order
auricalgos
April 2022
in
Python client
kite.place_gtt(kite.GTT_TYPE_OCO, 'YESBANK', 'NSE', [13,17],15,[{"order_type": "LIMIT","product": "NRML","transaction_type":"BUY","quantity":"1","price":"13"},{"order_type": "LIMIT","product": "NRML","transaction_type":"BUY","quantity":"1","price":"17"}])
While placing the order 13 is considered as the target instead of stop loss and similar 17 is regarded as stop loss instead of target.
Tagged:
Python Client
python
kiteapi
Indian stock market
GTT
SRIJAN
April 2022
edited April 2022
If you are using BUY OCO,that means you must be on short side. So,naturally,your stoploss would be 17 and target will be 13.
If you want stoploss as 13 ,and target at 17 ,you have to use sell OCO. And,of course,you must be long on the instrument.
And,you should learn basic stock market before algo trading. NRML on equity, seriously??
SRIJAN
April 2022
edited April 2022
Also,I have a a doubt,
@sujith
Sir ,
@rakeshr
Sir:
How is the above gtt order being accepted?? The product is NRML,on equity. Shouldn't it be rejected? What will happen when the gtt will be triggered? This is happening only for gtt orders,normal orders did throw exception.
Sign In
or
Register
to comment.
If you want stoploss as 13 ,and target at 17 ,you have to use sell OCO. And,of course,you must be long on the instrument.
And,you should learn basic stock market before algo trading. NRML on equity, seriously??
How is the above gtt order being accepted?? The product is NRML,on equity. Shouldn't it be rejected? What will happen when the gtt will be triggered? This is happening only for gtt orders,normal orders did throw exception.