diff --git a/questrade/client.go b/questrade/client.go index c18ad86..bafff04 100644 --- a/questrade/client.go +++ b/questrade/client.go @@ -40,7 +40,7 @@ func (l LoginCredentials) authHeader() string { // Send an HTTP GET request, and return the processed response func (c *client) get(endpoint string, out interface{}, query url.Values) error { - req, err := http.NewRequest("GET", c.Credentials.ApiServer+endpoint+query.Encode(), nil) + req, err := http.NewRequest("GET", c.Credentials.ApiServer+endpoint+"?"+query.Encode(), nil) if err != nil { return err } diff --git a/questrade/providerImpl.go b/questrade/providerImpl.go index 43951da..66b9041 100644 --- a/questrade/providerImpl.go +++ b/questrade/providerImpl.go @@ -123,7 +123,7 @@ func loadPersistentData() (*persistentData, error) { defer f.Close() b, err := io.ReadAll(f) if err != nil { - return nil, fmt.Errorf("failed to read file data/questrade-data.jsonn: %v", err) + return nil, fmt.Errorf("failed to read file data/questrade-data.json: %v", err) } err = json.Unmarshal(b, data)