Skip to main content

common_http_auth_token

Function common_http_auth_token 

Source
pub fn common_http_auth_token(unix_ts: i64) -> Option<String>
Expand description

Build the shared Futu common HTTP auth_token.

Ref: C++ NNProtoCenter/NNProtoCenter_Inner_Inline.h NNProto_BuildCommonHttpClientToken() uses key PEHMABDNLXIOG65U, server time, 30s period, and GenGoogleOTPCode_SHA1.