Getpositions returns last_price as 0

sharanwj
sharanwj edited March 2018 in General
Hi,

I am using nodejs client with Kite API v2.
Getpositions api call is returning last_price as 0 for my positions leading to wrong calculation of PnL.
This was working fine last week, I have started seeing this issue from Monday onwards.
GET /api/getpositions 200 1110.104 ms - 3831
[ { product: 'MIS',
overnight_quantity: 0,
exchange: 'NFO',
sell_value: 9498.75,
buy_m2m: 9600,
last_price: 0,
net_buy_amount_m2m: 9600,
tradingsymbol: 'NIFTY18MAR10100CE',
realised: -101.25,
pnl: -101.25,
multiplier: 1,
sell_quantity: 300,
sell_m2m: 9498.75,
buy_value: 9600,
buy_quantity: 300,
average_price: 0,
unrealised: 0,
value: -101.25,
buy_price: 32,
sell_price: 31.6625,
m2m: -101.25,
instrument_token: 12603650,
close_price: 0,
net_sell_amount_m2m: 9498.75,
quantity: 0 },
{ product: 'MIS',
overnight_quantity: 0,
exchange: 'NFO',
sell_value: 6135,
buy_m2m: 3982.5,
last_price: 0,
net_buy_amount_m2m: 3982.5,
tradingsymbol: 'NIFTY18MAR10100PE',
realised: 2152.5,
pnl: 2152.5,
multiplier: 1,
sell_quantity: 300,
sell_m2m: 6135,
buy_value: 3982.5,
buy_quantity: 300,
average_price: 0,
unrealised: 0,
value: 2152.5,
buy_price: 13.275,
sell_price: 20.45,
m2m: 2152.5,
instrument_token: 12606466,
close_price: 0,
net_sell_amount_m2m: 6135,
quantity: 0 }
Sign In or Register to comment.