Base path: /api/recurringOrder Source: src/routes/recurringOrder.route.ts

Request body

Behaviour

  • On recurringStatus: true, registers an interval keyed recurringOrder_{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 RecurringOrder collection for session recovery.
See Recurring buy for the full trading engine flow.