☰
Login
Signup
Home
›
General
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
153
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
403
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
January 2017
Vivek
January 2017
sujith
January 2017
trader007
Square off Bracket order on a trading symbol
trader007
January 2017
in
General
How do i square off a bracket order on a tradingsymbol
I dont even know the order id or trade id to it
I am using python client
trader007
January 2017
@sujith
quick help on this please
trader007
January 2017
@sujith
@Kailash
anyone please help
sujith
January 2017
Hi,
Checkout examples here
https://github.com/rainmattertech/javakiteconnect/blob/master/sample/src/Examples.java
Fetch orderbook and get order id and then do the same as exitBracketOrder() method.
trader007
January 2017
@sujith
I am getting an error saying single index positioner out of bounds sometimes
Can you please tell what does it mean
sujith
January 2017
@trader007
,
what client are you using?
trader007
January 2017
@sujith
, python client
sujith
January 2017
Can you paste stacktrace?
sujith
January 2017
Can you let us know python version?
trader007
January 2017
2.7 version
How to get stacktrace?
Vivek
January 2017
@trader007
Hi, I think you are trying to access orders list incorrectly. Please post more info about your issue. You can share your code or pseudo code so that we can check the issue.
trader007
January 2017
order_id = kite.order_modify(order_id=f['order_id'].iloc[0],
parent_order_id=parent,
tradingsymbol=symbol,
exchange="NSE",
order_type="SL-M",
product="MIS",
quantity=netq,
trigger_price=p,
transaction_type=t_type,
price=0)
#trigger_price=trig,
#stoploss_value=sl,
#trailing_stoploss=t_sl,
#price=p)
#squareoff_value=10*sl)
this is my code.
sujith
January 2017
@trader007
,
Where are you getting f['order_id'].iloc[0] from ? Are you sure array is not empty?
trader007
January 2017
@sujith
it is empty and hence the error. Please close the thread
This discussion has been closed.
Checkout examples here https://github.com/rainmattertech/javakiteconnect/blob/master/sample/src/Examples.java
Fetch orderbook and get order id and then do the same as exitBracketOrder() method.
Can you please tell what does it mean
what client are you using?
How to get stacktrace?
parent_order_id=parent,
tradingsymbol=symbol,
exchange="NSE",
order_type="SL-M",
product="MIS",
quantity=netq,
trigger_price=p,
transaction_type=t_type,
price=0)
#trigger_price=trig,
#stoploss_value=sl,
#trailing_stoploss=t_sl,
#price=p)
#squareoff_value=10*sl)
this is my code.
Where are you getting f['order_id'].iloc[0] from ? Are you sure array is not empty?