Manage Authenticated Sessions
masterTo perform private operations (like submitting orders), you must authenticate your connection.
- Use
Credentials(key, secret)to assign your API credentials to a connection request. - Use
GetAuthenticatedSocket()to retrieve the socket used for authenticated requests. Note that due to rate limits, only one authenticated socket can be active at a time. - You can check the current authentication status via
client.Authentication(of typeAuthState).
Authentication states:
NoAuthentication(0)PendingAuthentication(1)SuccessfulAuthentication(2)RejectedAuthentication(3)