feat: add 1m, 5m, 10m, 30m OHLCV candles for EVM/TVM - #392
Merged
Conversation
- 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
YaroShkvorets
temporarily deployed
to
feat/evm-ohlcv-minute-candles - token-api PR #392
February 22, 2026 17:29 — with
Render
Destroyed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsevmIntervalSchemawith 8 intervals:1m(1),5m(5),10m(10),30m(30),1h(60),4h(240),1d(1440),1w(10080)intervalSchemaunchanged (SVM + balance endpoints)src/routes/ohlcv/evm.ts+tvm.tsintervalSchema→evmIntervalSchemasrc/utils.tsevmIntervalSchema(superset) so plans can allow minute candlessrc/types/zod.spec.tsevmIntervalSchema(all 8 intervals)intervalSchemarejects minute candlesNote
This assumes the ClickHouse
ohlc_pricestable 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.