☰
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.2K
All Categories
0
Incidents
126
Node JS client
36
Go client
765
.Net API client
360
Kite Publisher
532
.Net / VBA / Excel (3rd party)
433
Algorithms and Strategies
964
Java client
1K
API clients
400
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.1K
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.