From 6b4b0e6de8ea4a85bc3da720cc7580a769d00f22 Mon Sep 17 00:00:00 2001 From: jaketothepast Date: Mon, 20 Jan 2020 14:19:00 -0500 Subject: [PATCH] Change the client to take a variadic list of strings --- client.go | 4 ++-- main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 3d6c8cc..4b1ec67 100644 --- a/client.go +++ b/client.go @@ -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)) } diff --git a/main.go b/main.go index c502d9e..d321f19 100644 --- a/main.go +++ b/main.go @@ -5,5 +5,5 @@ func main() { var api AllyApi api.Initialize() - api.MarketQuotes() + api.MarketQuotes("FEYE", "IBM") }