---
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, pendiente-usar]
uses_functions: []
uses_types: [ohlcv_go_finance]
returns: [ohlcv_go_finance]
returns_optional: false
error_type: "error_go_core"
imports: [fmt]
params:
  - name: dbPath
    desc: "ruta al archivo DuckDB (ej: '/data/market.duckdb')"
  - name: query
    desc: "consulta SQL para extraer filas (ej: 'SELECT open, high, low, close, volume FROM ohlcv WHERE symbol=\"BTC\"')"
output: "slice de slices de 5 floats en orden [open, high, low, close, volume] por cada fila de resultado"
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'")
```
