Explorar o código

Market

- add Quote
Alexey Kim hai 2 semanas
pai
achega
f8d078a111
Modificáronse 2 ficheiros con 10 adicións e 0 borrados
  1. 1 0
      market.go
  2. 9 0
      quote.go

+ 1 - 0
market.go

@@ -27,6 +27,7 @@ type Market interface {
 	PortfolioHistory() ([]PortfolioRecord, error)
 
 	HistoricalBars(symbol string, interval time.Duration, from *time.Time) ([]Bar, error)
+	Quote(symbol string) (Quote, error)
 
 	Account() (MarketAccount, error)
 	MaxBudget() float64

+ 9 - 0
quote.go

@@ -0,0 +1,9 @@
+package sentio
+
+type Quote struct {
+	AskPrice float64
+	AskSize  int
+
+	BidPrice float64
+	BidSize  int
+}