From bee3b913f2c590eccdbbb42132c1716ff33cf5a8 Mon Sep 17 00:00:00 2001 From: Jui-Nan Lin Date: Tue, 25 May 2021 21:30:15 +0800 Subject: [PATCH] fix(ftx): typo --- pkg/exchange/ftx/websocket_messages.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/exchange/ftx/websocket_messages.go b/pkg/exchange/ftx/websocket_messages.go index e49ed14f1..270d4f8ef 100644 --- a/pkg/exchange/ftx/websocket_messages.go +++ b/pkg/exchange/ftx/websocket_messages.go @@ -61,7 +61,7 @@ type loginArgs struct { SubAccount string `json:"subaccount"` } -func newLoginRequest(key, secret string, t time.Time, subsaccount string) websocketRequest { +func newLoginRequest(key, secret string, t time.Time, subaccount string) websocketRequest { millis := t.UnixNano() / int64(time.Millisecond) return websocketRequest{ Operation: login, @@ -69,7 +69,7 @@ func newLoginRequest(key, secret string, t time.Time, subsaccount string) websoc Key: key, Signature: sign(secret, loginBody(millis)), Time: millis, - SubAccount: subsaccount, + SubAccount: subaccount, }, } }