Unexpected Fyers API behavior: Fulfilled order while market is closed on a Saturday

Dear Fyers Team,

I have encountered an unexpected Fyers API behavior. I have been testing Fyers API today Saturday Aug-03-2024 around 3.20 PM. I was expecting a rejection from fyers API while placing CNC orders when the market is closed, however surprisingly some of the orders are **fulfilled **and some of them are in ‘Working’/‘Cancelled’ state.

Not sure if this is an expected behavior, When I tried to cancel the pending orders, I could not do it due to this error

{‘code’: -99, ‘message’: ‘YEL:Yel not ready for transaction’, ‘s’: ‘error’, ‘id’: ‘24080300002122’}

Could you please help me resolve this issue? or explain the API behavior in off market hours?

Raised a support ticket: ID 1592373.

Hey @joydeep.hazra-qk8

That is due to the Mock trading session . There will be mock trading sessions held by the exchange on few weekends that is the reason for your orders to be fullfiled