|
|
|
@ -123,24 +123,6 @@ func (self *Quotes) RemoveTickers(tickers []string) (removed int, err error) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
func (self *Quotes) Reorder() *Quotes { |
|
|
|
|
if self.profile.Reorder() == nil { |
|
|
|
|
self.stocks = nil // Force fetch.
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return self |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
func (self *Quotes) Regroup() *Quotes { |
|
|
|
|
if self.profile.Regroup() == nil { |
|
|
|
|
self.stocks = nil // Force fetch.
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return self |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
func (self *Quotes) parse(body []byte) *Quotes { |
|
|
|
|
lines := bytes.Split(body, []byte{'\n'}) |
|
|
|
|