☰
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
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)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
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.