☰
Login
Signup
Home
›
Algorithms and Strategies
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
July 2022
satheesh7134
July 2022
SRIJAN
Retrieving Position of Particular Instrument
satheesh7134
July 2022
in
Algorithms and Strategies
Hi Everyone
Instead of getting all open positions, I want to check whether a position exist for a particular instrument
Anyone know how to do that?
SRIJAN
July 2022
Every position has a tradingsymbol field .
You can fetch all positions and look for a particular tradingsymbol in the response.
https://kite.trade/docs/connect/v3/portfolio/#positions
satheesh7134
July 2022
Hi Srijan
Thanks
May I know how to see whether the position associated with the instrument is a long position or short position?
SRIJAN
July 2022
You can know this by checking the quantity.
If quantity is positive, it's a long position,if negative, it's a short position,and if zero,it means the position has been closed.
Sign In
or
Register
to comment.
You can fetch all positions and look for a particular tradingsymbol in the response.
https://kite.trade/docs/connect/v3/portfolio/#positions
Thanks
May I know how to see whether the position associated with the instrument is a long position or short position?
If quantity is positive, it's a long position,if negative, it's a short position,and if zero,it means the position has been closed.