Getting error while placing order

I am placing an alice blue order using placeOrder,

        order_id = alice.place_order(
            transaction_type=TransactionType.Buy if intraday_order['Trantype'] == 'B' else TransactionType.Sell,
            instrument=alice.get_instrument_by_symbol('NFO', intraday_order['Tsym']), 
            quantity=int(quantity),
            order_type = OrderType.Market if intraday_order['Prctype'] == 'MKT' else OrderType.Limit if intraday_order['Prctype'] == 'SL' else None,
            product_type=ProductType.Delivery,
            order_tag='trade_order'
        )```


But I am getting below error, 
Error placing delivery order: 'dict' object has no attribute 'exchange'

Please help if something has changed in the apis

For the Python script kindly find the below links
Kindly find our GitHub library in the given below link.

Kindly find our YouTube tutorial in the given link below

> print(alice.get_trade_book())
> print(alice.get_instrument_for_fno(exch="NFO",symbol='BANKNIFTY', expiry_date="2024-02-14", is_fut=False,strike=45000, is_CE=True))
> 
> {'stat': 'Not_ok', 'emsg': '401 - Unauthorized', 'encKey': None}
> Instrument(exchange='NFO', token=46404, symbol='BANKNIFTY', name='BANKNIFTY14FEB24C45000', expiry='2024-02-14', lot_size=15)

I am not sure why get_instrument_from_fno is working on Sunday, but get_trade_book, get_scrip_info are not working. This is happening quite frequently. Can you help understand this