Browse Source

draft: Talib

- SMA
Alexey Kim 5 months ago
parent
commit
287940b722
2 changed files with 7 additions and 0 deletions
  1. 2 0
      market.go
  2. 5 0
      talib.go

+ 2 - 0
market.go

@@ -11,6 +11,8 @@ var (
 )
 
 type Market interface {
+	Talib
+
 	Connect(done chan struct{}) (chan MarketConnection, error)
 	Subscribe(symbol string) error
 

+ 5 - 0
talib.go

@@ -0,0 +1,5 @@
+package sentio
+
+type Talib interface {
+	SMA(symbol string, interval, period, limit uint) []float64
+}