Gapless trade and action download
Pull every F&O trade and action from the NCMS FO API with sequence-based resumption, so nothing is skipped.
Why it matters
- A complete, current, on-disk record of the trading day.
- Resilience to brief network interruptions.
- Combined trade & action download. Polls the NCMS FO API with the ALLTRDACT filter for trades and actions in one stream.
- Sequence-number resumption. Continues from the last saved sequence number — no missed trades across sessions.
- Automatic local persistence. Batched upsert into a day-based embedded database, with retention cleanup.
- Continuous CSV dump. A deduplicated CSV dump of every trade for an external audit trail.
- Circuit breaker & retry. Exponential backoff with a short circuit after repeated failures.