Skip to content

feat: add 1m, 5m, 10m, 30m OHLCV candles for EVM/TVM - #392

Merged
DenisCarriere merged 3 commits into
mainfrom
feat/evm-ohlcv-minute-candles
Feb 22, 2026
Merged

feat: add 1m, 5m, 10m, 30m OHLCV candles for EVM/TVM#392
DenisCarriere merged 3 commits into
mainfrom
feat/evm-ohlcv-minute-candles

Conversation

@pax-openclaw

@pax-openclaw pax-openclaw Bot commented Feb 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds 4 additional minute-level OHLCV candle intervals for EVM and TVM endpoints: 1m, 5m, 10m, 30m.

SVM endpoints are unchanged (still 1h, 4h, 1d, 1w).

Changes

src/types/zod.ts

  • Added evmIntervalSchema with 8 intervals: 1m (1), 5m (5), 10m (10), 30m (30), 1h (60), 4h (240), 1d (1440), 1w (10080)
  • Existing intervalSchema unchanged (SVM + balance endpoints)

src/routes/ohlcv/evm.ts + tvm.ts

  • Switched from intervalSchemaevmIntervalSchema

src/utils.ts

  • Updated plan interval validation to use evmIntervalSchema (superset) so plans can allow minute candles

src/types/zod.spec.ts

  • Added tests for evmIntervalSchema (all 8 intervals)
  • Added tests confirming SVM intervalSchema rejects minute candles

Note

This assumes the ClickHouse ohlc_prices table already has data at 1-minute, 5-minute, 10-minute, and 30-minute aggregation levels. If not, those intervals will return empty results until the data pipeline is updated.

- Added evmIntervalSchema with 8 intervals: 1m, 5m, 10m, 30m, 1h, 4h, 1d, 1w
- EVM and TVM OHLCV routes now use evmIntervalSchema
- SVM OHLCV and balance historical routes keep using intervalSchema (1h, 4h, 1d, 1w)
- Updated plan interval validation to support minute candles
- Added tests for evmIntervalSchema
@pax-openclaw
pax-openclaw Bot requested a review from DenisCarriere February 22, 2026 17:25
@YaroShkvorets
YaroShkvorets temporarily deployed to feat/evm-ohlcv-minute-candles - token-api PR #392 February 22, 2026 17:29 — with Render Destroyed
@DenisCarriere
DenisCarriere merged commit 0c9da92 into main Feb 22, 2026
1 check passed
@DenisCarriere
DenisCarriere deleted the feat/evm-ohlcv-minute-candles branch February 22, 2026 17:30
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.

2 participants