How to know open positions in python api
-
Hello there, i having been struggling to find a way to know if my completed order is open or squared off in python api.
Can anyone guide to find a way or a function to know that. Will be of huge help thanks in advance.
-
response = obj.position()
pd.DataFrame(response['data']) -
response = obj.position()
pd.DataFrame(response['data']) -
response = obj.position()
pd.DataFrame(response['data']) -
@Jajsandeep response returned from order book are valid for same day only.
-
@admin position() gives me list of open and closed positions but I do not get order id.
I want to pick up order id of open positions and use them for the next day. -
@Jajsandeep
you need to use get positions api(). -
@admin With orderbook() I only see pending positions.
Kindly help me with open positions. -
Any update on this?
When I use Orderbook() I can only see Pending positions.
How do I track open ones. -
Hi @Khushal01 Kindly make use of get positions And orderbook api.