Update main.go
This commit is contained in:
2
main.go
2
main.go
@@ -31,7 +31,7 @@ func main() {
|
||||
}
|
||||
|
||||
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 {
|
||||
log.Fatalf("Price request of ticker %s failed with %s\n", ticker, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user