From ab8c1ec18ce9eacd189413f0d53a404db0ead0e3 Mon Sep 17 00:00:00 2001 From: Jui-Nan Lin Date: Tue, 25 May 2021 22:12:10 +0800 Subject: [PATCH] fix(ftx): allow subaccount to be empty --- pkg/exchange/ftx/websocket_messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/exchange/ftx/websocket_messages.go b/pkg/exchange/ftx/websocket_messages.go index 270d4f8ef..1dbaad05a 100644 --- a/pkg/exchange/ftx/websocket_messages.go +++ b/pkg/exchange/ftx/websocket_messages.go @@ -58,7 +58,7 @@ type loginArgs struct { Key string `json:"key"` Signature string `json:"sign"` Time int64 `json:"time"` - SubAccount string `json:"subaccount"` + SubAccount string `json:"subaccount,omitempty"` } func newLoginRequest(key, secret string, t time.Time, subaccount string) websocketRequest {