diff --git a/types/finance/.gitkeep b/types/finance/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/types/finance/bollinger_result.go b/types/finance/bollinger_result.go new file mode 100644 index 00000000..3269372d --- /dev/null +++ b/types/finance/bollinger_result.go @@ -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 +} diff --git a/types/finance/bollinger_result.md b/types/finance/bollinger_result.md new file mode 100644 index 00000000..0ed05b3b --- /dev/null +++ b/types/finance/bollinger_result.md @@ -0,0 +1,17 @@ +--- +name: bollinger_result +lang: go +domain: finance +version: "1.0.0" +algebraic: product +definition: | + type BollingerResult struct { + Upper []float64 + Middle []float64 + Lower []float64 + } +description: "Resultado de Bollinger Bands con bandas superior, media e inferior." +tags: [finance, bollinger, indicator, bands] +uses_types: [] +file_path: "types/finance/bollinger_result.go" +--- diff --git a/types/finance/drawdown_result.go b/types/finance/drawdown_result.go new file mode 100644 index 00000000..55c33d5f --- /dev/null +++ b/types/finance/drawdown_result.go @@ -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 +} diff --git a/types/finance/drawdown_result.md b/types/finance/drawdown_result.md new file mode 100644 index 00000000..45a2e5b4 --- /dev/null +++ b/types/finance/drawdown_result.md @@ -0,0 +1,17 @@ +--- +name: drawdown_result +lang: go +domain: finance +version: "1.0.0" +algebraic: product +definition: | + type DrawdownResult struct { + Value float64 + Start int + End int + } +description: "Resultado de maximo drawdown con el valor de caida y los indices de inicio y fin." +tags: [finance, drawdown, risk, metric] +uses_types: [] +file_path: "types/finance/drawdown_result.go" +--- diff --git a/types/finance/ohlcv.go b/types/finance/ohlcv.go new file mode 100644 index 00000000..03b61dff --- /dev/null +++ b/types/finance/ohlcv.go @@ -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 +} diff --git a/types/finance/ohlcv.md b/types/finance/ohlcv.md new file mode 100644 index 00000000..6c43b693 --- /dev/null +++ b/types/finance/ohlcv.md @@ -0,0 +1,19 @@ +--- +name: ohlcv +lang: go +domain: finance +version: "1.0.0" +algebraic: product +definition: | + type OHLCV struct { + Open float64 + High float64 + Low float64 + Close float64 + Volume float64 + } +description: "Vela de mercado con precios de apertura, maximo, minimo, cierre y volumen." +tags: [finance, market, candle, ohlcv] +uses_types: [] +file_path: "types/finance/ohlcv.go" +--- diff --git a/types/finance/tick.go b/types/finance/tick.go new file mode 100644 index 00000000..8bbe0e28 --- /dev/null +++ b/types/finance/tick.go @@ -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 +} diff --git a/types/finance/tick.md b/types/finance/tick.md new file mode 100644 index 00000000..f2413ab7 --- /dev/null +++ b/types/finance/tick.md @@ -0,0 +1,18 @@ +--- +name: tick +lang: go +domain: finance +version: "1.0.0" +algebraic: product +definition: | + type Tick struct { + Symbol string + Price float64 + Volume float64 + Timestamp time.Time + } +description: "Evento de trade individual en un mercado. Contiene simbolo, precio, volumen y timestamp." +tags: [finance, market, tick, trade] +uses_types: [] +file_path: "types/finance/tick.go" +---