Skip to content

Commit e2082f1

Browse files
committed
Release Common v3.0.0
1 parent 0adde69 commit e2082f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/src/binance_common/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,10 @@ def ws_api_payload(config, payload: Dict, websocket_options: WebsocketApiOptions
608608
}
609609

610610
if websocket_options.is_signed:
611-
payload["params"] = websocket_api_signature(config, payload["params"], websocket_options.signer)
611+
if websocket_options.skip_auth is True:
612+
payload["params"]["timestamp"] = get_timestamp()
613+
else:
614+
payload["params"] = websocket_api_signature(config, payload["params"], websocket_options.signer)
612615

613616
return payload
614617

0 commit comments

Comments
 (0)