Change the client to take a variadic list of strings
This commit is contained in:
parent
1d985d25a4
commit
6b4b0e6de8
@ -126,9 +126,9 @@ func (c *AllyApi) MarketClock() (resp MarketClockResponse) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *AllyApi) MarketQuotes() {
|
func (c *AllyApi) MarketQuotes(symbols ...string) {
|
||||||
v := url.Values{
|
v := url.Values{
|
||||||
"symbols": []string{"IBM"},
|
"symbols": symbols,
|
||||||
}
|
}
|
||||||
fmt.Printf("%s\n", c.getWithParameters("market/ext/quotes", v))
|
fmt.Printf("%s\n", c.getWithParameters("market/ext/quotes", v))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user