Error while placing order - BO : Algo ID and Category not found


  • I made a python code where the symbol and the buy price will be entered and then the code look for the said symbol and buys above the price

    Symbols like,

    BANKNIFTY
    FINNIFTY
    NIFTY

    Were triggered and positions were successfully created in angel one

    but symbols like: BANKEX, SENSEX, MIDCPNIFTY were not able to place

    the below is the error triggered when the above mentioned symbols were tried to place:

    [D 240726 09:36:22 robo_order_limit:40] Order parameters: {'variety': 'ROBO', 'tradingsymbol': 'SENSEX24JUL80200CE', 'symboltoken': '842966', 'transactiontype': 'BUY', 'exchange': 'BFO', 'ordertype': 'MARKET', 'producttype': 'INTRADAY', 'duration': 'DAY', 'price': 0, 'squareoff': 50, 'stoploss': 30, 'quantity': 10}
    [I 240726 09:36:22 robo_order_limit:43] Order placed successfully. Order ID: 240726000148267
    +-----------------+--------------------+--------------------+------------+--------------+------------+----------+-------------------------------------+
    | Order ID | Trading Symbol | Transaction Type | Exchange | Order Type | Quantity | Status | Message |
    +=================+====================+====================+============+==============+============+==========+=====================================+
    | 240726000148267 | SENSEX24JUL80200CE | BUY | BFO | MARKET | 10 | rejected | BO : Algo ID and Category not found |
    +-----------------+--------------------+--------------------+------------+--------------+------------+----------+-------------------------------------+

    The error is BO : Algo ID and Category not found

    dont know how to fix this