How to Persist Order Management State Safely in Dhan Cloud?

Hi Dhan Team / Community,

We are testing an algo on Dhan Cloud and have one important requirement for live order management.

For safe execution, we need to store small order-related state such as active trade ID, entry order ID, SL/target order IDs, filled quantity, pending order status, and recovery/reconciliation metadata. This is required so that if the cloud script restarts or disconnects, the system can reconcile broker positions/orders and avoid duplicate orders, orphaned SL/target orders, or wrong exits.

Currently, Dhan Cloud seems to restrict local file/storage access, so we are unable to persist this order state reliably inside the cloud environment.

What is the recommended way to handle this on Dhan Cloud?

Do you suggest using any supported cloud storage, database, webhook/postback-based reconstruction, order book reconciliation using correlation IDs, or any other best practice for managing live order state safely?

We do not need to store large data, only a small JSON-like order state required for safe order management and recovery.

Any guidance from Dhan team or community members who have handled similar live order-management logic would be very helpful.

I stored the state in a csv file and load in python. Or you can also use sqlite3 library in python.

Does cloud provide to read/write data? When I have tried, it gives the error message of permission.