/api/recurringOrder
Source: src/routes/recurringOrder.route.ts
Request body
Behaviour
- On
recurringStatus: true, registers an interval keyedrecurringOrder_{indexName}_{right}. - Each tick reads latest market data from
latestDataMap, evaluates strike conditions, and places BUY orders via Zerodha (or dummy mode). - On
recurringStatus: false, stops the interval and optionally triggers bulk sell. - Persists state to the
RecurringOrdercollection for session recovery.