Skip to content

[codex] Add pyth lazer latest price surface#137

Draft
jaspersagent wants to merge 1 commit into
sedaprotocol:mainfrom
jaspersagent:feat/pp-proxy-unify
Draft

[codex] Add pyth lazer latest price surface#137
jaspersagent wants to merge 1 commit into
sedaprotocol:mainfrom
jaspersagent:feat/pp-proxy-unify

Conversation

@jaspersagent
Copy link
Copy Markdown
Contributor

Summary

  • Add the POST /v1/latest_price pyth-lazer surface expected by deployed pyth_pro oracle programs.
  • Keep the existing GET /price/:symbols array surface backed by the same websocket cache.
  • Preserve all-or-fail request ordering for latest_price so response entries align with requested feed positions.
  • Store per-feed stream timestamps in cache so parsed.timestampUs is derived from the returned feeds, not unrelated updates.

Validation

  • bun test workspace/data-proxy/src/modules/pyth-lazer/pyth-lazer.test.ts
  • bunx biome check workspace/data-proxy/src/config/pyth-lazer-module-config.ts workspace/data-proxy/src/controllers/proxy/handle-proxy-request.ts workspace/data-proxy/src/modules/pyth-lazer/pyth-lazer.ts workspace/data-proxy/src/modules/pyth-lazer/pyth-lazer.test.ts
  • bun run check-ts
  • bun test

@jaspersagent jaspersagent force-pushed the feat/pp-proxy-unify branch from bd29a91 to 17b5347 Compare May 29, 2026 17:31
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