Response of Positions API - Python

kiran
Hi,

Can someone please post the response of positions API from python client. [Would prefer for derivative instrument]
Thanks in advance
Tagged:
  • Vivek
    Vivek edited September 2016
    Here is a sample response. Note that user have only carry forwarded positions
    {
    'net': [{
    'last_price': 0.55,
    'tradingsymbol': 'NIFTY16SEP9800CE',
    'sell_quantity': 0,
    'buy_value': 0.0,
    'unrealised': 0.0,
    'buy_price': 0.0,
    'sell_price': 0.0,
    'm2m': 0.0,
    'instrument_token': 11318530,
    'net_sell_amount_m2m': 0.0,
    'buy_quantity': 0,
    'product': 'NRML',
    'overnight_quantity': 0,
    'exchange': 'NFO',
    'sell_value': 0.0,
    'net_buy_amount_m2m': 0.0,
    'pnl': 0.0,
    'multiplier': 1,
    'average_price': 0.0,
    'value': 82.5,
    'close_price': 0,
    'realised': 0.0,
    'quantity': -150
    }, {
    'last_price': 24962.0,
    'tradingsymbol': 'GOLDGUINEA16OCTFUT',
    'sell_quantity': 0,
    'buy_value': 0.0,
    'unrealised': -240.0,
    'buy_price': 0.0,
    'sell_price': 0.0,
    'm2m': -240.0,
    'instrument_token': 53326343,
    'net_sell_amount_m2m': 0.0,
    'buy_quantity': 0,
    'product': 'NRML',
    'overnight_quantity': 0,
    'exchange': 'MCX',
    'sell_value': 0.0,
    'net_buy_amount_m2m': 0.0,
    'pnl': -240.0,
    'multiplier': 1,
    'average_price': 0.0,
    'value': -75126.0,
    'close_price': 0,
    'realised': 0.0,
    'quantity': 3
    }], 'day': []
    }
This discussion has been closed.