Skip to content

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

Closed
TDamiao wants to merge 1 commit intofeat/issue-7-typing-uxfrom
feat/issue-2-streaming-stateful-api
Closed

feat(stateful): add streaming SMA/EMA APIs with parity and reset coverage#10
TDamiao wants to merge 1 commit intofeat/issue-7-typing-uxfrom
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 reset() 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

  • npm.cmd run build
  • node --test --test-concurrency=1 --test-isolation=none test/contracts.test.mjs
  • node --test --test-concurrency=1 --test-isolation=none test/golden.test.mjs

Notes

Refs #2

@TDamiao TDamiao deleted the branch feat/issue-7-typing-ux February 26, 2026 18:56
@TDamiao TDamiao closed this Feb 26, 2026
@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