Bingex.User (Bingex v0.2.1)
Provides an interface to interact with the BingX User API.
Summary
Functions
The validity period is extended to 1 hour after this call, and it is recommended to send a ping every 30 minutes.
Generate Listen Key (used for WebSocket connection). Listen key Valid for 1 hour.
Query whether the corresponding UID is an invited user under his or her name.
Query basic information of invited subordinate users.
Functions
@spec extend_listen_key(Bingex.Types.listen_key(), Bingex.Types.api_key()) :: Bingex.Types.request_result()
The validity period is extended to 1 hour after this call, and it is recommended to send a ping every 30 minutes.
@spec generate_listen_key(Bingex.Types.api_key()) :: Bingex.Types.request_result( Bingex.API.Reply.t(Bingex.User.Data.GenerateListenKey.t()) )
Generate Listen Key (used for WebSocket connection). Listen key Valid for 1 hour.
@spec get_referral( Bingex.Types.user_id(), Bingex.Types.api_key(), Bingex.Types.secret_key() ) :: Bingex.Types.request_result( Bingex.API.Reply.t(Bingex.User.Data.GetReferral.t()) )
Query whether the corresponding UID is an invited user under his or her name.
@spec get_referrals( page_index :: pos_integer(), page_size :: pos_integer(), Bingex.Types.api_key(), Bingex.Types.secret_key(), opts :: [start_time: pos_integer(), end_time: pos_integer()] ) :: Bingex.Types.request_result( Bingex.API.Reply.t(Bingex.User.Data.GetReferrals.t()) )
Query basic information of invited subordinate users.
https://bingx-api.github.io/docs/#/en-us/agent/agent-interface.html#Query%20Invited%20Users