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>
36 lines
888 B
Markdown
36 lines
888 B
Markdown
---
|
|
name: stream_ticks
|
|
kind: function
|
|
lang: go
|
|
domain: finance
|
|
version: "1.0.0"
|
|
purity: impure
|
|
signature: "func StreamTicks(symbol string) (<-chan [2]float64, error)"
|
|
description: "Abre un stream de ticks en tiempo real para un simbolo via websocket."
|
|
tags: [finance, io, stream, realtime, pendiente-usar]
|
|
uses_functions: []
|
|
uses_types: [tick_go_finance]
|
|
returns: [tick_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')"
|
|
output: "canal que emite pares [2]float64 de [precio, volumen] en cada tick en tiempo real"
|
|
tested: false
|
|
tests: []
|
|
test_file_path: ""
|
|
file_path: "functions/finance/stream_ticks.go"
|
|
---
|
|
|
|
# stream_ticks
|
|
|
|
Stub para abrir un stream de ticks en tiempo real. Pendiente de implementacion.
|
|
|
|
## Ejemplo
|
|
|
|
```go
|
|
ch, err := finance.StreamTicks("ETH/USDT")
|
|
```
|