we need unixtime for auth but sending 13 long string

This commit is contained in:
Manuel Kreutz
2017-04-09 15:47:15 -04:00
parent 7b001f710b
commit 4b6c1f8b6c

View File

@@ -370,7 +370,8 @@ func (g *GDAX) GetReportStatus(reportID string) (GDAXReportResponse, error) {
}
func (g *GDAX) SendAuthenticatedHTTPRequest(method, path string, params map[string]interface{}, result interface{}) (err error) {
timestamp := strconv.FormatInt(time.Now().UnixNano(), 10)[0:13]
timestamp := strconv.FormatInt(time.Now().Unix(), 10)
payload := []byte("")
if params != nil {