Update main.go

This commit is contained in:
Adithya Chari
2019-11-27 14:16:03 -06:00
committed by GitHub
parent 35a64342fd
commit a5dbd81cad

View File

@@ -31,7 +31,7 @@ func main() {
} }
func GetPriceString(ticker string) string { func GetPriceString(ticker string) string {
resp, err := http.Get("https://api.worldtradingdata.com/api/v1/stock?symbol=" + ticker + "&api_token=zkyqseprRGFE2qN0sck4QiFcmyw0kJirCeXKYcXpGM80FEBmitI03aLT31RJ") resp, err := http.Get("https://api.worldtradingdata.com/api/v1/stock?symbol=" + ticker + "&api_token=demo")
if err != nil { if err != nil {
log.Fatalf("Price request of ticker %s failed with %s\n", ticker, err) log.Fatalf("Price request of ticker %s failed with %s\n", ticker, err)
} }