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

extend_listen_key(listen_key, api_key)

The validity period is extended to 1 hour after this call, and it is recommended to send a ping every 30 minutes.

https://bingx-api.github.io/docs/#/en-us/common/authentication-interface.html#extend%20Listen%20Key%20Validity%20period

generate_listen_key(api_key)

@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.

https://bingx-api.github.io/docs/#/en-us/common/authentication-interface.html#generate%20Listen%20Key

get_referral(user_id, api_key, secret_key)

Query whether the corresponding UID is an invited user under his or her name.

https://bingx-api.github.io/docs/#/en-us/agent/agent-interface.html#Query%20agent%20user%20information

get_referrals(page_index, page_size, api_key, secret_key, opts \\ [])

@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