47fac22230
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.5 KiB
1.5 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 | function | go | finance | 1.0.0 | pure | func TickToOHLCV(prices, volumes []float64, timestamps []int64, intervalSecs int64) (open, high, low, close, vol []float64) | Agrega datos de ticks en velas OHLCV segun un intervalo de tiempo en segundos. |
|
|
|
false |
|
tupla (open, high, low, close, volume) - cinco slices de datos OHLCV agregados por intervalo | false | functions/finance/tick_to_ohlcv.go |
tick_to_ohlcv
Agrega ticks (precio, volumen, timestamp) en velas OHLCV. Los ticks se agrupan en buckets de intervalSecs segundos. Los timestamps deben estar en unix seconds y ordenados cronologicamente.
Ejemplo
o, h, l, c, v := finance.TickToOHLCV(
[]float64{100, 101, 99, 102},
[]float64{10, 20, 15, 25},
[]int64{1000, 1005, 1055, 1060},
60,
)
// Genera 2 velas: [1000-1059] y [1060-1119]