AliceBlue CNC Orders - theheapdump/kite-webapp GitHub Wiki

Delivery Orders

Buy Market

AB-ORDER-DELIVERY-MARKET-BUY: {'status': 'success', 'message': 'Order placed successfully', 'data': {'oms_order_id': '210618000142157'}} 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

AB-ORDER-DELIVERY-LIMIT-BUY: {'status': 'success', 'message': 'Order placed successfully', 'data': {'oms_order_id': '210618000142402'}} 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 ---- DID NOT ALLOW TO SELL IN CNC

AB-ORDER-DELIVERY-MARKET-SELL: {'status': 'error', 'message': 'CNC SELL is not allowed here, use https://ant.aliceblueonline.com Web or Mobile', 'data': {}} 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 ---- DID NOT ALLOW TO SELL IN CNC

AB-ORDER-DELIVERY-LIMIT-SELL: {'status': 'error', 'message': 'CNC SELL is not allowed here, use https://ant.aliceblueonline.com Web or Mobile', 'data': {}} 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}]}}

EXIT