988e901066
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.
964 B
964 B
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 | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| fetch_ohlcv | function | go | finance | 1.0.0 | impure | func FetchOHLCV(symbol, interval string) ([][]float64, error) | Obtiene datos OHLCV de un exchange para un simbolo e intervalo dados. |
|
|
|
false | error_go_core |
|
|
slice de slices de 5 floats en orden [open, high, low, close, volume] por cada vela | false | functions/finance/fetch_ohlcv.go |
fetch_ohlcv
Stub para obtener datos OHLCV de un exchange. Pendiente de implementacion.
Ejemplo
data, err := finance.FetchOHLCV("BTC/USDT", "1h")