kraken futures: generate a larger nonce on requests (#854)

This commit is contained in:
Luis Rascão
2021-12-08 01:09:07 +00:00
committed by GitHub
parent d1df77171a
commit 12e3cd9c2b

View File

@@ -303,7 +303,7 @@ func (k *Kraken) SendFuturesAuthRequest(ctx context.Context, method, path string
interim := json.RawMessage{}
newRequest := func() (*request.Item, error) {
nonce := strconv.FormatInt(time.Now().UnixMilli(), 10)
nonce := strconv.FormatInt(time.Now().UnixNano(), 10)
sig, err := k.signFuturesRequest(path, nonce, dataToSign)
if err != nil {