Files
fn_registry/docs/templates/pipeline.md
egutierrez 513c2fb4a7 docs: documenta params_schema en CLAUDE.md y templates
Actualiza schema rápido, ejemplo FTS5, sección de añadir funciones y los tres
templates (function, pipeline, component) con los campos params/output obligatorios.
2026-04-06 00:35:40 +02:00

1.0 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path
tick_to_ohlcv pipeline go finance 1.0.0 impure func TickToOHLCV(ctx context.Context, symbol string, interval time.Duration) ([]OHLCV, error) Pipeline que obtiene ticks de un exchange y los agrega en velas OHLCV.
pipeline
finance
ohlcv
ticks
fetch_ticks_go_io
aggregate_ohlcv_go_finance
ohlcv_go_finance
tick_go_finance
ohlcv_go_finance
false error_go_core
name desc
ctx contexto de ejecución con timeout/cancelación
name desc
symbol par de trading (ej: BTCUSDT)
name desc
interval duración de cada vela (ej: 5m, 1h)
slice de velas OHLCV agregadas, o error si falla el fetch false
functions/pipelines/tick_to_ohlcv.go

Ejemplo

candles, err := TickToOHLCV(ctx, "BTCUSDT", 5*time.Minute)

Notas

Pipeline impuro: orquesta fetch_ticks (IO) y aggregate_ohlcv (pura).