Files
fn_registry/functions/finance/fetch_ohlcv.md
T
egutierrez 988e901066 docs: params/output semántico en 506 funciones para composabilidad
Añade campos params y output al frontmatter YAML de las 506 funciones del registry.
Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico)
y cada función describe qué produce su output. Permite a agentes razonar sobre
cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
2026-04-05 18:45:16 +02:00

38 lines
964 B
Markdown

---
name: fetch_ohlcv
kind: function
lang: go
domain: finance
version: "1.0.0"
purity: impure
signature: "func FetchOHLCV(symbol, interval string) ([][]float64, error)"
description: "Obtiene datos OHLCV de un exchange para un simbolo e intervalo dados."
tags: [finance, io, exchange, fetch]
uses_functions: []
uses_types: [ohlcv_go_finance]
returns: [ohlcv_go_finance]
returns_optional: false
error_type: "error_go_core"
imports: [fmt]
params:
- name: symbol
desc: "símbolo del instrumento (ej: 'BTC/USDT', 'EUR/USD', 'AAPL')"
- name: interval
desc: "intervalo temporal (ej: '1m', '5m', '1h', '1d')"
output: "slice de slices de 5 floats en orden [open, high, low, close, volume] por cada vela"
tested: false
tests: []
test_file_path: ""
file_path: "functions/finance/fetch_ohlcv.go"
---
# fetch_ohlcv
Stub para obtener datos OHLCV de un exchange. Pendiente de implementacion.
## Ejemplo
```go
data, err := finance.FetchOHLCV("BTC/USDT", "1h")
```