fix(ftx): typo

This commit is contained in:
Jui-Nan Lin 2021-05-25 21:30:15 +08:00
parent 1318f221b2
commit bee3b913f2

View File

@ -61,7 +61,7 @@ type loginArgs struct {
SubAccount string `json:"subaccount"` 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) millis := t.UnixNano() / int64(time.Millisecond)
return websocketRequest{ return websocketRequest{
Operation: login, Operation: login,
@ -69,7 +69,7 @@ func newLoginRequest(key, secret string, t time.Time, subsaccount string) websoc
Key: key, Key: key,
Signature: sign(secret, loginBody(millis)), Signature: sign(secret, loginBody(millis)),
Time: millis, Time: millis,
SubAccount: subsaccount, SubAccount: subaccount,
}, },
} }
} }