Skip to content

feat(stateful): add streaming SMA/EMA APIs with parity and reset coverage#12

Merged
TDamiao merged 2 commits intomainfrom
feat/issue-2-streaming-stateful-api
Feb 26, 2026
Merged

feat(stateful): add streaming SMA/EMA APIs with parity and reset coverage#12
TDamiao merged 2 commits intomainfrom
feat/issue-2-streaming-stateful-api

Conversation

@TDamiao
Copy link
Owner

@TDamiao TDamiao commented Feb 26, 2026

Summary

  • add createSMA(period) and createEMA(period) to the stateful API
  • keep warmup behavior deterministic and aligned with batch sma/ema
  • keep
    eset() deterministic for repeated streaming runs
  • export new constructors from root package entrypoint
  • document websocket-like real-time usage in README
  • extend golden tests with stateful parity and invalid-input validation

Validation

pm.cmd run build

ode --test --test-concurrency=1 --test-isolation=none test/contracts.test.mjs

ode --test --test-concurrency=1 --test-isolation=none test/golden.test.mjs

Refs #2

@TDamiao TDamiao merged commit 9ba7417 into main Feb 26, 2026
4 checks passed
@TDamiao TDamiao deleted the feat/issue-2-streaming-stateful-api branch February 27, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant