Get positions does not have order ID

vishnux
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
    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.