Open aseemg123 opened 1 month ago
using APIs I was able to place order and retrieve order details.
but while trying to squareoff i get this error: Resource not available can you please help me with this issue ?
below are few details:
breeze.get_order_detail() order_detail:', {'Success': [{'order_id': '202405134100027243', 'exchange_order_id': '1000000094076299', 'exchange_code': 'NFO', 'stock_code': 'NIFTY', 'product_type': 'Options', 'action': 'Buy', 'order_type': 'Market', 'stoploss': '0', 'quantity': '25', 'price': '3.15', 'validity': 'Day', 'disclosed_quantity': '0', 'expiry_date': '16-May-2024', 'right': 'Call', 'strike_price': 22800.0, 'average_price': '3.15', 'cancelled_quantity': '0', 'pending_quantity': '0', 'status': 'Executed', 'user_remark': None, 'order_datetime': '13-May-2024 14:28:02', 'parent_order_id': '', 'modification_number': None, 'exchange_acknowledgement_date': None, 'SLTP_price': None, 'exchange_acknowledge_number': None, 'initial_limit': None, 'intial_sltp': None, 'LTP': None, 'limit_offset': None, 'mbc_flag': None, 'cutoff_price': None, 'validity_date': None}], 'Status': 200, 'Error': None}
breeze.square_off() p: {'stock_code': 'NIFTY', 'exchange_code': 'NFO', 'product': 'options', 'action': 'sell', 'order_type': 'market', 'stoploss': '', 'quantity': '25', 'price': '', 'validity': 'day', 'validity_date': '2024-05-13T05:30:00.000Z', 'disclosed_quantity': '0', 'expiry_date': '2024-05-16T05:30:00.000Z', 'right': 'call', 'user_remark': '', 'trade_password': '', 'strike_price': 22800}
{'Success': None, 'Status': 500, 'Error': 'Resource not available
using APIs I was able to place order and retrieve order details.
but while trying to squareoff i get this error: Resource not available can you please help me with this issue ?
below are few details:
breeze.get_order_detail() order_detail:', {'Success': [{'order_id': '202405134100027243', 'exchange_order_id': '1000000094076299', 'exchange_code': 'NFO', 'stock_code': 'NIFTY', 'product_type': 'Options', 'action': 'Buy', 'order_type': 'Market', 'stoploss': '0', 'quantity': '25', 'price': '3.15', 'validity': 'Day', 'disclosed_quantity': '0', 'expiry_date': '16-May-2024', 'right': 'Call', 'strike_price': 22800.0, 'average_price': '3.15', 'cancelled_quantity': '0', 'pending_quantity': '0', 'status': 'Executed', 'user_remark': None, 'order_datetime': '13-May-2024 14:28:02', 'parent_order_id': '', 'modification_number': None, 'exchange_acknowledgement_date': None, 'SLTP_price': None, 'exchange_acknowledge_number': None, 'initial_limit': None, 'intial_sltp': None, 'LTP': None, 'limit_offset': None, 'mbc_flag': None, 'cutoff_price': None, 'validity_date': None}], 'Status': 200, 'Error': None}
breeze.square_off() p: {'stock_code': 'NIFTY', 'exchange_code': 'NFO', 'product': 'options', 'action': 'sell', 'order_type': 'market', 'stoploss': '', 'quantity': '25', 'price': '', 'validity': 'day', 'validity_date': '2024-05-13T05:30:00.000Z', 'disclosed_quantity': '0', 'expiry_date': '2024-05-16T05:30:00.000Z', 'right': 'call', 'user_remark': '', 'trade_password': '', 'strike_price': 22800}
{'Success': None, 'Status': 500, 'Error': 'Resource not available