From 4b6c1f8b6ce36d8e531fd731c1f2c7f343392402 Mon Sep 17 00:00:00 2001 From: Manuel Kreutz Date: Sun, 9 Apr 2017 15:47:15 -0400 Subject: [PATCH] we need unixtime for auth but sending 13 long string --- exchanges/gdax/gdax.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exchanges/gdax/gdax.go b/exchanges/gdax/gdax.go index 242e0cfa..13033e4c 100644 --- a/exchanges/gdax/gdax.go +++ b/exchanges/gdax/gdax.go @@ -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 {