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, }, } }