☰
Login
Signup
Home
›
Kite Publisher
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.4K
All Categories
0
Incidents
167
Node JS client
46
Go client
812
.Net API client
391
Kite Publisher
539
.Net / VBA / Excel (3rd party)
473
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
355
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.5K
General
In this Discussion
February 2020
sujith
Get positions does not have order ID
vishnux
February 2020
in
Kite Publisher
When I get live positions , its returning something like
{ tradingsymbol: 'RELIANCE',
exchange: 'NSE',
instrument_token: 738561,
product: 'MIS',
quantity: 2,
overnight_quantity: 0,
multiplier: 1,
average_price: 1490.55,
close_price: 0,
last_price: 1491.85,
value: -2981.1,
pnl: 2.599999999999909,
m2m: 2.599999999999909,
unrealised: 2.599999999999909,
realised: 0,
buy_quantity: 2,
buy_price: 1490.55,
buy_value: 2981.1,
buy_m2m: 2981.1,
sell_quantity: 0,
sell_price: 0,
sell_value: 0,
sell_m2m: 0,
day_buy_quantity: 2,
day_buy_price: 1490.55,
day_buy_value: 2981.1,
day_sell_quantity: 0,
day_sell_price: 0,
day_sell_value: 0 }
Where is the Order ID ? So I can close it ?
sujith
February 2020
Positions don't have any relation to the orderbook. You will have to check the quantity and place a market order with the appropriate transaction type to exit the position.
Sign In
or
Register
to comment.