refactor: mover .go de tipos Go a functions/{domain}/ para compilación unificada
Los archivos .go de tipos ahora viven junto a las funciones en functions/{domain}/
(mismo paquete Go), resolviendo errores de compilación por tipos no encontrados
(Option, Pair, Result, etc.). Los .md de metadata permanecen en types/{domain}/
con file_path actualizado a functions/. Se elimina types.go duplicado de infra.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package finance
|
||||
|
||||
// BollingerResult holds the three bands of a Bollinger Bands calculation.
|
||||
type BollingerResult struct {
|
||||
Upper []float64
|
||||
Middle []float64
|
||||
Lower []float64
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package finance
|
||||
|
||||
// DrawdownResult holds the maximum drawdown value and the indices where it occurred.
|
||||
type DrawdownResult struct {
|
||||
Value float64
|
||||
Start int
|
||||
End int
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package finance
|
||||
|
||||
// OHLCV represents a market candle with open, high, low, close prices and volume.
|
||||
type OHLCV struct {
|
||||
Open float64
|
||||
High float64
|
||||
Low float64
|
||||
Close float64
|
||||
Volume float64
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package finance
|
||||
|
||||
import "time"
|
||||
|
||||
// Tick represents a single trade event in a market.
|
||||
type Tick struct {
|
||||
Symbol string
|
||||
Price float64
|
||||
Volume float64
|
||||
Timestamp time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user