Change the client to take a variadic list of strings

pull/2/head
Jacob Windle 2020-01-20 14:19:00 -05:00
parent 1d985d25a4
commit 6b4b0e6de8
2 changed files with 3 additions and 3 deletions

View File

@ -126,9 +126,9 @@ func (c *AllyApi) MarketClock() (resp MarketClockResponse) {
return
}
func (c *AllyApi) MarketQuotes() {
func (c *AllyApi) MarketQuotes(symbols ...string) {
v := url.Values{
"symbols": []string{"IBM"},
"symbols": symbols,
}
fmt.Printf("%s\n", c.getWithParameters("market/ext/quotes", v))
}

View File

@ -5,5 +5,5 @@ func main() {
var api AllyApi
api.Initialize()
api.MarketQuotes()
api.MarketQuotes("FEYE", "IBM")
}