AliceBlue MIS Orders - theheapdump/kite-webapp GitHub Wiki
MIS ---- executed in order as per below
Buy Market {placeIntraDayMarketBuyOrder(username, password, token, "NSE", "GAIL", 1)}
AB-ORDER-INTRADAY-MARKET-BUY: {'status': 'success', 'message': 'Order placed successfully', 'data': {'oms_order_id': '210618000115608'}} The original dictionary is : {'status': 'success', 'message': '', 'data': {'positions': [{'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '144.24', 'instrument_token': '438', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '144.16', 'buy_amount': '144.16', 'sell_amount': '144.24', 'cf_sell_quantity': 0, 'ltp': 72.05, 'total_buy_quantity': 2, 'net_amount': 0.08, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.10', 'sell_quantity': '2', 'average_buy_price_mtm': '72.08', 'm2m': '0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '72.12', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '2', 'close_price_mtm': 0.0, 'trading_symbol': 'BHEL-EQ', 'average_sell_price': '72.12', 'total_sell_quantity': 2, 'exchange': 'NSE', 'average_buy_price': '72.08', 'cf_buy_quantity': 0, 'net_amount_mtm': 0.08}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '147.2', 'instrument_token': '20374', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '0.0', 'buy_amount': '0.0', 'sell_amount': '147.2', 'cf_sell_quantity': 0, 'ltp': 147.2, 'total_buy_quantity': 0, 'net_amount': 147.2, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.00', 'sell_quantity': '1', 'average_buy_price_mtm': '0.0', 'm2m': '0.00', 'close_price': 147.2, 'oms_order_id': None, 'average_sell_price_mtm': '147.2', 'multiplier': 1, 'client_id': '147758', 'net_quantity': -1, 'bep': '147.20', 'buy_quantity': '0', 'close_price_mtm': 147.2, 'trading_symbol': 'COALINDIA-EQ', 'average_sell_price': '147.2', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '0.0', 'cf_buy_quantity': 0, 'net_amount_mtm': 147.2}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '0.0', 'instrument_token': '4717', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '156.0', 'buy_amount': '156.0', 'sell_amount': '0.0', 'cf_sell_quantity': 0, 'ltp': 154.8, 'total_buy_quantity': 1, 'net_amount': -156.0, 'fill_id': None, 'unrealised_pnl': '-1.20', 'realised_pnl': '0.00', 'sell_quantity': '0', 'average_buy_price_mtm': '156.0', 'm2m': '-1.20', 'close_price': 156.0, 'oms_order_id': None, 'average_sell_price_mtm': '0.0', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 1, 'bep': '156.00', 'buy_quantity': '1', 'close_price_mtm': 156.0, 'trading_symbol': 'GAIL-EQ', 'average_sell_price': '0.0', 'total_sell_quantity': 0, 'exchange': 'NSE', 'average_buy_price': '156.0', 'cf_buy_quantity': 0, 'net_amount_mtm': -156.0}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '212.55', 'instrument_token': '1660', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '212.65', 'buy_amount': '212.65', 'sell_amount': '212.55', 'cf_sell_quantity': 0, 'ltp': 210.95, 'total_buy_quantity': 1, 'net_amount': -0.1, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '-0.10', 'sell_quantity': '1', 'average_buy_price_mtm': '212.65', 'm2m': '-0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '212.55', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '1', 'close_price_mtm': 0.0, 'trading_symbol': 'ITC-EQ', 'average_sell_price': '212.55', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '212.65', 'cf_buy_quantity': 0, 'net_amount_mtm': -0.1}]}}
Buy Limit {placeIntraDayLimitBuyOrder(username, password, token, "NSE", "BHEL", 1, 62.90)}
AB-ORDER-INTRADAY-LIMIT-BUY: {'status': 'success', 'message': 'Order placed successfully', 'data': {'oms_order_id': '210618000116710'}} The original dictionary is : {'status': 'success', 'message': '', 'data': {'positions': [{'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '144.24', 'instrument_token': '438', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '144.16', 'buy_amount': '144.16', 'sell_amount': '144.24', 'cf_sell_quantity': 0, 'ltp': 72.05, 'total_buy_quantity': 2, 'net_amount': 0.08, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.10', 'sell_quantity': '2', 'average_buy_price_mtm': '72.08', 'm2m': '0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '72.12', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '2', 'close_price_mtm': 0.0, 'trading_symbol': 'BHEL-EQ', 'average_sell_price': '72.12', 'total_sell_quantity': 2, 'exchange': 'NSE', 'average_buy_price': '72.08', 'cf_buy_quantity': 0, 'net_amount_mtm': 0.08}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '147.2', 'instrument_token': '20374', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '0.0', 'buy_amount': '0.0', 'sell_amount': '147.2', 'cf_sell_quantity': 0, 'ltp': 147.2, 'total_buy_quantity': 0, 'net_amount': 147.2, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.00', 'sell_quantity': '1', 'average_buy_price_mtm': '0.0', 'm2m': '0.00', 'close_price': 147.2, 'oms_order_id': None, 'average_sell_price_mtm': '147.2', 'multiplier': 1, 'client_id': '147758', 'net_quantity': -1, 'bep': '147.20', 'buy_quantity': '0', 'close_price_mtm': 147.2, 'trading_symbol': 'COALINDIA-EQ', 'average_sell_price': '147.2', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '0.0', 'cf_buy_quantity': 0, 'net_amount_mtm': 147.2}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '0.0', 'instrument_token': '4717', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '156.0', 'buy_amount': '156.0', 'sell_amount': '0.0', 'cf_sell_quantity': 0, 'ltp': 154.8, 'total_buy_quantity': 1, 'net_amount': -156.0, 'fill_id': None, 'unrealised_pnl': '-1.20', 'realised_pnl': '0.00', 'sell_quantity': '0', 'average_buy_price_mtm': '156.0', 'm2m': '-1.20', 'close_price': 156.0, 'oms_order_id': None, 'average_sell_price_mtm': '0.0', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 1, 'bep': '156.00', 'buy_quantity': '1', 'close_price_mtm': 156.0, 'trading_symbol': 'GAIL-EQ', 'average_sell_price': '0.0', 'total_sell_quantity': 0, 'exchange': 'NSE', 'average_buy_price': '156.0', 'cf_buy_quantity': 0, 'net_amount_mtm': -156.0}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '212.55', 'instrument_token': '1660', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '212.65', 'buy_amount': '212.65', 'sell_amount': '212.55', 'cf_sell_quantity': 0, 'ltp': 210.95, 'total_buy_quantity': 1, 'net_amount': -0.1, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '-0.10', 'sell_quantity': '1', 'average_buy_price_mtm': '212.65', 'm2m': '-0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '212.55', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '1', 'close_price_mtm': 0.0, 'trading_symbol': 'ITC-EQ', 'average_sell_price': '212.55', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '212.65', 'cf_buy_quantity': 0, 'net_amount_mtm': -0.1}]}}
Postions {positions_data = str(getDayWiseAllPostions(username, password, token))}
AB-POSTIONS-DAYWISE: {'status': 'success', 'message': '', 'data': {'positions': [{'enabled': True, 'unrealised_pnl': '-0.10', 'client_id': '147758', 'buy_quantity': '1', 'total_buy_quantity': 1, 'strike_price': '0', 'multiplier': 1, 'close_price': 62.9, 'average_buy_price': '62.9', 'cf_sell_quantity': 0, 'cf_average_buy_price': 0, 'ltp': 62.8, 'instrument_token': '438', 'net_amount_mtm': -62.9, 'fill_id': None, 'buy_amount': '62.9', 'sell_quantity': '0', 'net_quantity': 1, 'sell_amount_mtm': '0.0', 'trading_symbol': 'BHEL-EQ', 'total_sell_quantity': 0, 'product': 'MIS', 'average_buy_price_mtm': '62.9', 'close_price_mtm': 62.9, 'bep': '62.90', 'cf_average_sell_price': 0, 'sell_amount': '0.0', 'net_amount': -62.9, 'cf_buy_quantity': 0, 'realised_pnl': '0.00', 'average_sell_price_mtm': '0.0', 'm2m': '-0.10', 'exchange': 'NSE', 'buy_amount_mtm': '62.9', 'oms_order_id': None, 'average_sell_price': '0.0'}, {'enabled': True, 'unrealised_pnl': '0.05', 'client_id': '147758', 'buy_quantity': '1', 'total_buy_quantity': 1, 'strike_price': '0', 'multiplier': 1, 'close_price': 154.65, 'average_buy_price': '154.65', 'cf_sell_quantity': 0, 'cf_average_buy_price': 0, 'ltp': 154.7, 'instrument_token': '4717', 'net_amount_mtm': -154.65, 'fill_id': None, 'buy_amount': '154.65', 'sell_quantity': '0', 'net_quantity': 1, 'sell_amount_mtm': '0.0', 'trading_symbol': 'GAIL-EQ', 'total_sell_quantity': 0, 'product': 'MIS', 'average_buy_price_mtm': '154.65', 'close_price_mtm': 154.65, 'bep': '154.65', 'cf_average_sell_price': 0, 'sell_amount': '0.0', 'net_amount': -154.65, 'cf_buy_quantity': 0, 'realised_pnl': '0.00', 'average_sell_price_mtm': '0.0', 'm2m': '0.05', 'exchange': 'NSE', 'buy_amount_mtm': '154.65', 'oms_order_id': None, 'average_sell_price': '0.0'}]}} The original dictionary is : {'status': 'success', 'message': '', 'data': {'positions': [{'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '144.24', 'instrument_token': '438', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '144.16', 'buy_amount': '144.16', 'sell_amount': '144.24', 'cf_sell_quantity': 0, 'ltp': 72.05, 'total_buy_quantity': 2, 'net_amount': 0.08, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.10', 'sell_quantity': '2', 'average_buy_price_mtm': '72.08', 'm2m': '0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '72.12', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '2', 'close_price_mtm': 0.0, 'trading_symbol': 'BHEL-EQ', 'average_sell_price': '72.12', 'total_sell_quantity': 2, 'exchange': 'NSE', 'average_buy_price': '72.08', 'cf_buy_quantity': 0, 'net_amount_mtm': 0.08}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '147.2', 'instrument_token': '20374', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '0.0', 'buy_amount': '0.0', 'sell_amount': '147.2', 'cf_sell_quantity': 0, 'ltp': 147.2, 'total_buy_quantity': 0, 'net_amount': 147.2, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.00', 'sell_quantity': '1', 'average_buy_price_mtm': '0.0', 'm2m': '0.00', 'close_price': 147.2, 'oms_order_id': None, 'average_sell_price_mtm': '147.2', 'multiplier': 1, 'client_id': '147758', 'net_quantity': -1, 'bep': '147.20', 'buy_quantity': '0', 'close_price_mtm': 147.2, 'trading_symbol': 'COALINDIA-EQ', 'average_sell_price': '147.2', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '0.0', 'cf_buy_quantity': 0, 'net_amount_mtm': 147.2}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '0.0', 'instrument_token': '4717', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '156.0', 'buy_amount': '156.0', 'sell_amount': '0.0', 'cf_sell_quantity': 0, 'ltp': 154.8, 'total_buy_quantity': 1, 'net_amount': -156.0, 'fill_id': None, 'unrealised_pnl': '-1.20', 'realised_pnl': '0.00', 'sell_quantity': '0', 'average_buy_price_mtm': '156.0', 'm2m': '-1.20', 'close_price': 156.0, 'oms_order_id': None, 'average_sell_price_mtm': '0.0', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 1, 'bep': '156.00', 'buy_quantity': '1', 'close_price_mtm': 156.0, 'trading_symbol': 'GAIL-EQ', 'average_sell_price': '0.0', 'total_sell_quantity': 0, 'exchange': 'NSE', 'average_buy_price': '156.0', 'cf_buy_quantity': 0, 'net_amount_mtm': -156.0}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '212.55', 'instrument_token': '1660', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '212.65', 'buy_amount': '212.65', 'sell_amount': '212.55', 'cf_sell_quantity': 0, 'ltp': 210.95, 'total_buy_quantity': 1, 'net_amount': -0.1, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '-0.10', 'sell_quantity': '1', 'average_buy_price_mtm': '212.65', 'm2m': '-0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '212.55', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '1', 'close_price_mtm': 0.0, 'trading_symbol': 'ITC-EQ', 'average_sell_price': '212.55', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '212.65', 'cf_buy_quantity': 0, 'net_amount_mtm': -0.1}]}}
Sell Market {placeIntraDayMarketSellOrder(username, password, token, "NSE", "COALINDIA", 1)}
AB-ORDER-INTRADAY-MARKET-SELL: {'status': 'success', 'message': 'Order placed successfully', 'data': {'oms_order_id': '210618000122107'}} The original dictionary is : {'status': 'success', 'message': '', 'data': {'positions': [{'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '144.24', 'instrument_token': '438', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '144.16', 'buy_amount': '144.16', 'sell_amount': '144.24', 'cf_sell_quantity': 0, 'ltp': 72.05, 'total_buy_quantity': 2, 'net_amount': 0.08, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.10', 'sell_quantity': '2', 'average_buy_price_mtm': '72.08', 'm2m': '0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '72.12', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '2', 'close_price_mtm': 0.0, 'trading_symbol': 'BHEL-EQ', 'average_sell_price': '72.12', 'total_sell_quantity': 2, 'exchange': 'NSE', 'average_buy_price': '72.08', 'cf_buy_quantity': 0, 'net_amount_mtm': 0.08}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '147.2', 'instrument_token': '20374', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '0.0', 'buy_amount': '0.0', 'sell_amount': '147.2', 'cf_sell_quantity': 0, 'ltp': 147.2, 'total_buy_quantity': 0, 'net_amount': 147.2, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.00', 'sell_quantity': '1', 'average_buy_price_mtm': '0.0', 'm2m': '0.00', 'close_price': 147.2, 'oms_order_id': None, 'average_sell_price_mtm': '147.2', 'multiplier': 1, 'client_id': '147758', 'net_quantity': -1, 'bep': '147.20', 'buy_quantity': '0', 'close_price_mtm': 147.2, 'trading_symbol': 'COALINDIA-EQ', 'average_sell_price': '147.2', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '0.0', 'cf_buy_quantity': 0, 'net_amount_mtm': 147.2}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '0.0', 'instrument_token': '4717', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '156.0', 'buy_amount': '156.0', 'sell_amount': '0.0', 'cf_sell_quantity': 0, 'ltp': 154.8, 'total_buy_quantity': 1, 'net_amount': -156.0, 'fill_id': None, 'unrealised_pnl': '-1.20', 'realised_pnl': '0.00', 'sell_quantity': '0', 'average_buy_price_mtm': '156.0', 'm2m': '-1.20', 'close_price': 156.0, 'oms_order_id': None, 'average_sell_price_mtm': '0.0', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 1, 'bep': '156.00', 'buy_quantity': '1', 'close_price_mtm': 156.0, 'trading_symbol': 'GAIL-EQ', 'average_sell_price': '0.0', 'total_sell_quantity': 0, 'exchange': 'NSE', 'average_buy_price': '156.0', 'cf_buy_quantity': 0, 'net_amount_mtm': -156.0}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '212.55', 'instrument_token': '1660', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '212.65', 'buy_amount': '212.65', 'sell_amount': '212.55', 'cf_sell_quantity': 0, 'ltp': 210.95, 'total_buy_quantity': 1, 'net_amount': -0.1, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '-0.10', 'sell_quantity': '1', 'average_buy_price_mtm': '212.65', 'm2m': '-0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '212.55', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '1', 'close_price_mtm': 0.0, 'trading_symbol': 'ITC-EQ', 'average_sell_price': '212.55', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '212.65', 'cf_buy_quantity': 0, 'net_amount_mtm': -0.1}]}}
Sell Limit
AB-ORDER-INTRADAY-LIMIT-SELL: {'status': 'success', 'message': 'Order placed successfully', 'data': {'oms_order_id': '210618000119228'}} The original dictionary is : {'status': 'success', 'message': '', 'data': {'positions': [{'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '144.24', 'instrument_token': '438', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '144.16', 'buy_amount': '144.16', 'sell_amount': '144.24', 'cf_sell_quantity': 0, 'ltp': 72.05, 'total_buy_quantity': 2, 'net_amount': 0.08, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.10', 'sell_quantity': '2', 'average_buy_price_mtm': '72.08', 'm2m': '0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '72.12', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '2', 'close_price_mtm': 0.0, 'trading_symbol': 'BHEL-EQ', 'average_sell_price': '72.12', 'total_sell_quantity': 2, 'exchange': 'NSE', 'average_buy_price': '72.08', 'cf_buy_quantity': 0, 'net_amount_mtm': 0.08}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '147.2', 'instrument_token': '20374', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '0.0', 'buy_amount': '0.0', 'sell_amount': '147.2', 'cf_sell_quantity': 0, 'ltp': 147.2, 'total_buy_quantity': 0, 'net_amount': 147.2, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.00', 'sell_quantity': '1', 'average_buy_price_mtm': '0.0', 'm2m': '0.00', 'close_price': 147.2, 'oms_order_id': None, 'average_sell_price_mtm': '147.2', 'multiplier': 1, 'client_id': '147758', 'net_quantity': -1, 'bep': '147.20', 'buy_quantity': '0', 'close_price_mtm': 147.2, 'trading_symbol': 'COALINDIA-EQ', 'average_sell_price': '147.2', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '0.0', 'cf_buy_quantity': 0, 'net_amount_mtm': 147.2}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '0.0', 'instrument_token': '4717', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '156.0', 'buy_amount': '156.0', 'sell_amount': '0.0', 'cf_sell_quantity': 0, 'ltp': 154.8, 'total_buy_quantity': 1, 'net_amount': -156.0, 'fill_id': None, 'unrealised_pnl': '-1.20', 'realised_pnl': '0.00', 'sell_quantity': '0', 'average_buy_price_mtm': '156.0', 'm2m': '-1.20', 'close_price': 156.0, 'oms_order_id': None, 'average_sell_price_mtm': '0.0', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 1, 'bep': '156.00', 'buy_quantity': '1', 'close_price_mtm': 156.0, 'trading_symbol': 'GAIL-EQ', 'average_sell_price': '0.0', 'total_sell_quantity': 0, 'exchange': 'NSE', 'average_buy_price': '156.0', 'cf_buy_quantity': 0, 'net_amount_mtm': -156.0}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '212.55', 'instrument_token': '1660', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '212.65', 'buy_amount': '212.65', 'sell_amount': '212.55', 'cf_sell_quantity': 0, 'ltp': 210.95, 'total_buy_quantity': 1, 'net_amount': -0.1, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '-0.10', 'sell_quantity': '1', 'average_buy_price_mtm': '212.65', 'm2m': '-0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '212.55', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '1', 'close_price_mtm': 0.0, 'trading_symbol': 'ITC-EQ', 'average_sell_price': '212.55', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '212.65', 'cf_buy_quantity': 0, 'net_amount_mtm': -0.1}]}}
Postions
AB-POSTIONS-DAYWISE: {'status': 'success', 'message': '', 'data': {'positions': [{'total_buy_quantity': 1, 'enabled': True, 'average_sell_price_mtm': '63.05', 'instrument_token': '438', 'cf_average_buy_price': 0, 'sell_amount': '63.05', 'average_buy_price_mtm': '62.9', 'product': 'MIS', 'ltp': 63.0, 'average_sell_price': '63.05', 'realised_pnl': '0.15', 'trading_symbol': 'BHEL-EQ', 'strike_price': '0', 'bep': '0.00', 'cf_buy_quantity': 0, 'sell_amount_mtm': '63.05', 'buy_amount': '62.9', 'multiplier': 1, 'm2m': '0.15', 'net_quantity': 0, 'close_price_mtm': 0.0, 'client_id': '147758', 'fill_id': None, 'net_amount_mtm': 0.15, 'close_price': 0.0, 'cf_sell_quantity': 0, 'oms_order_id': None, 'sell_quantity': '1', 'cf_average_sell_price': 0, 'net_amount': 0.15, 'exchange': 'NSE', 'average_buy_price': '62.9', 'unrealised_pnl': '0.00', 'buy_amount_mtm': '62.9', 'total_sell_quantity': 1, 'buy_quantity': '1'}, {'total_buy_quantity': 0, 'enabled': True, 'average_sell_price_mtm': '146.95', 'instrument_token': '20374', 'cf_average_buy_price': 0, 'sell_amount': '146.95', 'average_buy_price_mtm': '0.0', 'product': 'MIS', 'ltp': 146.75, 'average_sell_price': '146.95', 'realised_pnl': '0.00', 'trading_symbol': 'COALINDIA-EQ', 'strike_price': '0', 'bep': '146.95', 'cf_buy_quantity': 0, 'sell_amount_mtm': '146.95', 'buy_amount': '0.0', 'multiplier': 1, 'm2m': '0.20', 'net_quantity': -1, 'close_price_mtm': 146.95, 'client_id': '147758', 'fill_id': None, 'net_amount_mtm': 146.95, 'close_price': 146.95, 'cf_sell_quantity': 0, 'oms_order_id': None, 'sell_quantity': '1', 'cf_average_sell_price': 0, 'net_amount': 146.95, 'exchange': 'NSE', 'average_buy_price': '0.0', 'unrealised_pnl': '0.20', 'buy_amount_mtm': '0.0', 'total_sell_quantity': 1, 'buy_quantity': '0'}, {'total_buy_quantity': 1, 'enabled': True, 'average_sell_price_mtm': '0.0', 'instrument_token': '4717', 'cf_average_buy_price': 0, 'sell_amount': '0.0', 'average_buy_price_mtm': '154.65', 'product': 'MIS', 'ltp': 154.95, 'average_sell_price': '0.0', 'realised_pnl': '0.00', 'trading_symbol': 'GAIL-EQ', 'strike_price': '0', 'bep': '154.65', 'cf_buy_quantity': 0, 'sell_amount_mtm': '0.0', 'buy_amount': '154.65', 'multiplier': 1, 'm2m': '0.30', 'net_quantity': 1, 'close_price_mtm': 154.65, 'client_id': '147758', 'fill_id': None, 'net_amount_mtm': -154.65, 'close_price': 154.65, 'cf_sell_quantity': 0, 'oms_order_id': None, 'sell_quantity': '0', 'cf_average_sell_price': 0, 'net_amount': -154.65, 'exchange': 'NSE', 'average_buy_price': '154.65', 'unrealised_pnl': '0.30', 'buy_amount_mtm': '154.65', 'total_sell_quantity': 0, 'buy_quantity': '1'}]}} The original dictionary is : {'status': 'success', 'message': '', 'data': {'positions': [{'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '144.24', 'instrument_token': '438', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '144.16', 'buy_amount': '144.16', 'sell_amount': '144.24', 'cf_sell_quantity': 0, 'ltp': 72.05, 'total_buy_quantity': 2, 'net_amount': 0.08, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.10', 'sell_quantity': '2', 'average_buy_price_mtm': '72.08', 'm2m': '0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '72.12', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '2', 'close_price_mtm': 0.0, 'trading_symbol': 'BHEL-EQ', 'average_sell_price': '72.12', 'total_sell_quantity': 2, 'exchange': 'NSE', 'average_buy_price': '72.08', 'cf_buy_quantity': 0, 'net_amount_mtm': 0.08}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '147.2', 'instrument_token': '20374', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '0.0', 'buy_amount': '0.0', 'sell_amount': '147.2', 'cf_sell_quantity': 0, 'ltp': 147.2, 'total_buy_quantity': 0, 'net_amount': 147.2, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '0.00', 'sell_quantity': '1', 'average_buy_price_mtm': '0.0', 'm2m': '0.00', 'close_price': 147.2, 'oms_order_id': None, 'average_sell_price_mtm': '147.2', 'multiplier': 1, 'client_id': '147758', 'net_quantity': -1, 'bep': '147.20', 'buy_quantity': '0', 'close_price_mtm': 147.2, 'trading_symbol': 'COALINDIA-EQ', 'average_sell_price': '147.2', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '0.0', 'cf_buy_quantity': 0, 'net_amount_mtm': 147.2}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '0.0', 'instrument_token': '4717', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '156.0', 'buy_amount': '156.0', 'sell_amount': '0.0', 'cf_sell_quantity': 0, 'ltp': 154.8, 'total_buy_quantity': 1, 'net_amount': -156.0, 'fill_id': None, 'unrealised_pnl': '-1.20', 'realised_pnl': '0.00', 'sell_quantity': '0', 'average_buy_price_mtm': '156.0', 'm2m': '-1.20', 'close_price': 156.0, 'oms_order_id': None, 'average_sell_price_mtm': '0.0', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 1, 'bep': '156.00', 'buy_quantity': '1', 'close_price_mtm': 156.0, 'trading_symbol': 'GAIL-EQ', 'average_sell_price': '0.0', 'total_sell_quantity': 0, 'exchange': 'NSE', 'average_buy_price': '156.0', 'cf_buy_quantity': 0, 'net_amount_mtm': -156.0}, {'cf_average_buy_price': 0, 'enabled': True, 'strike_price': '0', 'sell_amount_mtm': '212.55', 'instrument_token': '1660', 'product': 'MIS', 'cf_average_sell_price': 0, 'buy_amount_mtm': '212.65', 'buy_amount': '212.65', 'sell_amount': '212.55', 'cf_sell_quantity': 0, 'ltp': 210.95, 'total_buy_quantity': 1, 'net_amount': -0.1, 'fill_id': None, 'unrealised_pnl': '0.00', 'realised_pnl': '-0.10', 'sell_quantity': '1', 'average_buy_price_mtm': '212.65', 'm2m': '-0.10', 'close_price': 0.0, 'oms_order_id': None, 'average_sell_price_mtm': '212.55', 'multiplier': 1, 'client_id': '147758', 'net_quantity': 0, 'bep': '0.00', 'buy_quantity': '1', 'close_price_mtm': 0.0, 'trading_symbol': 'ITC-EQ', 'average_sell_price': '212.55', 'total_sell_quantity': 1, 'exchange': 'NSE', 'average_buy_price': '212.65', 'cf_buy_quantity': 0, 'net_amount_mtm': -0.1}]}}