103cba2a42
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.
1.0 KiB
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. |
|
|
|
|
false | error_go_core |
|
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).