market-api-calls #2

Manually merged
jacob.windle merged 10 commits from market-api-calls into master 2020-01-22 00:15:38 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 6b4b0e6de8 - Show all commits

View File

@ -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))
} }

View File

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