feat: 15 funciones finance — indicadores, riesgo e IO de mercado
11 funciones puras con implementación real: SMA, EMA, RSI, BollingerBands, VWAP, LogReturn, AnnualizedVolatility, SharpeRatio, MaxDrawdown, NormalizeOHLCV, TickToOHLCV 4 funciones impuras (stubs): FetchOHLCV, StreamTicks, WriteOHLCVToParquet, LoadOHLCVFromDuckDB Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
---
|
||||
name: load_ohlcv_from_duckdb
|
||||
kind: function
|
||||
lang: go
|
||||
domain: finance
|
||||
version: "1.0.0"
|
||||
purity: impure
|
||||
signature: "func LoadOHLCVFromDuckDB(dbPath, query string) ([][]float64, error)"
|
||||
description: "Carga datos OHLCV ejecutando una query SQL en una base de datos DuckDB."
|
||||
tags: [finance, io, duckdb, load]
|
||||
uses_functions: []
|
||||
uses_types: [ohlcv_go_finance]
|
||||
returns: [ohlcv_go_finance]
|
||||
returns_optional: false
|
||||
error_type: "error_go_core"
|
||||
imports: [fmt]
|
||||
tested: false
|
||||
tests: []
|
||||
test_file_path: ""
|
||||
file_path: "functions/finance/load_ohlcv_from_duckdb.go"
|
||||
---
|
||||
|
||||
# load_ohlcv_from_duckdb
|
||||
|
||||
Stub para cargar datos OHLCV desde DuckDB. Pendiente de implementacion.
|
||||
|
||||
## Ejemplo
|
||||
|
||||
```go
|
||||
data, err := finance.LoadOHLCVFromDuckDB("/data/market.duckdb", "SELECT * FROM ohlcv WHERE symbol='BTC'")
|
||||
```
|
||||
Reference in New Issue
Block a user